	.file	"165764272.c"
	.intel_syntax noprefix
	.text
	.type	hasproperty, @function
hasproperty:
.LFB6:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	BYTE PTR -17[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 25
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	QWORD PTR -8[rbp], rax
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rsi
	mov	rdx, QWORD PTR [rdx]
	add	rdx, rcx
	cmp	rax, rdx
	sete	al
	mov	BYTE PTR -17[rbp], al
	add	QWORD PTR -8[rbp], 1
.L3:
	movzx	eax, BYTE PTR -17[rbp]
	xor	eax, 1
	test	al, al
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L5
.L4:
	add	QWORD PTR -16[rbp], 1
.L2:
	movzx	eax, BYTE PTR -17[rbp]
	xor	eax, 1
	test	al, al
	je	.L6
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	cmp	QWORD PTR -16[rbp], rax
	jb	.L7
.L6:
	movzx	eax, BYTE PTR -17[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	hasproperty, .-hasproperty
	.section	.rodata
	.align 8
.LC0:
	.string	"Doubling %zu causes wraparound\n"
	.align 8
.LC1:
	.string	"Failed to allocate array of size %zu\n"
	.text
	.type	addnum, @function
addnum:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -40[rbp], rax
	jb	.L16
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	movabs	rdx, 9223372036854775806
	cmp	rax, rdx
	jbe	.L12
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, [rax+rax]
	jmp	.L14
.L13:
	mov	edx, 1
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L9
.L16:
	nop
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	addnum, .-addnum
	.section	.rodata
.LC2:
	.string	"%ju"
.LC3:
	.string	"Invalid\t%ju\n"
.LC4:
	.string	"Bad input format\n"
.LC5:
	.string	"Puzzle input parsing failed\n"
	.align 8
.LC6:
	.string	"Need at least 25 numbers, got %zu\n"
	.align 8
.LC7:
	.string	"All numbers have the property\n"
.LC8:
	.string	"Weak\t%ju\n"
.LC9:
	.string	"Weakness not found\n"
	.text
	.globl	day09
	.type	day09, @function
day09:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	jmp	.L18
.L24:
	lea	rdx, -72[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L19
	mov	rdx, QWORD PTR -56[rbp]
	lea	rcx, -80[rbp]
	lea	rax, -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	addnum
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rdx], rax
	cmp	QWORD PTR -56[rbp], 24
	jbe	.L20
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	hasproperty
	xor	eax, 1
	test	al, al
	je	.L20
	cmp	QWORD PTR -64[rbp], 0
	jne	.L20
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	add	QWORD PTR -56[rbp], 1
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 10
	je	.L18
	cmp	DWORD PTR -92[rbp], -1
	je	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L36
.L18:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L24
.L23:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L26
.L25:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L36
.L26:
	cmp	QWORD PTR -56[rbp], 24
	ja	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L36
.L27:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L36
.L28:
	mov	QWORD PTR -48[rbp], 0
	jmp	.L29
.L35:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	jmp	.L30
.L34:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -32[rbp], rax
	jbe	.L31
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
.L31:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -24[rbp], rax
	jnb	.L32
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L32:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	je	.L33
	add	QWORD PTR -16[rbp], 1
	jmp	.L30
.L33:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L36
.L30:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
	cmp	QWORD PTR -16[rbp], rax
	jb	.L34
	add	QWORD PTR -48[rbp], 1
.L29:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 2
	cmp	QWORD PTR -48[rbp], rax
	jb	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
.L36:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	day09, .-day09
	.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	"165764272.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasproperty, %function
hasproperty:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, fp}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #25
	str	r3, [fp, #-28]
	b	.L2
.L7:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L3
.L5:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	cmp	r7, r5
	cmpeq	r6, r4
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L4
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L5
.L4:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcc	.L7
.L6:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, fp}
	bx	lr
	.size	hasproperty, .-hasproperty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Doubling %zu causes wraparound\012\000"
	.align	2
.LC1:
	.ascii	"Failed to allocate array of size %zu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addnum, %function
addnum:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L16
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmn	r3, #-2147483646
	bls	.L12
	ldr	r3, .L17
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L17+4
	bl	fprintf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #1
	b	.L14
.L13:
	mov	r3, #1
.L14:
	ldr	r2, [fp, #-20]
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L17
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L17+8
	bl	fprintf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L9
.L16:
	nop
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	addnum, .-addnum
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%ju\000"
	.align	2
.LC3:
	.ascii	"Invalid\011%ju\012\000"
	.align	2
.LC4:
	.ascii	"Bad input format\012\000"
	.align	2
.LC5:
	.ascii	"Puzzle input parsing failed\012\000"
	.align	2
.LC6:
	.ascii	"Need at least 25 numbers, got %zu\012\000"
	.align	2
.LC7:
	.ascii	"All numbers have the property\012\000"
	.align	2
.LC8:
	.ascii	"Weak\011%ju\012\000"
	.align	2
.LC9:
	.ascii	"Weakness not found\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	day09
	.syntax unified
	.arm
	.fpu softvfp
	.type	day09, %function
day09:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #80
	str	r0, [fp, #-96]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L20
.L26:
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, .L40+4
	ldr	r0, [fp, #-96]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L21
	sub	r1, fp, #88
	sub	r3, fp, #92
	ldr	r2, [fp, #-84]
	mov	r0, r3
	bl	addnum
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-84]
	cmp	r3, #24
	bls	.L22
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-84]
	mov	r0, r3
	bl	hasproperty
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L22
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L40+8
	bl	printf
.L22:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	b	.L20
.L21:
	ldr	r0, [fp, #-96]
	bl	fgetc
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #10
	beq	.L20
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	beq	.L20
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L40+16
	bl	fwrite
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	mov	r3, #1
	b	.L38
.L20:
	ldr	r0, [fp, #-96]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r0, [fp, #-96]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
.L25:
	ldr	r0, [fp, #-96]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r0, [fp, #-96]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
.L27:
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L40+20
	bl	fwrite
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	mov	r3, #1
	b	.L38
.L28:
	ldr	r3, [fp, #-84]
	cmp	r3, #24
	bhi	.L29
	ldr	r3, .L40+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	ldr	r1, .L40+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	mov	r3, #1
	b	.L38
.L29:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L30
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L40+28
	bl	fwrite
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	mov	r3, #1
	b	.L38
.L30:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L31
.L37:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	b	.L32
.L36:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L33
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L33:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L34
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L34:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-52]
	str	r5, [fp, #-48]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L35
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	b	.L32
.L35:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L40+32
	bl	printf
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	mov	r3, #0
	b	.L38
.L32:
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bcc	.L36
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L31:
	ldr	r3, [fp, #-84]
	sub	r3, r3, #2
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bcc	.L37
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L40+36
	bl	fwrite
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	mov	r3, #1
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC10
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	day09, .-day09
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
