	.file	"118443.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Assertion failed: %s\n"
	.text
	.globl	assert
	.type	assert, @function
assert:
.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, 16
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	xor	eax, 1
	test	al, al
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	assert, .-assert
	.section	.rodata
.LC1:
	.string	"Invalid flash"
	.text
	.globl	flash
	.type	flash, @function
flash:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	sete	al
	movzx	eax, al
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	assert
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 1
	test	eax, eax
	cmovle	eax, edx
	sub	eax, 1
	cdqe
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	test	eax, eax
	cmovle	eax, edx
	sub	eax, 1
	cdqe
	mov	QWORD PTR -8[rbp], rax
	jmp	.L6
.L8:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L7
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	flash
.L7:
	add	QWORD PTR -8[rbp], 1
.L6:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	edx, 9
	cmp	rax, 9
	cmova	rax, rdx
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L8
	add	QWORD PTR -16[rbp], 1
.L5:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	edx, 9
	cmp	rax, 9
	cmova	rax, rdx
	cmp	QWORD PTR -16[rbp], rax
	jbe	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	flash, .-flash
	.globl	step
	.type	step, @function
step:
.LFB2:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -32[rbp], 0
	jmp	.L11
.L15:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L12
.L14:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L13
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	flash
.L13:
	add	QWORD PTR -24[rbp], 1
.L12:
	cmp	QWORD PTR -24[rbp], 9
	jbe	.L14
	add	QWORD PTR -32[rbp], 1
.L11:
	cmp	QWORD PTR -32[rbp], 9
	jbe	.L15
	mov	QWORD PTR -16[rbp], 0
	jmp	.L16
.L21:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L17
.L20:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	ja	.L18
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	jmp	.L19
.L18:
	mov	edx, 0
.L19:
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -8[rbp], 1
.L17:
	cmp	QWORD PTR -8[rbp], 9
	jbe	.L20
	add	QWORD PTR -16[rbp], 1
.L16:
	cmp	QWORD PTR -16[rbp], 9
	jbe	.L21
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	step, .-step
	.globl	print_energies
	.type	print_energies, @function
print_energies:
.LFB3:
	.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	QWORD PTR -16[rbp], 0
	jmp	.L23
.L28:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L24
.L27:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	jbe	.L25
	mov	edi, 88
	call	putchar@PLT
	jmp	.L26
.L25:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, 48
	mov	edi, eax
	call	putchar@PLT
.L26:
	add	QWORD PTR -8[rbp], 1
.L24:
	cmp	QWORD PTR -8[rbp], 9
	jbe	.L27
	mov	edi, 10
	call	putchar@PLT
	add	QWORD PTR -16[rbp], 1
.L23:
	cmp	QWORD PTR -16[rbp], 9
	jbe	.L28
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	print_energies, .-print_energies
	.globl	all_flashed
	.type	all_flashed, @function
all_flashed:
.LFB4:
	.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 -16[rbp], 0
	jmp	.L30
.L35:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L31
.L34:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L32
	mov	eax, 0
	jmp	.L33
.L32:
	add	QWORD PTR -8[rbp], 1
.L31:
	cmp	QWORD PTR -8[rbp], 9
	jbe	.L34
	add	QWORD PTR -16[rbp], 1
.L30:
	cmp	QWORD PTR -16[rbp], 9
	jbe	.L35
	mov	eax, 1
.L33:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	all_flashed, .-all_flashed
	.section	.rodata
.LC2:
	.string	"Invalid input"
.LC3:
	.string	"%lu\n"
	.text
	.globl	day11
	.type	day11, @function
day11:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -248[rbp], 0
	jmp	.L37
.L40:
	mov	QWORD PTR -240[rbp], 0
	jmp	.L38
