	.file	"472469.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: cp file_from file_to\n"
	.align 8
.LC1:
	.string	"Error: Can't read from file %s\n"
.LC2:
	.string	"Error: Can't write to %s\n"
.LC3:
	.string	"Error: Can't close fd %d\n"
	.text
	.globl	_error
	.type	_error, @function
_error:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	cmp	DWORD PTR -4[rbp], 97
	jne	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 97
	call	exit@PLT
.L2:
	cmp	DWORD PTR -4[rbp], 98
	jne	.L3
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 98
	call	exit@PLT
.L3:
	cmp	DWORD PTR -4[rbp], 99
	jne	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 99
	call	exit@PLT
.L4:
	cmp	DWORD PTR -4[rbp], 100
	jne	.L6
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 100
	call	exit@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_error, .-_error
	.section	.rodata
.LC4:
	.string	""
	.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, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1072[rbp], rax
	mov	rax, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1064[rbp], rax
	cmp	DWORD PTR -1092[rbp], 3
	je	.L8
	mov	edx, 0
	lea	rsi, .LC4[rip]
	mov	edi, 97
	call	_error
.L8:
	mov	rax, QWORD PTR -1064[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1088[rbp], eax
	cmp	DWORD PTR -1088[rbp], -1
	jne	.L9
	mov	rax, QWORD PTR -1064[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 98
	call	_error
.L9:
	mov	rax, QWORD PTR -1072[rbp]
	mov	edx, 664
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1084[rbp], eax
	cmp	DWORD PTR -1084[rbp], -1
	jne	.L13
	mov	rax, QWORD PTR -1072[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 99
	call	_error
.L13:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1088[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1056[rbp], rax
	cmp	QWORD PTR -1056[rbp], -1
	jne	.L11
	mov	rax, QWORD PTR -1064[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 98
	call	_error
.L11:
	mov	rdx, QWORD PTR -1056[rbp]
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1084[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], -1
	jne	.L12
	mov	rax, QWORD PTR -1072[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 99
	call	_error
.L12:
	cmp	QWORD PTR -1048[rbp], 1024
	je	.L13
	mov	eax, DWORD PTR -1088[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -1080[rbp], eax
	cmp	DWORD PTR -1080[rbp], -1
	jne	.L14
	mov	eax, DWORD PTR -1088[rbp]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	edi, 100
	call	_error
.L14:
	mov	eax, DWORD PTR -1084[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -1076[rbp], eax
	cmp	DWORD PTR -1076[rbp], -1
	jne	.L15
	mov	eax, DWORD PTR -1088[rbp]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	edi, 100
	call	_error
.L15:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"472469.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: cp file_from file_to\012\000"
	.align	2
.LC1:
	.ascii	"Error: Can't read from file %s\012\000"
	.align	2
.LC2:
	.ascii	"Error: Can't write to %s\012\000"
	.align	2
.LC3:
	.ascii	"Error: Can't close fd %d\012\000"
	.text
	.align	2
	.global	_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	_error, %function
_error:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #97
	bne	.L2
	ldr	r1, .L7
	mov	r0, #2
	bl	dprintf
	mov	r0, #97
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #98
	bne	.L3
	ldr	r2, [fp, #-12]
	ldr	r1, .L7+4
	mov	r0, #2
	bl	dprintf
	mov	r0, #98
	bl	exit
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	bne	.L4
	ldr	r2, [fp, #-12]
	ldr	r1, .L7+8
	mov	r0, #2
	bl	dprintf
	mov	r0, #99
	bl	exit
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	bne	.L6
	ldr	r2, [fp, #-16]
	ldr	r1, .L7+12
	mov	r0, #2
	bl	dprintf
	mov	r0, #100
	bl	exit
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	_error, .-_error
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1072]
	str	r1, [fp, #-1076]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1076]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-1064]
	ldr	r3, [fp, #-1076]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1060]
	ldr	r3, [fp, #-1072]
	cmp	r3, #3
	beq	.L10
	mov	r2, #0
	ldr	r1, .L20+4
	mov	r0, #97
	bl	_error
.L10:
	mov	r1, #0
	ldr	r0, [fp, #-1060]
	bl	open
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmn	r3, #1
	bne	.L11
	mov	r2, #0
	ldr	r1, [fp, #-1060]
	mov	r0, #98
	bl	_error
.L11:
	mov	r2, #664
	ldr	r1, .L20+8
	ldr	r0, [fp, #-1064]
	bl	open
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmn	r3, #1
	bne	.L15
	mov	r2, #0
	ldr	r1, [fp, #-1064]
	mov	r0, #99
	bl	_error
.L15:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1056]
	bl	read
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmn	r3, #1
	bne	.L13
	mov	r2, #0
	ldr	r1, [fp, #-1060]
	mov	r0, #98
	bl	_error
.L13:
	ldr	r2, [fp, #-1048]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	write
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmn	r3, #1
	bne	.L14
	mov	r2, #0
	ldr	r1, [fp, #-1064]
	mov	r0, #99
	bl	_error
.L14:
	ldr	r3, [fp, #-1044]
	cmp	r3, #1024
	beq	.L15
	ldr	r0, [fp, #-1056]
	bl	close
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmn	r3, #1
	bne	.L16
	ldr	r2, [fp, #-1056]
	ldr	r1, .L20+4
	mov	r0, #100
	bl	_error
.L16:
	ldr	r0, [fp, #-1052]
	bl	close
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmn	r3, #1
	bne	.L17
	ldr	r2, [fp, #-1056]
	ldr	r1, .L20+4
	mov	r0, #100
	bl	_error
.L17:
	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	.LC5
	.word	.LC4
	.word	577
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
