	.file	"431420.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Can't parse input: '%s' (failing at '%s')\n"
	.text
	.globl	parse_inp
	.type	parse_inp, @function
parse_inp:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -68[rbp], eax
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L2
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L2:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rcx, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoull@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L3
	lea	rcx, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L4
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtold@PLT
	fstp	TBYTE PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L5
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L5:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	jmp	.L7
.L4:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L7
.L3:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
.L7:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_inp, .-parse_inp
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3168
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40028[rbp], 3000
	mov	DWORD PTR -40032[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -40028[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40024[rbp], rax
	mov	rdx, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -40028[rbp]
	mov	rax, QWORD PTR -40024[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -40024[rbp]
	mov	rdi, rax
	call	parse_inp
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -40032[rbp], 1
.L11:
	cmp	DWORD PTR -40032[rbp], 9999
	jle	.L12
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"431420.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Can't parse input: '%s' (failing at '%s')\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_inp
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_inp, %function
parse_inp:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L2
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L2:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strtoull
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strtoll
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strtold
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L10+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	ldr	r1, .L10+8
	bl	fprintf
	bl	abort
.L5:
	sub	r3, fp, #20
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	memcpy
	b	.L7
.L4:
	sub	r3, fp, #28
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	memcpy
	b	.L7
.L3:
	sub	r3, fp, #36
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	memcpy
.L7:
	ldr	r3, [fp, #-40]
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	parse_inp, .-parse_inp
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\012\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 = 40016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #39936
	sub	sp, sp, #84
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L17+4
	str	r3, [r2, #-3148]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3152]
	b	.L13
.L14:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r0, [r3, #-3148]
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3148]
	ldr	r2, .L17+8
	ldr	r2, [r2]
	sub	r1, fp, #36864
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-3144]
	bl	fgets
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r0, [r3, #-3144]
	bl	parse_inp
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	add	r3, r3, #1
	str	r3, [r2, #-3152]
.L13:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3152]
	ldr	r2, .L17+16
	cmp	r3, r2
	ble	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	3000
	.word	stdin
	.word	.LC2
	.word	9999
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