.L39:
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -240[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	lea	ecx, -48[rax]
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	lea	rdx, 0[rbp+rax]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	sub	rax, 224
	mov	BYTE PTR [rax], cl
	add	QWORD PTR -240[rbp], 1
.L38:
	cmp	QWORD PTR -240[rbp], 9
	jbe	.L39
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	sete	al
	movzx	eax, al
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	assert
	add	QWORD PTR -248[rbp], 1
.L37:
	cmp	QWORD PTR -248[rbp], 9
	jbe	.L40
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	QWORD PTR -256[rbp], 0
	mov	DWORD PTR -260[rbp], 0
	jmp	.L41
.L42:
	lea	rdx, -256[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	step
	add	DWORD PTR -260[rbp], 1
.L41:
	cmp	DWORD PTR -260[rbp], 99
	jle	.L42
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -232[rbp], 0
.L45:
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	all_flashed
	test	al, al
	jne	.L48
	lea	rdx, -256[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	step
	add	QWORD PTR -232[rbp], 1
	jmp	.L45
.L48:
	nop
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	day11, .-day11
	.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	"118443.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Assertion failed: %s\012\000"
	.text
	.align	2
	.global	assert
	.syntax unified
	.arm
	.fpu softvfp
	.type	assert, %function
assert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L4+4
	mov	r0, r3
	bl	fprintf
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stderr
	.word	.LC0
	.size	assert, .-assert
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Invalid flash\000"
	.text
	.align	2
	.global	flash
	.syntax unified
	.arm
	.fpu softvfp
	.type	flash, %function
flash:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r1, .L12
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-36]
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, [fp, #-36]
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	movge	r3, r3
	movlt	r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L7
.L11:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	movge	r3, r3
	movlt	r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L8
.L10:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r3, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r1, r2, #255
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L9
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	flash
.L9:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	cmp	r3, #9
	movcc	r3, r3
	movcs	r3, #9
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bls	.L10
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	cmp	r3, #9
	movcc	r3, r3
	movcs	r3, #9
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bls	.L11
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.size	flash, .-flash
	.align	2
	.global	step
	.syntax unified
	.arm
	.fpu softvfp
	.type	step, %function
step:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L19:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L18:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r3, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r1, r2, #255
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L17
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	flash
.L17:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	bls	.L18
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	bls	.L19
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L25:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L24:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bhi	.L22
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	b	.L23
.L22:
	mov	r1, #0
.L23:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bls	.L24
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	bls	.L25
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	step, .-step
	.align	2
	.global	print_energies
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_energies, %function
print_energies:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L32:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L31:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L29
	mov	r0, #88
	bl	putchar
	b	.L30
.L29:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #48
	mov	r0, r3
	bl	putchar
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bls	.L31
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	bls	.L32
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print_energies, .-print_energies
	.align	2
	.global	all_flashed
	.syntax unified
	.arm
	.fpu softvfp
	.type	all_flashed, %function
all_flashed:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L34
.L39:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L35
.L38:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L36
	mov	r3, #0
	b	.L37
.L36:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bls	.L38
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L34:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	bls	.L39
	mov	r3, #1
.L37:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	all_flashed, .-all_flashed
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Invalid input\000"
	.align	2
.LC3:
	.ascii	"%lu\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	day11
	.syntax unified
	.arm
	.fpu softvfp
	.type	day11, %function
day11:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #248
	str	r0, [fp, #-256]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-248]
	b	.L41
.L44:
	mov	r3, #0
	str	r3, [fp, #-244]
	b	.L42
.L43:
	ldr	r2, [fp, #-248]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-244]
	add	r3, r2, r3
	ldr	r2, [fp, #-256]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r1, r3, #255
	ldr	r2, [fp, #-248]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r2, r2, r3
	ldr	r3, [fp, #-244]
	add	r3, r2, r3
	sub	r3, r3, #204
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L42:
	ldr	r3, [fp, #-244]
	cmp	r3, #9
	bls	.L43
	ldr	r2, [fp, #-248]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #10
	ldr	r2, [fp, #-256]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r1, .L53+4
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L41:
	ldr	r3, [fp, #-248]
	cmp	r3, #9
	bls	.L44
	sub	r3, fp, #116
	sub	r1, fp, #216
	mov	r2, #100
	mov	r0, r3
	bl	memcpy
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-236]
	str	r3, [fp, #-232]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L45
.L46:
	sub	r2, fp, #236
	sub	r3, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	step
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L45:
	ldr	r3, [fp, #-240]
	cmp	r3, #99
	ble	.L46
	sub	r3, fp, #236
	ldmia	r3, {r2-r3}
	ldr	r0, .L53+8
	bl	printf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-228]
	str	r3, [fp, #-224]
.L49:
	sub	r3, fp, #216
	mov	r0, r3
	bl	all_flashed
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	sub	r2, fp, #236
	sub	r3, fp, #216
	mov	r1, r2
	mov	r0, r3
	bl	step
	sub	r3, fp, #228
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-228]
	str	r5, [fp, #-224]
	b	.L49
.L52:
	nop
	sub	r3, fp, #228
	ldmia	r3, {r2-r3}
	ldr	r0, .L53+8
	bl	printf
	nop
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.size	day11, .-day11
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
