	.file	"240413.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"lena.pgm"
.LC2:
	.string	"Erro na abertura do arquivo "
.LC3:
	.string	"%s"
.LC4:
	.string	"P2"
.LC5:
	.string	"Arquivo n e PGM"
.LC6:
	.string	"%d %d\n%d\n"
	.align 8
.LC7:
	.string	"larg =%d alt=%d key=%s max=%d\n"
.LC8:
	.string	"w+"
.LC9:
	.string	"arquivo.pgm"
.LC10:
	.string	"ERRO AO ABRIR NEWIMAGE"
.LC11:
	.string	"%d"
	.align 8
.LC12:
	.string	"O maior valor da imagem de entrada eh: %d\n"
	.align 8
.LC13:
	.string	"O menor valor da imagem de entrada eh: %d\n"
	.align 8
.LC14:
	.string	"O ID_MAX digitado pelo usuario foi: %d\n"
	.align 8
.LC15:
	.string	"O ID_MIN digitado pelo usuario foi: %d\n"
	.align 8
.LC16:
	.string	"Operacao Invalida, Tente de novo com outra imagem"
.LC17:
	.string	"PAUSE"
.LC18:
	.string	"P2\n%d %d\n%d\n"
.LC19:
	.string	"%d "
	.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
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 150
	mov	DWORD PTR -64[rbp], 50
	mov	DWORD PTR -60[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L23
.L2:
	lea	rdx, -29[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -29[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -29[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L23
.L4:
	lea	rsi, -88[rbp]
	lea	rcx, -96[rbp]
	lea	rdx, -92[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	esi, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	lea	rcx, -29[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L5
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L23
.L5:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -84[rbp], 1
.L6:
	mov	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L7
	mov	DWORD PTR -84[rbp], 0
	jmp	.L8
.L11:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -80[rbp], 1
.L9:
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L10
	add	DWORD PTR -84[rbp], 1
.L8:
	mov	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L11
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L12
.L17:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -76[rbp]
	cmp	edx, eax
	jbe	.L14
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -76[rbp], eax
.L14:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	cmp	edx, eax
	jnb	.L15
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], eax
.L15:
	add	DWORD PTR -80[rbp], 1
.L13:
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L16
	add	DWORD PTR -84[rbp], 1
.L12:
	mov	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L17
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, DWORD PTR -72[rbp]
	test	eax, eax
	jg	.L18
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC17[rip]
	call	system@PLT
	mov	edi, 0
	call	exit@PLT
.L18:
	mov	esi, DWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -96[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	r8d, esi
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -84[rbp], 0
	jmp	.L19
.L22:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -72[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -64[rbp]
	imul	eax, edx
	mov	edx, DWORD PTR -76[rbp]
	sub	edx, DWORD PTR -72[rbp]
	mov	ebx, edx
	mov	edx, 0
	div	ebx
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -60[rbp], 0
	add	DWORD PTR -80[rbp], 1
.L20:
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L21
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -84[rbp], 1
.L19:
	mov	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L22
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L23:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	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	"240413.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"lena.pgm\000"
	.align	2
.LC2:
	.ascii	"Erro na abertura do arquivo \000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"P2\000"
	.align	2
.LC5:
	.ascii	"Arquivo n e PGM\000"
	.align	2
.LC6:
	.ascii	"%d %d\012%d\012\000"
	.align	2
.LC7:
	.ascii	"larg =%d alt=%d key=%s max=%d\012\000"
	.align	2
.LC8:
	.ascii	"w+\000"
	.align	2
.LC9:
	.ascii	"arquivo.pgm\000"
	.align	2
.LC10:
	.ascii	"ERRO AO ABRIR NEWIMAGE\000"
	.align	2
.LC11:
	.ascii	"%d\000"
	.align	2
.LC12:
	.ascii	"O maior valor da imagem de entrada eh: %d\012\000"
	.align	2
.LC13:
	.ascii	"O menor valor da imagem de entrada eh: %d\012\000"
	.align	2
.LC14:
	.ascii	"O ID_MAX digitado pelo usuario foi: %d\012\000"
	.align	2
.LC15:
	.ascii	"O ID_MIN digitado pelo usuario foi: %d\012\000"
	.align	2
.LC16:
	.ascii	"Operacao Invalida, Tente de novo com outra imagem\000"
	.align	2
.LC17:
	.ascii	"PAUSE\000"
	.align	2
.LC18:
	.ascii	"P2\012%d %d\012%d\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC19:
	.ascii	"%d \000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #150
	str	r3, [fp, #-48]
	mov	r3, #50
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r1, .L25+4
	ldr	r0, .L25+8
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L25+12
	bl	puts
	mov	r3, #0
	b	.L23
.L2:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L25+16
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	sub	r3, fp, #24
	ldr	r1, .L25+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L25+24
	bl	puts
	sub	r3, fp, #24
	mov	r0, r3
	bl	puts
	ldr	r0, [fp, #-36]
	bl	fclose
	mov	r3, #0
	b	.L23
.L4:
	sub	r1, fp, #76
	sub	r2, fp, #72
	sub	r3, fp, #68
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L25+28
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	ldr	r1, [fp, #-76]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	sub	r0, fp, #24
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L25+32
	bl	printf
	ldr	r1, .L25+36
	ldr	r0, .L25+40
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L25+44
	bl	printf
	mov	r3, #0
	b	.L23
.L5:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L6
.L7:
	ldr	r3, [fp, #-76]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L6:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L8
.L11:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L9
.L10:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L25+48
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L9:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L8:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L12
.L17:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L13
.L16:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bls	.L14
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-56]
.L14:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcs	.L15
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
.L15:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L13:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L12:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L17
	ldr	r1, [fp, #-56]
	ldr	r0, .L25+52
	bl	printf
	ldr	r1, [fp, #-52]
	ldr	r0, .L25+56
	bl	printf
	ldr	r1, [fp, #-48]
	ldr	r0, .L25+60
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, .L25+64
	bl	printf
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	cmp	r3, #0
	bgt	.L18
	ldr	r0, .L25+68
	bl	puts
	ldr	r0, [fp, #-36]
	bl	fclose
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r0, .L25+72
	bl	system
	mov	r0, #0
	bl	exit
.L18:
	ldr	r2, [fp, #-72]
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-68]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L25+76
	ldr	r0, [fp, #-32]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L19
.L22:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L20
.L21:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	ldr	r1, [fp, #-48]
	ldr	r2, [fp, #-44]
	sub	r2, r1, r2
	mul	r0, r2, r3
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r1, .L25+80
	ldr	r0, [fp, #-32]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L20:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L21
	ldr	r1, [fp, #-32]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L19:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L22
	ldr	r0, [fp, #-36]
	bl	fclose
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #0
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC20
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
