	.file	"508161.c"
	.intel_syntax noprefix
	.text
	.globl	cuteOctupusesFlash
	.type	cuteOctupusesFlash, @function
cuteOctupusesFlash:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	cmp	DWORD PTR -12[rbp], 9
	jg	.L13
	cmp	DWORD PTR -16[rbp], 9
	jg	.L13
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 48
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	jne	.L13
.L3:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 57
	jne	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 1
	cmp	DWORD PTR -12[rbp], 8
	jg	.L6
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	cuteOctupusesFlash
.L6:
	cmp	DWORD PTR -16[rbp], 8
	jg	.L7
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, 1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	cuteOctupusesFlash
.L7:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L8
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	cuteOctupusesFlash
.L8:
	cmp	DWORD PTR -16[rbp], 0
	jle	.L9
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	cuteOctupusesFlash
.L9:
	cmp	DWORD PTR -12[rbp], 8
	jg	.L10
	cmp	DWORD PTR -16[rbp], 8
	jg	.L10
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	cuteOctupusesFlash
.L10:
	cmp	DWORD PTR -12[rbp], 8
	jg	.L11
	cmp	DWORD PTR -16[rbp], 0
	jle	.L11
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	cuteOctupusesFlash
.L11:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L12
	cmp	DWORD PTR -16[rbp], 8
	jg	.L12
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	cuteOctupusesFlash
.L12:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L1
	cmp	DWORD PTR -16[rbp], 0
	jle	.L1
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	cuteOctupusesFlash
	jmp	.L1
.L5:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rax+rdx]
	add	edx, 1
	mov	ecx, edx
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	BYTE PTR [rax+rdx], cl
	jmp	.L1
.L13:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cuteOctupusesFlash, .-cuteOctupusesFlash
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"day11.txt"
.LC2:
	.string	"FileIOError"
	.align 8
.LC3:
	.string	"First step where all octupuses flash: %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
	sub	rsp, 288
	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 -240[rbp], rax
	cmp	QWORD PTR -240[rbp], 0
	jne	.L15
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	lea	rdx, -224[rbp]
	mov	eax, 0
	mov	ecx, 12
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	DWORD PTR -272[rbp], 0
	mov	eax, DWORD PTR -272[rbp]
	mov	DWORD PTR -276[rbp], eax
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -232[rbp], rax
	jmp	.L16
.L20:
	mov	rax, QWORD PTR -232[rbp]
	mov	QWORD PTR -248[rbp], rax
	jmp	.L17
.L19:
	cmp	DWORD PTR -272[rbp], 9
	jle	.L18
	mov	DWORD PTR -272[rbp], 0
	add	DWORD PTR -276[rbp], 1
