	.file	"171224.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n"
.LC1:
	.string	"%c"
.LC2:
	.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, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3680
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -20032[rbp]
	mov	edx, 10000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -20044[rbp], 0
	mov	eax, DWORD PTR -20044[rbp]
	mov	DWORD PTR -20052[rbp], eax
	jmp	.L2
.L4:
	lea	rcx, -20032[rbp]
	mov	eax, DWORD PTR -20052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -20052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, rcx
	sub	rax, 20032
	mov	BYTE PTR [rax], 0
	lea	rcx, -20032[rbp]
	mov	eax, DWORD PTR -20052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -20036[rbp], eax
	mov	eax, DWORD PTR -20044[rbp]
	cmp	eax, DWORD PTR -20036[rbp]
	jge	.L3
	mov	eax, DWORD PTR -20036[rbp]
	mov	DWORD PTR -20044[rbp], eax
.L3:
	add	DWORD PTR -20052[rbp], 1
.L2:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rsi, -20032[rbp]
	mov	eax, DWORD PTR -20052[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR -20052[rbp]
	sub	eax, 1
	mov	DWORD PTR -20040[rbp], eax
	lea	rax, -10016[rbp]
	mov	edx, 10000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -20048[rbp], 0
.L11:
	mov	eax, DWORD PTR -20040[rbp]
	mov	DWORD PTR -20052[rbp], eax
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -20048[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, rcx
	sub	rax, 20032
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	lea	rax, -10018[rbp]
	mov	edx, 32
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -10018[rbp]
	lea	rax, -10016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -20048[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, rcx
	sub	rax, 20032
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	lea	rax, -10018[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -10018[rbp]
	lea	rax, -10016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L7:
	sub	DWORD PTR -20052[rbp], 1
.L5:
	cmp	DWORD PTR -20052[rbp], 0
	jns	.L8
	mov	eax, DWORD PTR -20048[rbp]
	add	eax, 1
	cmp	DWORD PTR -20044[rbp], eax
	jle	.L15
	add	DWORD PTR -20048[rbp], 1
	lea	rax, -10018[rbp]
	mov	edx, 10
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -10018[rbp]
	lea	rax, -10016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	jmp	.L11
.L15:
	nop
	lea	rax, -10016[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"171224.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 20032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #19968
	sub	sp, sp, #64
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #19968
	sub	r3, r3, #4
	sub	r3, r3, #40
	ldr	r2, .L16+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3636]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3636]
	str	r3, [r2, #-3644]
	b	.L2
.L4:
	sub	r2, fp, #19968
	sub	r2, r2, #4
	sub	r2, r2, #40
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r1, [r3, #-3644]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, .L16+8
	mov	r0, r3
	bl	strcspn
	mov	r1, r0
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r3, #-3644]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, r1
	sub	r3, r3, #3616
	sub	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	sub	r2, fp, #19968
	sub	r2, r2, #4
	sub	r2, r2, #40
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r1, [r3, #-3644]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #16384
	sub	r2, r2, #4
	str	r3, [r2, #-3628]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r2, #-3636]
	ldr	r3, [r3, #-3628]
	cmp	r2, r3
	bge	.L3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3628]
	str	r3, [r2, #-3636]
.L3:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3644]
	add	r3, r3, #1
	str	r3, [r2, #-3644]
.L2:
	sub	r2, fp, #19968
	sub	r2, r2, #4
	sub	r2, r2, #40
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r1, [r3, #-3644]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L16+12
	ldr	r2, [r2]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3644]
	sub	r3, r3, #1
	str	r3, [r2, #-3632]
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	ldr	r2, .L16+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3640]
.L11:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3632]
	str	r3, [r2, #-3644]
	b	.L5
.L8:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r3, #-3644]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3640]
	add	r3, r2, r3
	sub	r3, r3, #3616
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #24
	mov	r2, #32
	ldr	r1, .L16+16
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #24
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	b	.L7
.L6:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r3, #-3644]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3640]
	add	r3, r2, r3
	sub	r3, r3, #3616
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #24
	ldr	r1, .L16+16
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #24
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r1, r2
	mov	r0, r3
	bl	strcat
.L7:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3644]
	sub	r3, r3, #1
	str	r3, [r2, #-3644]
.L5:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3644]
	cmp	r3, #0
	bge	.L8
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3640]
	add	r3, r3, #1
	sub	r2, fp, #16384
	sub	r2, r2, #4
	ldr	r2, [r2, #-3636]
	cmp	r2, r3
	ble	.L15
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-3640]
	add	r3, r3, #1
	str	r3, [r2, #-3640]
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #24
	mov	r2, #10
	ldr	r1, .L16+16
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #24
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	b	.L11
.L15:
	nop
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L16+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	10000
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
