	.file	"244432.c"
	.intel_syntax noprefix
	.text
	.globl	myGetline
	.type	myGetline, @function
myGetline:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jge	.L3
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	je	.L3
	cmp	DWORD PTR -8[rbp], 10
	jne	.L4
.L3:
	cmp	DWORD PTR -8[rbp], 10
	jne	.L5
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	myGetline, .-myGetline
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2048
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2024[rbp], 10
	jmp	.L8
.L21:
	mov	DWORD PTR -2036[rbp], 0
	jmp	.L9
.L20:
	cmp	DWORD PTR -2036[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -2036[rbp]
	add	eax, 1
	cdq
	idiv	DWORD PTR -2024[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -2036[rbp]
	mov	DWORD PTR -2032[rbp], eax
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -2032[rbp]
	cdqe
	movzx	eax, BYTE PTR -2016[rbp+rax]
	cmp	al, 32
	je	.L12
	mov	eax, DWORD PTR -2032[rbp]
	cdqe
	movzx	eax, BYTE PTR -2016[rbp+rax]
	cmp	al, 9
	je	.L12
	mov	eax, DWORD PTR -2032[rbp]
	mov	DWORD PTR -2028[rbp], eax
	jmp	.L13
.L12:
	sub	DWORD PTR -2032[rbp], 1
.L11:
	cmp	DWORD PTR -2032[rbp], 0
	jg	.L14
.L13:
	mov	DWORD PTR -2032[rbp], 0
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -2032[rbp]
	mov	eax, DWORD PTR -2036[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -2024[rbp]
	add	eax, 1
	cdqe
	movzx	edx, BYTE PTR -2016[rbp+rax]
	mov	eax, DWORD PTR -2032[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], dl
	add	DWORD PTR -2032[rbp], 1
.L15:
	mov	eax, DWORD PTR -2028[rbp]
	sub	eax, DWORD PTR -2036[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -2024[rbp]
	add	eax, edx
	cmp	DWORD PTR -2032[rbp], eax
	jl	.L16
	mov	eax, DWORD PTR -2032[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 10
	mov	eax, DWORD PTR -2032[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 0
	lea	rax, -1008[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L10:
	mov	eax, DWORD PTR -2020[rbp]
	sub	eax, 1
	cmp	DWORD PTR -2036[rbp], eax
	jne	.L17
	mov	DWORD PTR -2032[rbp], 0
	jmp	.L18
.L19:
	mov	edx, DWORD PTR -2032[rbp]
	mov	eax, DWORD PTR -2036[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -2036[rbp]
	cdq
	idiv	DWORD PTR -2024[rbp]
	mov	eax, ecx
	sub	eax, edx
	cdqe
	movzx	edx, BYTE PTR -2016[rbp+rax]
	mov	eax, DWORD PTR -2032[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], dl
	add	DWORD PTR -2032[rbp], 1
.L18:
	mov	eax, DWORD PTR -2036[rbp]
	cdq
	idiv	DWORD PTR -2024[rbp]
	mov	eax, edx
	cmp	DWORD PTR -2032[rbp], eax
	jl	.L19
	mov	eax, DWORD PTR -2032[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 0
	lea	rax, -1008[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	add	DWORD PTR -2036[rbp], 1
.L9:
	mov	eax, DWORD PTR -2036[rbp]
	cmp	eax, DWORD PTR -2020[rbp]
	jl	.L20
.L8:
	lea	rax, -2016[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	myGetline
	mov	DWORD PTR -2020[rbp], eax
	cmp	DWORD PTR -2020[rbp], 0
	jg	.L21
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"244432.c"
	.text
	.align	2
	.global	myGetline
	.syntax unified
	.arm
	.fpu softvfp
	.type	myGetline, %function
myGetline:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L3
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L3
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L4
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L5
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	myGetline, .-myGetline
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\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 = 2024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2016
	sub	sp, sp, #12
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #10
	str	r3, [fp, #-2024]
	b	.L8
.L21:
	mov	r3, #0
	str	r3, [fp, #-2036]
	b	.L9
.L20:
	ldr	r3, [fp, #-2036]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-2036]
	add	r3, r3, #1
	ldr	r1, [fp, #-2024]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-2036]
	str	r3, [fp, #-2032]
	b	.L11
.L14:
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2032]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L12
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2032]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L12
	ldr	r3, [fp, #-2032]
	str	r3, [fp, #-2028]
	b	.L13
.L12:
	ldr	r3, [fp, #-2032]
	sub	r3, r3, #1
	str	r3, [fp, #-2032]
.L11:
	ldr	r3, [fp, #-2032]
	cmp	r3, #0
	bgt	.L14
.L13:
	mov	r3, #0
	str	r3, [fp, #-2032]
	b	.L15
.L16:
	ldr	r2, [fp, #-2032]
	ldr	r3, [fp, #-2036]
	add	r2, r2, r3
	ldr	r3, [fp, #-2024]
	sub	r3, r2, r3
	add	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r1, [r3, #-2004]	@ zero_extendqisi2
	sub	r2, fp, #1016
	ldr	r3, [fp, #-2032]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-2032]
	add	r3, r3, #1
	str	r3, [fp, #-2032]
.L15:
	ldr	r2, [fp, #-2028]
	ldr	r3, [fp, #-2036]
	sub	r2, r2, r3
	ldr	r3, [fp, #-2024]
	add	r3, r2, r3
	ldr	r2, [fp, #-2032]
	cmp	r2, r3
	blt	.L16
	sub	r2, fp, #1016
	ldr	r3, [fp, #-2032]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-2032]
	add	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1004]
	sub	r3, fp, #1016
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
	b	.L17
.L10:
	ldr	r3, [fp, #-2020]
	sub	r3, r3, #1
	ldr	r2, [fp, #-2036]
	cmp	r2, r3
	bne	.L17
	mov	r3, #0
	str	r3, [fp, #-2032]
	b	.L18
.L19:
	ldr	r2, [fp, #-2032]
	ldr	r3, [fp, #-2036]
	add	r4, r2, r3
	ldr	r3, [fp, #-2036]
	ldr	r1, [fp, #-2024]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	sub	r3, r4, r3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r1, [r3, #-2004]	@ zero_extendqisi2
	sub	r2, fp, #1016
	ldr	r3, [fp, #-2032]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-2032]
	add	r3, r3, #1
	str	r3, [fp, #-2032]
.L18:
	ldr	r3, [fp, #-2036]
	ldr	r1, [fp, #-2024]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-2032]
	cmp	r3, r2
	blt	.L19
	sub	r2, fp, #1016
	ldr	r3, [fp, #-2032]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1016
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
.L17:
	ldr	r3, [fp, #-2036]
	add	r3, r3, #1
	str	r3, [fp, #-2036]
.L9:
	ldr	r2, [fp, #-2036]
	ldr	r3, [fp, #-2020]
	cmp	r2, r3
	blt	.L20
.L8:
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #1000
	mov	r0, r3
	bl	myGetline
	str	r0, [fp, #-2020]
	ldr	r3, [fp, #-2020]
	cmp	r3, #0
	bgt	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
