	.file	"22433.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%s"
	.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
	lea	r11, -299008[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1632
	mov	DWORD PTR -300628[rbp], edi
	mov	QWORD PTR -300640[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -300614[rbp], 0
	mov	DWORD PTR -300612[rbp], 0
	jmp	.L2
.L5:
	lea	rax, -300614[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L3
	mov	eax, 1
	jmp	.L18
.L3:
	movzx	edx, BYTE PTR -300614[rbp]
	mov	eax, DWORD PTR -300612[rbp]
	cdqe
	mov	BYTE PTR -300048[rbp+rax], dl
	add	DWORD PTR -300612[rbp], 1
.L2:
	movzx	eax, BYTE PTR -300614[rbp]
	cmp	al, 10
	jne	.L5
	mov	eax, DWORD PTR -300612[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -300048[rbp+rax], 0
	lea	rax, -200032[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L6
	mov	eax, 1
	jmp	.L18
.L6:
	lea	rax, -300048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -300576[rbp], rax
	lea	rdx, -300560[rbp]
	mov	eax, 0
	mov	ecx, 64
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -300600[rbp], 0
	jmp	.L7
.L8:
	lea	rdx, -300048[rbp]
	mov	rax, QWORD PTR -300600[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	mov	DWORD PTR -300560[rbp+rax*4], 1
	add	QWORD PTR -300600[rbp], 1
.L7:
	mov	rax, QWORD PTR -300600[rbp]
	cmp	rax, QWORD PTR -300576[rbp]
	jl	.L8
	lea	rax, -200032[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -300568[rbp], rax
	mov	QWORD PTR -300592[rbp], 0
	mov	QWORD PTR -300584[rbp], 0
	jmp	.L9
.L15:
	lea	rdx, -200032[rbp]
	mov	rax, QWORD PTR -300584[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -300613[rbp], al
	movsx	eax, BYTE PTR -300613[rbp]
	mov	DWORD PTR -300608[rbp], eax
	cmp	BYTE PTR -300613[rbp], 96
	jle	.L10
	cmp	BYTE PTR -300613[rbp], 122
	jg	.L10
	movsx	eax, BYTE PTR -300613[rbp]
	sub	eax, 32
	mov	DWORD PTR -300604[rbp], eax
	mov	eax, DWORD PTR -300604[rbp]
	cdqe
	mov	eax, DWORD PTR -300560[rbp+rax*4]
	test	eax, eax
	jne	.L20
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -300592[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -300613[rbp]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -300592[rbp], 1
	jmp	.L20
.L10:
	cmp	BYTE PTR -300613[rbp], 64
	jle	.L13
	cmp	BYTE PTR -300613[rbp], 90
	jg	.L13
	mov	eax, DWORD PTR -300608[rbp]
	cdqe
	mov	eax, DWORD PTR -300560[rbp+rax*4]
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -300388[rbp]
	test	eax, eax
	jne	.L21
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -300592[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -300613[rbp]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -300592[rbp], 1
	jmp	.L21
.L13:
	mov	eax, DWORD PTR -300608[rbp]
	cdqe
	mov	eax, DWORD PTR -300560[rbp+rax*4]
	test	eax, eax
	jne	.L12
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -300592[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -300613[rbp]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -300592[rbp], 1
	jmp	.L12
.L20:
	nop
	jmp	.L12
.L21:
	nop
.L12:
	add	QWORD PTR -300584[rbp], 1
.L9:
	mov	rax, QWORD PTR -300584[rbp]
	cmp	rax, QWORD PTR -300568[rbp]
	jl	.L15
	lea	rdx, -100016[rbp]
	mov	rax, QWORD PTR -300592[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	cmp	QWORD PTR -300592[rbp], 0
	je	.L16
	lea	rax, -100016[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	mov	edi, 10
	call	putchar@PLT
.L17:
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"22433.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 300576
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #299008
	sub	sp, sp, #1568
	sub	r3, fp, #299008
	sub	r3, r3, #4
	str	r0, [r3, #-1564]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	str	r1, [r3, #-1568]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3, #-1554]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1552]
	b	.L2
.L5:
	ldr	r3, .L22+4
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L3
	mov	r3, #1
	b	.L18
.L3:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r2, [r3, #-1554]	@ zero_extendqisi2
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1552]
	add	r3, r1, r3
	sub	r3, r3, #1008
	strb	r2, [r3]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1552]
	add	r3, r3, #1
	str	r3, [r2, #-1552]
.L2:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1554]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1552]
	sub	r3, r3, #1
	sub	r2, fp, #299008
	sub	r2, r2, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1008]
	sub	r3, fp, #199680
	sub	r3, r3, #4
	sub	r3, r3, #332
	mov	r1, r3
	ldr	r0, .L22+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L6
	mov	r3, #1
	b	.L18
.L6:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	sub	r3, r3, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #299008
	sub	r2, r2, #4
	str	r3, [r2, #-1536]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	sub	r3, r3, #1520
	mov	r2, #512
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1548]
	b	.L7
.L8:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1548]
	add	r3, r2, r3
	sub	r3, r3, #1008
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #299008
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-1520]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1548]
	add	r3, r3, #1
	str	r3, [r2, #-1548]
.L7:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r2, [r2, #-1548]
	ldr	r3, [r3, #-1536]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #199680
	sub	r3, r3, #4
	sub	r3, r3, #332
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #299008
	sub	r2, r2, #4
	str	r3, [r2, #-1532]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1544]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1540]
	b	.L9
.L15:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #196608
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1540]
	add	r3, r1, r3
	sub	r3, r3, #3392
	sub	r3, r3, #12
	ldrb	r3, [r3]
	strb	r3, [r2, #-1553]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1553]	@ zero_extendqisi2
	str	r3, [r2, #-1528]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1553]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L10
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1553]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L10
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1553]	@ zero_extendqisi2
	sub	r2, fp, #299008
	sub	r2, r2, #4
	sub	r3, r3, #32
	str	r3, [r2, #-1524]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1524]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1520]
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #8
	sub	r2, fp, #299008
	sub	r2, r2, #4
	ldrb	r2, [r2, #-1553]
	strb	r2, [r3]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	add	r3, r3, #1
	str	r3, [r2, #-1544]
	b	.L20
.L10:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1553]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L13
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldrb	r3, [r3, #-1553]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L13
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1528]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1520]
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1348]
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #8
	sub	r2, fp, #299008
	sub	r2, r2, #4
	ldrb	r2, [r2, #-1553]
	strb	r2, [r3]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	add	r3, r3, #1
	str	r3, [r2, #-1544]
	b	.L21
.L13:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1528]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1520]
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #8
	sub	r2, fp, #299008
	sub	r2, r2, #4
	ldrb	r2, [r2, #-1553]
	strb	r2, [r3]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	add	r3, r3, #1
	str	r3, [r2, #-1544]
	b	.L12
.L20:
	nop
	b	.L12
.L21:
	nop
.L12:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1540]
	add	r3, r3, #1
	str	r3, [r2, #-1540]
.L9:
	sub	r3, fp, #299008
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r2, [r2, #-1540]
	ldr	r3, [r3, #-1532]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #299008
	sub	r3, r3, #4
	ldr	r3, [r3, #-1544]
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #99328
	sub	r3, r3, #4
	sub	r3, r3, #680
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printf
	b	.L17
.L16:
	mov	r0, #10
	bl	putchar
.L17:
	mov	r3, #0
.L18:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	-300562
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
