	.file	"410039.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n%c - %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1944
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -6032[rbp]
	mov	eax, 0
	mov	ecx, 500
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -6036[rbp], 0
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -2032[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	mov	BYTE PTR -6045[rbp], 97
	jmp	.L2
.L8:
	mov	DWORD PTR -6040[rbp], 0
	mov	DWORD PTR -6044[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	eax, BYTE PTR -2032[rbp+rax]
	cmp	BYTE PTR -6045[rbp], al
	je	.L4
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	eax, BYTE PTR -2032[rbp+rax]
	movsx	eax, al
	movsx	edx, BYTE PTR -6045[rbp]
	sub	edx, 32
	cmp	eax, edx
	jne	.L5
.L4:
	mov	eax, DWORD PTR -6036[rbp]
	cdqe
	movzx	edx, BYTE PTR -6045[rbp]
	mov	BYTE PTR -1024[rbp+rax], dl
	mov	eax, DWORD PTR -6036[rbp]
	cdqe
	mov	eax, DWORD PTR -6032[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -6036[rbp]
	cdqe
	mov	DWORD PTR -6032[rbp+rax*4], edx
	mov	DWORD PTR -6040[rbp], 1
.L5:
	add	DWORD PTR -6044[rbp], 1
.L3:
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	eax, BYTE PTR -2032[rbp+rax]
	test	al, al
	jne	.L6
	cmp	DWORD PTR -6040[rbp], 0
	jle	.L7
	add	DWORD PTR -6036[rbp], 1
.L7:
	movzx	eax, BYTE PTR -6045[rbp]
	add	eax, 1
	mov	BYTE PTR -6045[rbp], al
.L2:
	cmp	BYTE PTR -6045[rbp], 122
	jle	.L8
	mov	eax, DWORD PTR -6036[rbp]
	cdqe
	mov	BYTE PTR -1024[rbp+rax], 0
	mov	DWORD PTR -6044[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	mov	edx, DWORD PTR -6032[rbp+rax*4]
	mov	eax, DWORD PTR -6044[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -6044[rbp], 1
.L9:
	mov	eax, DWORD PTR -6044[rbp]
	movsx	rbx, eax
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L10
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"410039.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012%c - %d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 6024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #6016
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #1904
	sub	r3, r3, #4
	mov	r2, #4000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1912]
	ldr	r3, .L13+4
	ldr	r2, [r3]
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, #97
	strb	r2, [r3, #-1921]
	b	.L2
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1916]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1920]
	b	.L3
.L6:
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-1920]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldrb	r2, [r2, #-1921]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L4
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-1920]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1921]	@ zero_extendqisi2
	sub	r3, r3, #32
	cmp	r2, r3
	bne	.L5
.L4:
	sub	r2, fp, #1008
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldrb	r2, [r2, #-1921]
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1908]
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-1908]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1916]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #1
	str	r3, [r2, #-1920]
.L3:
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-1920]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1916]
	cmp	r3, #0
	ble	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	add	r3, r3, #1
	str	r3, [r2, #-1912]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1921]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	add	r3, r3, #1
	strb	r3, [r2, #-1921]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1921]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L8
	sub	r2, fp, #1008
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1920]
	b	.L9
.L10:
	sub	r2, fp, #1008
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1908]
	mov	r2, r3
	ldr	r0, .L13+8
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #1
	str	r3, [r2, #-1920]
.L9:
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	cmp	r2, r3
	bhi	.L10
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	stdin
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
