	.file	"73576075.c"
	.intel_syntax noprefix
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
	.align 8
.LC0:
	.string	"Utiliza\303\247\303\243o: ./a.out source dest\n"
	.align 8
.LC1:
	.string	"There was an error opening the file %s for reading!\n"
	.align 8
.LC2:
	.string	"There was an error opening the file %s for writing!\n"
	.align 8
.LC3:
	.string	"Source file is bigger than the available buffer! However, there are loops!"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2112
	mov	DWORD PTR -10292[rbp], edi
	mov	QWORD PTR -10304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -10292[rbp], 3
	je	.L5
	mov	edx, 34
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	write@PLT
	mov	eax, 1
	jmp	.L12
.L5:
	mov	rax, QWORD PTR -10304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -10268[rbp], eax
	cmp	DWORD PTR -10268[rbp], -1
	jne	.L7
	mov	rax, QWORD PTR -10304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -10304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 365
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -10264[rbp], eax
	cmp	DWORD PTR -10264[rbp], -1
	jne	.L8
	mov	rax, QWORD PTR -10304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -10268[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -10276[rbp], eax
	mov	eax, DWORD PTR -10268[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	cmp	DWORD PTR -10276[rbp], 10240
	jle	.L9
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L9:
	mov	DWORD PTR -10272[rbp], 1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -10260[rbp]
	movsx	rdx, eax
	lea	rcx, -10256[rbp]
	mov	eax, DWORD PTR -10264[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -10260[rbp]
	sub	DWORD PTR -10276[rbp], eax
	add	DWORD PTR -10272[rbp], 1
.L10:
	mov	eax, DWORD PTR -10276[rbp]
	mov	esi, 10240
	mov	edi, eax
	call	min
	movsx	rdx, eax
	lea	rcx, -10256[rbp]
	mov	eax, DWORD PTR -10268[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -10260[rbp], eax
	cmp	DWORD PTR -10260[rbp], 0
	jne	.L11
	mov	eax, DWORD PTR -10264[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -10268[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"73576075.c"
	.text
	.align	2
	.global	min
	.syntax unified
	.arm
	.fpu softvfp
	.type	min, %function
min:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min, .-min
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Utiliza\303\247\303\243o: ./a.out source dest\012\000"
	.align	2
.LC1:
	.ascii	"There was an error opening the file %s for reading!"
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"There was an error opening the file %s for writing!"
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"Source file is bigger than the available buffer! Ho"
	.ascii	"wever, there are loops!\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 = 10272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #10240
	sub	sp, sp, #36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-2076]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-2080]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2076]
	cmp	r3, #3
	beq	.L5
	mov	r2, #34
	ldr	r1, .L14+4
	mov	r0, #1
	bl	write
	mov	r3, #1
	b	.L12
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2080]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-2064]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2064]
	cmn	r3, #1
	bne	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2080]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2080]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r2, .L14+12
	ldr	r1, .L14+16
	mov	r0, r3
	bl	open
	str	r0, [r4, #-2060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	cmn	r3, #1
	bne	.L8
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2080]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+20
	bl	printf
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-2064]
	bl	lseek
	str	r0, [r4, #-2072]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-2064]
	bl	lseek
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	cmp	r3, #10240
	ble	.L9
	ldr	r0, .L14+24
	bl	puts
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2068]
	b	.L10
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-2056]
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2060]
	bl	write
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2072]
	ldr	r3, [r3, #-2056]
	sub	r3, r2, r3
	str	r3, [r1, #-2072]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2068]
	add	r3, r3, #1
	str	r3, [r2, #-2068]
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #10240
	ldr	r0, [r3, #-2072]
	bl	min
	mov	r3, r0
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r1
	mov	r1, r3
	ldr	r0, [r0, #-2064]
	bl	read
	str	r0, [r4, #-2056]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2056]
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2060]
	bl	close
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2064]
	bl	close
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	365
	.word	577
	.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
