	.file	"extr_16099.c_copy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[-] open"
.LC1:
	.string	"[-] read"
.LC2:
	.string	"[-] write"
	.text
	.p2align 4
	.globl	copy
	.type	copy, @function
copy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 4096
	.cfi_def_cfa_offset 4144
	or	QWORD PTR [rsp], 0
	sub	rsp, 16
	.cfi_def_cfa_offset 4160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4104[rsp], rax
	xor	eax, eax
	mov	rbp, rsi
	mov	esi, DWORD PTR O_RDONLY[rip]
	call	open@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
.L2:
	mov	esi, DWORD PTR O_RDWR[rip]
	mov	edx, 384
	mov	rdi, rbp
	xor	eax, eax
	or	esi, DWORD PTR O_CREAT[rip]
	or	esi, DWORD PTR O_TRUNC[rip]
	call	open@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L14
.L3:
	mov	rbp, rsp
	lea	r14, .LC1[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	je	.L6
.L5:
	mov	rdx, rbx
	mov	rsi, rbp
	mov	edi, r13d
	call	write@PLT
	cmp	rax, rbx
	jne	.L15
.L7:
	mov	edx, 4096
	mov	rsi, rbp
	mov	edi, r12d
	call	read@PLT
	mov	rbx, rax
	test	rax, rax
	jns	.L4
	mov	rdi, r14
	call	die@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, r12d
	call	close@PLT
	mov	edi, r13d
	call	close@PLT
	xor	eax, eax
	call	sync@PLT
	xor	eax, eax
	call	sync@PLT
	mov	rax, QWORD PTR 4104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 4112
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	die@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC0[rip]
	call	die@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC0[rip]
	call	die@PLT
	jmp	.L3
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	copy, .-copy
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_16099.c_copy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[-] open\000"
	.align	2
.LC1:
	.ascii	"[-] read\000"
	.align	2
.LC2:
	.ascii	"[-] write\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy, %function
copy:
	@ args = 0, pretend = 0, frame = 4104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L17
	sub	sp, sp, #4096
	sub	sp, sp, #8
	ldr	r2, .L17+4
	mov	r4, r1
	ldr	r1, [r3]
	add	r3, sp, #4096
	add	r3, r3, #4
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	bl	open
	subs	r5, r0, #0
	blt	.L13
.L2:
	ldr	r3, .L17+8
	ldr	r2, .L17+12
	ldr	r1, .L17+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	mov	r0, r4
	mov	r2, #384
	orr	r1, r3, r1
	bl	open
	subs	r6, r0, #0
	blt	.L14
.L3:
	ldr	r7, .L17+20
	ldr	r8, .L17+24
	b	.L7
.L4:
	beq	.L6
.L5:
	mov	r2, r4
	mov	r0, r6
	add	r1, sp, #4
	bl	write
	cmp	r0, r4
	bne	.L15
.L7:
	mov	r2, #4096
	mov	r0, r5
	add	r1, sp, #4
	bl	read
	subs	r4, r0, #0
	bge	.L4
	mov	r0, r7
	bl	die
	b	.L5
.L6:
	mov	r0, r5
	bl	close
	mov	r0, r6
	bl	close
	bl	sync
	bl	sync
	add	r3, sp, #4096
	ldr	r2, .L17+4
	add	r3, r3, #4
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L16
	add	sp, sp, #4096
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r8
	bl	die
	b	.L7
.L13:
	ldr	r0, .L17+28
	bl	die
	b	.L2
.L14:
	ldr	r0, .L17+28
	bl	die
	b	.L3
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	O_RDONLY
	.word	.LC3
	.word	O_RDWR
	.word	O_CREAT
	.word	O_TRUNC
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	copy, .-copy
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