.L18:
	mov	eax, DWORD PTR -272[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -272[rbp], edx
	mov	rdx, QWORD PTR -248[rbp]
	movzx	edx, BYTE PTR [rdx]
	movsx	rsi, eax
	mov	eax, DWORD PTR -276[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rbp
	add	rax, rsi
	sub	rax, 224
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -248[rbp], 1
.L17:
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L19
.L16:
	mov	rdx, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L20
	mov	DWORD PTR -280[rbp], 0
	mov	DWORD PTR -268[rbp], 0
	jmp	.L21
.L36:
	lea	rdx, -112[rbp]
	mov	eax, 0
	mov	ecx, 12
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	DWORD PTR -264[rbp], 0
	jmp	.L22
.L25:
	mov	DWORD PTR -260[rbp], 0
	jmp	.L23
.L24:
	lea	rdi, -112[rbp]
	lea	rcx, -280[rbp]
	mov	edx, DWORD PTR -260[rbp]
	mov	esi, DWORD PTR -264[rbp]
	lea	rax, -224[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	cuteOctupusesFlash
	add	DWORD PTR -260[rbp], 1
.L23:
	cmp	DWORD PTR -260[rbp], 9
	jle	.L24
	add	DWORD PTR -264[rbp], 1
.L22:
	cmp	DWORD PTR -264[rbp], 9
	jle	.L25
	mov	DWORD PTR -256[rbp], 0
	jmp	.L26
.L33:
	mov	DWORD PTR -252[rbp], 0
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -252[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 112
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -281[rbp], al
	movzx	eax, BYTE PTR -281[rbp]
	xor	eax, 1
	test	al, al
	jne	.L38
	add	DWORD PTR -252[rbp], 1
.L27:
	cmp	DWORD PTR -252[rbp], 9
	jle	.L30
	jmp	.L29
.L38:
	nop
.L29:
	movzx	eax, BYTE PTR -281[rbp]
	xor	eax, 1
	test	al, al
	jne	.L39
	add	DWORD PTR -256[rbp], 1
.L26:
	cmp	DWORD PTR -256[rbp], 9
	jle	.L33
	jmp	.L32
.L39:
	nop
.L32:
	cmp	BYTE PTR -281[rbp], 0
	je	.L34
	mov	eax, DWORD PTR -268[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L34:
	add	DWORD PTR -268[rbp], 1
.L21:
	cmp	DWORD PTR -268[rbp], 499
	jle	.L36
.L35:
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"508161.c"
	.text
	.align	2
	.global	cuteOctupusesFlash
	.syntax unified
	.arm
	.fpu softvfp
	.type	cuteOctupusesFlash, %function
cuteOctupusesFlash:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	bgt	.L13
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	bgt	.L13
	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, #-8]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L3
	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, #4]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
.L3:
	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, #-8]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bne	.L5
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	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, #-8]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	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, #4]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	bgt	.L6
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	bgt	.L7
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L8
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L9
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	bgt	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	bgt	.L10
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	bgt	.L11
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L12
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	bgt	.L12
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L1
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L1
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	cuteOctupusesFlash
	b	.L1
.L5:
	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, #-8]
	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]
	b	.L1
.L13:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cuteOctupusesFlash, .-cuteOctupusesFlash
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"day11.txt\000"
	.align	2
.LC2:
	.ascii	"FileIOError\000"
	.align	2
.LC3:
	.ascii	"First step where all octupuses flash: %d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L40+4
	ldr	r0, .L40+8
	bl	fopen
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L40+12
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	sub	r3, fp, #208
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-244]
	str	r3, [fp, #-248]
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-212]
	b	.L16
.L20:
	ldr	r3, [fp, #-212]
	str	r3, [fp, #-240]
	b	.L17
.L19:
	ldr	r3, [fp, #-244]
	cmp	r3, #9
	ble	.L18
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L18:
	ldr	r2, [fp, #-244]
	add	r3, r2, #1
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-240]
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-248]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	add	r3, r3, r2
	sub	r3, r3, #204
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L17:
	ldr	r3, [fp, #-240]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L19
.L16:
	ldr	r2, [fp, #-216]
	mov	r1, #100
	ldr	r0, [fp, #-212]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	str	r3, [fp, #-252]
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L21
.L36:
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L22
.L25:
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L23
.L24:
	sub	r2, fp, #252
	sub	r0, fp, #208
	sub	r3, fp, #108
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-228]
	ldr	r1, [fp, #-232]
	bl	cuteOctupusesFlash
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L23:
	ldr	r3, [fp, #-228]
	cmp	r3, #9
	ble	.L24
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L22:
	ldr	r3, [fp, #-232]
	cmp	r3, #9
	ble	.L25
	mov	r3, #0
	str	r3, [fp, #-224]
	b	.L26
.L33:
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L27
.L30:
	ldr	r2, [fp, #-224]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-220]
	add	r3, r2, r3
	sub	r3, r3, #104
	ldrb	r3, [r3]
	strb	r3, [fp, #-253]
	ldrb	r3, [fp, #-253]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L27:
	ldr	r3, [fp, #-220]
	cmp	r3, #9
	ble	.L30
	b	.L29
.L38:
	nop
.L29:
	ldrb	r3, [fp, #-253]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
.L26:
	ldr	r3, [fp, #-224]
	cmp	r3, #9
	ble	.L33
	b	.L32
.L39:
	nop
.L32:
	ldrb	r3, [fp, #-253]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L40+16
	bl	printf
	b	.L35
.L34:
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L21:
	ldr	r3, [fp, #-236]
	cmp	r3, #500
	blt	.L36
.L35:
	ldr	r0, [fp, #-212]
	bl	free
	ldr	r0, [fp, #-216]
	bl	fclose
	mov	r0, #0
	bl	exit
.L41:
	.align	2
.L40:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
