	.file	"382804.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Data Extracted. Copying..."
.LC1:
	.string	"Write Successful"
.LC2:
	.string	":"
.LC3:
	.string	"Copied to "
.LC4:
	.string	"%s%s%s\n"
	.text
	.globl	writeToOutput
	.type	writeToOutput, @function
writeToOutput:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	jne	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L2:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, .LC2[rip]
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 0
	call	readTheFile
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	writeToOutput, .-writeToOutput
	.section	.rodata
.LC5:
	.string	"Reading the file..."
.LC6:
	.string	" Byte(s)"
.LC7:
	.string	"File Size: "
.LC8:
	.string	"%s%i%s\n"
.LC9:
	.string	"Content: "
.LC10:
	.string	"%s"
	.align 8
.LC11:
	.string	"An error has occur while opening this file. The file may be empty"
	.text
	.globl	readTheFile
	.type	readTheFile, @function
readTheFile:
.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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	DWORD PTR -1064[rbp], esi
	mov	QWORD PTR -1072[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1044[rbp], eax
	mov	eax, DWORD PTR -1044[rbp]
	lea	rcx, .LC6[rip]
	mov	edx, eax
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC9[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -1048[rbp], 1
.L4:
	mov	eax, DWORD PTR -1048[rbp]
	cmp	eax, DWORD PTR -1044[rbp]
	jl	.L5
	cmp	DWORD PTR -1044[rbp], 0
	jns	.L6
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L6:
	cmp	DWORD PTR -1060[rbp], 0
	je	.L7
	mov	edx, DWORD PTR -1044[rbp]
	mov	rcx, QWORD PTR -1072[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	writeToOutput
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -1064[rbp]
	mov	edi, eax
	call	close@PLT
.L10:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	readTheFile, .-readTheFile
	.section	.rodata
.LC12:
	.string	"File Found: "
.LC13:
	.string	"%s%s\n"
	.align 8
.LC14:
	.string	"Input/or Output file was not found!"
	.align 8
.LC15:
	.string	"Invaild number of execution arguments!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 3
	jne	.L12
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 128
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jle	.L13
	cmp	DWORD PTR -4[rbp], 0
	jle	.L13
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, 1
	call	readTheFile
	jmp	.L15
.L13:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L15
.L12:
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L15:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"382804.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Data Extracted. Copying...\000"
	.align	2
.LC1:
	.ascii	"Write Successful\000"
	.align	2
.LC2:
	.ascii	":\000"
	.align	2
.LC3:
	.ascii	"Copied to \000"
	.align	2
.LC4:
	.ascii	"%s%s%s\012\000"
	.text
	.align	2
	.global	writeToOutput
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeToOutput, %function
writeToOutput:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, .L3
	bl	puts
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-24]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bne	.L2
	ldr	r0, .L3+4
	bl	puts
.L2:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, .L3+8
	ldr	r2, [fp, #-20]
	ldr	r1, .L3+12
	ldr	r0, .L3+16
	bl	printf
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	readTheFile
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	writeToOutput, .-writeToOutput
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Reading the file...\000"
	.align	2
.LC6:
	.ascii	" Byte(s)\000"
	.align	2
.LC7:
	.ascii	"File Size: \000"
	.align	2
.LC8:
	.ascii	"%s%i%s\012\000"
	.align	2
.LC9:
	.ascii	"Content: \000"
	.align	2
.LC10:
	.ascii	"%s\000"
	.align	2
.LC11:
	.ascii	"An error has occur while opening this file. The fil"
	.ascii	"e may be empty\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readTheFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	readTheFile, %function
readTheFile:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	str	r2, [fp, #-1056]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	puts
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, .L13+8
	ldr	r2, [fp, #-1036]
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	printf
	ldr	r1, .L13+20
	ldr	r0, .L13+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L6
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1040]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L6:
	ldr	r2, [fp, #-1040]
	ldr	r3, [fp, #-1036]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L13+28
	bl	puts
.L8:
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1036]
	ldr	r1, [fp, #-1056]
	mov	r0, r3
	bl	writeToOutput
	b	.L12
.L9:
	ldr	r0, [fp, #-1052]
	bl	close
.L12:
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC12
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	readTheFile, .-readTheFile
	.section	.rodata
	.align	2
.LC13:
	.ascii	"File Found: \000"
	.align	2
.LC14:
	.ascii	"%s%s\012\000"
	.align	2
.LC15:
	.ascii	"Input/or Output file was not found!\000"
	.align	2
.LC16:
	.ascii	"Invaild number of execution arguments!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L16
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #128
	mov	r0, r3
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L17
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L17
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21
	ldr	r0, .L21+4
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	mov	r0, #1
	bl	readTheFile
	b	.L19
.L17:
	ldr	r0, .L21+8
	bl	puts
	b	.L19
.L16:
	ldr	r0, .L21+12
	bl	puts
.L19:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
