	.file	"615674.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"render.txt"
.LC2:
	.string	"wb"
.LC3:
	.string	"output.ppm"
.LC4:
	.string	"Length : %ld\n"
.LC5:
	.string	"%ld %ld"
.LC6:
	.string	"P3\n%ld %ld\n255\n"
.LC7:
	.string	" %c"
.LC8:
	.string	" %c %ld %ld %ld %ld %ld %ld"
	.align 8
.LC9:
	.string	" %c %ld %ld %ld %ld %ld %ld %ld\n"
.LC10:
	.string	"%ld\n%ld\n%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	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 -64[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rcx, -184[rbp]
	lea	rdx, -176[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rcx, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	imul	rax, rdx
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -112[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR 16[rax], 0
	add	QWORD PTR -112[rbp], 1
.L2:
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	imul	rax, rdx
	cmp	QWORD PTR -112[rbp], rax
	jl	.L3
	jmp	.L4
.L15:
	lea	rdx, -185[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	movzx	eax, BYTE PTR -185[rbp]
	cmp	al, 99
	jne	.L5
	lea	r8, -152[rbp]
	lea	rdi, -160[rbp]
	lea	rcx, -168[rbp]
	lea	rdx, -185[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	lea	rsi, -128[rbp]
	push	rsi
	lea	rsi, -136[rbp]
	push	rsi
	lea	rsi, -144[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -152[rbp]
	neg	rax
	mov	QWORD PTR -104[rbp], rax
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -152[rbp]
	neg	rax
	mov	QWORD PTR -96[rbp], rax
	jmp	.L7
.L9:
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	test	rax, rax
	jle	.L8
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	test	rax, rax
	jle	.L8
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -96[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -176[rbp]
	imul	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	imul	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	imul	rax, rax
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -152[rbp]
	imul	rax, rdx
	cmp	rcx, rax
	jge	.L8
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR 16[rdx], rax
.L8:
	add	QWORD PTR -96[rbp], 1
.L7:
	mov	rax, QWORD PTR -152[rbp]
	cmp	QWORD PTR -96[rbp], rax
	jl	.L9
	add	QWORD PTR -104[rbp], 1
.L6:
	mov	rax, QWORD PTR -152[rbp]
	cmp	QWORD PTR -104[rbp], rax
	jl	.L10
	jmp	.L4
.L5:
	movzx	eax, BYTE PTR -185[rbp]
	cmp	al, 114
	jne	.L4
	lea	r8, -152[rbp]
	lea	rdi, -160[rbp]
	lea	rcx, -168[rbp]
	lea	rdx, -185[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, -120[rbp]
	push	rsi
	lea	rsi, -128[rbp]
	push	rsi
	lea	rsi, -136[rbp]
	push	rsi
	lea	rsi, -144[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 32
	mov	QWORD PTR -88[rbp], 0
	jmp	.L11
.L14:
	mov	QWORD PTR -80[rbp], 0
	jmp	.L12
.L13:
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -176[rbp]
	imul	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 16[rdx], rax
	add	QWORD PTR -80[rbp], 1
.L12:
	mov	rax, QWORD PTR -144[rbp]
	cmp	QWORD PTR -80[rbp], rax
	jl	.L13
	add	QWORD PTR -88[rbp], 1
.L11:
	mov	rax, QWORD PTR -152[rbp]
	cmp	QWORD PTR -88[rbp], rax
	jl	.L14
.L4:
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -72[rbp], 0
	jmp	.L16
.L17:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8, rsi
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -72[rbp], 1
.L16:
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	imul	rax, rdx
	cmp	QWORD PTR -72[rbp], rax
	jl	.L17
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"615674.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"render.txt\000"
	.align	2
.LC2:
	.ascii	"wb\000"
	.align	2
.LC3:
	.ascii	"output.ppm\000"
	.align	2
.LC4:
	.ascii	"Length : %ld\012\000"
	.align	2
.LC5:
	.ascii	"%ld %ld\000"
	.align	2
.LC6:
	.ascii	"P3\012%ld %ld\012255\012\000"
	.align	2
.LC7:
	.ascii	" %c\000"
	.align	2
.LC8:
	.ascii	" %c %ld %ld %ld %ld %ld %ld\000"
	.align	2
.LC9:
	.ascii	" %c %ld %ld %ld %ld %ld %ld %ld\012\000"
	.align	2
.LC10:
	.ascii	"%ld\012%ld\012%ld\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L20+4
	ldr	r0, .L20+8
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r1, .L20+12
	ldr	r0, .L20+16
	bl	fopen
	str	r0, [fp, #-32]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	fseek
	ldr	r0, [fp, #-36]
	bl	ftell
	str	r0, [fp, #-28]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	fseek
	ldr	r1, [fp, #-28]
	ldr	r0, .L20+20
	bl	printf
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	sub	r3, fp, #96
	sub	r2, fp, #92
	ldr	r1, .L20+24
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-92]
	ldr	r1, .L20+28
	ldr	r0, [fp, #-32]
	bl	fprintf
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	mov	r1, r3
	ldr	r0, .L20+28
	bl	printf
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L2
.L3:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L2:
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	mul	r3, r2, r3
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L3
	b	.L4
.L15:
	sub	r3, fp, #97
	mov	r2, r3
	ldr	r1, .L20+32
	ldr	r0, [fp, #-24]
	bl	__isoc99_sscanf
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L5
	sub	r1, fp, #88
	sub	r2, fp, #97
	sub	r3, fp, #68
	str	r3, [sp, #16]
	sub	r3, fp, #72
	str	r3, [sp, #12]
	sub	r3, fp, #76
	str	r3, [sp, #8]
	sub	r3, fp, #80
	str	r3, [sp, #4]
	sub	r3, fp, #84
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L20+36
	ldr	r0, [fp, #-24]
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-80]
	rsb	r3, r3, #0
	str	r3, [fp, #-56]
	b	.L6
.L10:
	ldr	r3, [fp, #-80]
	rsb	r3, r3, #0
	str	r3, [fp, #-52]
	b	.L7
.L9:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	cmp	r3, #0
	ble	.L8
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	cmp	r3, #0
	ble	.L8
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-56]
	add	r2, r2, r3
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-52]
	add	r3, r1, r3
	ldr	r1, [fp, #-92]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-56]
	mul	r2, r3, r3
	ldr	r3, [fp, #-52]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	add	r2, r2, r3
	ldr	r3, [fp, #-80]
	ldr	r1, [fp, #-80]
	mul	r3, r1, r3
	cmp	r2, r3
	bge	.L8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-76]
	str	r2, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-72]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-68]
	str	r2, [r3, #8]
.L8:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L7:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L6:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L10
	b	.L4
.L5:
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L4
	sub	r1, fp, #88
	sub	r2, fp, #97
	sub	r3, fp, #64
	str	r3, [sp, #20]
	sub	r3, fp, #68
	str	r3, [sp, #16]
	sub	r3, fp, #72
	str	r3, [sp, #12]
	sub	r3, fp, #76
	str	r3, [sp, #8]
	sub	r3, fp, #80
	str	r3, [sp, #4]
	sub	r3, fp, #84
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L20+40
	ldr	r0, [fp, #-24]
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L12
.L13:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-48]
	add	r2, r2, r3
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	ldr	r1, [fp, #-92]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-72]
	str	r2, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-68]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-64]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L12:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L11:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L14
.L4:
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L16
.L17:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r1, [r3]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r0, [r3, #4]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L20+44
	ldr	r0, [fp, #-32]
	bl	fprintf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L16:
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	mul	r3, r2, r3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L17
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r0, [fp, #-36]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
