	.file	"136323.c"
	.intel_syntax noprefix
	.text
	.globl	departureAt
	.type	departureAt, @function
departureAt:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR 20[rbp+rax*4]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L3
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L4
.L3:
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR 4116[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L5
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	departureAt, .-departureAt
	.globl	part1
	.type	part1, @function
part1:
.LFB7:
	.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, 16
	.cfi_offset 3, -24
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L8:
	add	DWORD PTR -12[rbp], 1
.L7:
	mov	r8d, DWORD PTR -12[rbp]
	sub	rsp, 4104
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, 16[rbp]
	mov	edx, 513
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	edi, r8d
	call	departureAt
	add	rsp, 4104
	test	eax, eax
	je	.L8
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, edx
	mov	ebx, eax
	mov	r8d, DWORD PTR -12[rbp]
	sub	rsp, 4104
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, 16[rbp]
	mov	edx, 513
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	edi, r8d
	call	departureAt
	add	rsp, 4104
	imul	eax, ebx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	part1, .-part1
	.globl	isPart2SolutionAt
	.type	isPart2SolutionAt, @function
isPart2SolutionAt:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR 20[rbp+rax*4]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L12
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	add	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR 4116[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L14
	mov	eax, 1
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isPart2SolutionAt, .-isPart2SolutionAt
	.globl	part2StepAt
	.type	part2StepAt, @function
part2StepAt:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR 20[rbp+rax*4]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L17
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	jne	.L17
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdx, QWORD PTR -8[rbp]
	imul	rax, rdx
	mov	QWORD PTR -8[rbp], rax
.L17:
	add	DWORD PTR -16[rbp], 1
.L16:
	mov	eax, DWORD PTR 4116[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L18
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	part2StepAt, .-part2StepAt
	.globl	part2
	.type	part2, @function
part2:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, DWORD PTR 16[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
.L23:
	mov	r8, QWORD PTR -8[rbp]
	sub	rsp, 4104
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, 16[rbp]
	mov	edx, 513
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rdi, r8
	call	isPart2SolutionAt
	add	rsp, 4104
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L24
.L21:
	mov	r8, QWORD PTR -8[rbp]
	sub	rsp, 4104
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, 16[rbp]
	mov	edx, 513
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rdi, r8
	call	part2StepAt
	add	rsp, 4104
	add	QWORD PTR -8[rbp], rax
	jmp	.L23
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	part2, .-part2
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"resources/input.txt"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%[^,],"
.LC4:
	.string	"Part 1: %d\n"
.LC5:
	.string	"Part 2: %llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -4152[rbp], rax
	lea	rdx, -4144[rbp]
	mov	eax, 0
	mov	ecx, 513
	mov	rdi, rdx
	rep stosq
	lea	rdx, -4144[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -4168[rbp], 0
	jmp	.L26
.L29:
	lea	rax, -32[rbp]
	mov	QWORD PTR -4160[rbp], rax
	lea	rcx, -4160[rbp]
	lea	rax, -32[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -4164[rbp], eax
	mov	rdx, QWORD PTR -4160[rbp]
	lea	rax, -32[rbp]
	cmp	rdx, rax
	je	.L27
	mov	eax, DWORD PTR -4168[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4168[rbp], edx
	cdqe
	mov	edx, DWORD PTR -4164[rbp]
	mov	DWORD PTR -4140[rbp+rax*4], edx
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -4168[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4168[rbp], edx
	cdqe
	mov	DWORD PTR -4140[rbp+rax*4], -1
.L26:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jg	.L29
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -4168[rbp]
	cdqe
	mov	DWORD PTR -4140[rbp+rax*4], 0
	mov	eax, DWORD PTR -4168[rbp]
	mov	DWORD PTR -44[rbp], eax
	sub	rsp, 8
	sub	rsp, 4104
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4144[rbp]
	mov	edx, 513
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	part1
	add	rsp, 4112
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	sub	rsp, 8
	sub	rsp, 4104
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4144[rbp]
	mov	edx, 513
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	part2
	add	rsp, 4112
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"136323.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	departureAt
	.syntax unified
	.arm
	.fpu softvfp
	.type	departureAt, %function
departureAt:
	@ args = 4108, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	add	r3, fp, #4096
	add	r3, r3, #4
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
	.size	departureAt, .-departureAt
	.align	2
	.global	part1
	.syntax unified
	.arm
	.fpu softvfp
	.type	part1, %function
part1:
	@ args = 4104, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	mov	r0, sp
	add	r3, fp, #16
	ldr	r2, .L10
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r1, r2, r3}
	ldr	r0, [fp, #-16]
	bl	departureAt
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-16]
	sub	r4, r2, r3
	mov	r0, sp
	add	r3, fp, #16
	ldr	r2, .L10
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r1, r2, r3}
	ldr	r0, [fp, #-16]
	bl	departureAt
	mov	r3, r0
	mul	r3, r4, r3
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L11:
	.align	2
.L10:
	.word	4092
	.size	part1, .-part1
	.global	__aeabi_uldivmod
	.align	2
	.global	isPart2SolutionAt
	.syntax unified
	.arm
	.fpu softvfp
	.type	isPart2SolutionAt, %function
isPart2SolutionAt:
	@ args = 4104, pretend = 8, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	add	r1, fp, #4
	stm	r1, {r2, r3}
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L13
.L16:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L14
	ldr	r3, [fp, #-20]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-16]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	beq	.L14
	mov	r3, #0
	b	.L15
.L14:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L13:
	add	r3, fp, #4096
	add	r3, r3, #4
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L16
	mov	r3, #1
.L15:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #8
	bx	lr
	.size	isPart2SolutionAt, .-isPart2SolutionAt
	.align	2
	.global	part2StepAt
	.syntax unified
	.arm
	.fpu softvfp
	.type	part2StepAt, %function
part2StepAt:
	@ args = 4104, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	add	r1, fp, #4
	stm	r1, {r2, r3}
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L18
.L20:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L19
	ldr	r3, [fp, #-28]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-24]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L19
	ldr	r3, [fp, #-24]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-16]
	mul	r2, r0, r3
	ldr	r3, [fp, #-20]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-20]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
.L19:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L18:
	add	r3, fp, #4096
	add	r3, r3, #4
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L20
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #8
	bx	lr
	.size	part2StepAt, .-part2StepAt
	.align	2
	.global	part2
	.syntax unified
	.arm
	.fpu softvfp
	.type	part2, %function
part2:
	@ args = 4104, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4096
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #4]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
.L25:
	mov	r0, sp
	add	r3, fp, #12
	mov	r2, #4096
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r2, r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	isPart2SolutionAt
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	b	.L26
.L23:
	mov	r0, sp
	add	r3, fp, #12
	mov	r2, #4096
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #4
	ldm	r3, {r2, r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	part2StepAt
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
	b	.L25
.L26:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #16
	bx	lr
	.size	part2, .-part2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"resources/input.txt\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"%[^,],\000"
	.align	2
.LC4:
	.ascii	"Part 1: %d\012\000"
	.align	2
.LC5:
	.ascii	"Part 2: %llu\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L34+4
	ldr	r0, .L34+8
	bl	fopen
	str	r0, [r4, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #28
	ldr	r2, .L34+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #28
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L34+16
	ldr	r0, [r0, #-36]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	b	.L28
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32
	str	r3, [r2, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #44
	sub	r0, fp, #32
	mov	r2, #10
	mov	r1, r3
	bl	strtol
	str	r0, [r4, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-44]
	sub	r3, fp, #32
	cmp	r2, r3
	beq	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-40]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	str	r2, [r3, #-24]
	b	.L28
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-40]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #-24]
.L28:
	sub	r3, fp, #32
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L34+20
	ldr	r0, [r0, #-36]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L31
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	str	r3, [r2, #4072]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, sp
	sub	r3, r4, #12
	ldr	r2, .L34+24
	mov	r1, r3
	bl	memcpy
	sub	r3, r4, #28
	ldm	r3, {r0, r1, r2, r3}
	bl	part1
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+28
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, sp
	sub	r3, r4, #12
	ldr	r2, .L34+24
	mov	r1, r3
	bl	memcpy
	sub	r3, r4, #28
	ldm	r3, {r0, r1, r2, r3}
	bl	part2
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L34+32
	bl	printf
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	4104
	.word	.LC2
	.word	.LC3
	.word	4088
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
