	.file	"232303.c"
	.intel_syntax noprefix
	.text
	.local	iobuf
	.comm	iobuf,8,8
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"%s"
.LC2:
	.string	"overwrite %s? "
	.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
	sub	rsp, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -320[rbp], 0
	jmp	.L2
.L3:
	call	usage
.L2:
	mov	rcx, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR -340[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], -1
	jne	.L3
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -340[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -352[rbp], rax
	cmp	DWORD PTR -340[rbp], 1
	jg	.L4
	call	usage
.L4:
	mov	edi, 8192
	call	malloc@PLT
	mov	QWORD PTR iobuf[rip], rax
	mov	rax, QWORD PTR iobuf[rip]
	test	rax, rax
	jne	.L5
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L5:
	sub	DWORD PTR -340[rbp], 1
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -312[rbp], rax
	lea	rdx, -304[rbp]
	mov	rax, QWORD PTR -312[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -332[rbp], eax
	cmp	DWORD PTR -332[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L6
	mov	rax, QWORD PTR -312[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L6:
	cmp	DWORD PTR -332[rbp], -1
	je	.L7
	mov	eax, DWORD PTR -280[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L8
.L7:
	cmp	DWORD PTR -340[rbp], 1
	jle	.L9
	call	usage
.L9:
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L10
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L11
	call	usage
.L11:
	cmp	DWORD PTR -332[rbp], -1
	je	.L12
	cmp	DWORD PTR -320[rbp], 0
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -312[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	getchar@PLT
	mov	DWORD PTR -328[rbp], eax
	mov	eax, DWORD PTR -328[rbp]
	mov	DWORD PTR -316[rbp], eax
	jmp	.L13
.L15:
	call	getchar@PLT
	mov	DWORD PTR -328[rbp], eax
.L13:
	cmp	DWORD PTR -328[rbp], 10
	je	.L14
	cmp	DWORD PTR -328[rbp], -1
	jne	.L15
.L14:
	cmp	DWORD PTR -316[rbp], 121
	je	.L12
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -312[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	copy
	mov	DWORD PTR -332[rbp], eax
	jmp	.L16
.L8:
	mov	DWORD PTR -332[rbp], 0
	mov	DWORD PTR -324[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -312[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	copy
	mov	DWORD PTR -332[rbp], eax
	add	DWORD PTR -324[rbp], 1
.L17:
	mov	eax, DWORD PTR -324[rbp]
	cmp	eax, DWORD PTR -340[rbp]
	jl	.L18
.L16:
	mov	rax, QWORD PTR iobuf[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -332[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.string	"usage: cp src target\n       cp src1 ... srcN directory\n"
	.text
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC4:
	.string	"/"
	.text
	.type	copy, @function
copy:
.LFB8:
	.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, 224
	mov	QWORD PTR -4296[rbp], rdi
	mov	QWORD PTR -4304[rbp], rsi
	mov	DWORD PTR -4308[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -4308[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -4296[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -4264[rbp], rax
	cmp	QWORD PTR -4264[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -4264[rbp]
	add	rax, 1
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -4296[rbp]
.L24:
	mov	QWORD PTR -4264[rbp], rax
	mov	rcx, QWORD PTR -4304[rbp]
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	mov	rax, QWORD PTR -4304[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L25
	lea	rax, -4112[rbp]
	mov	edx, 4096
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strlcat@PLT
.L25:
	mov	rcx, QWORD PTR -4264[rbp]
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcat@PLT
	lea	rax, -4112[rbp]
	mov	QWORD PTR -4304[rbp], rax
.L22:
	mov	rax, QWORD PTR -4296[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4280[rbp], eax
	cmp	DWORD PTR -4280[rbp], -1
	jne	.L26
	mov	rax, QWORD PTR -4296[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, 1
	jmp	.L31
.L26:
	lea	rdx, -4256[rbp]
	mov	eax, DWORD PTR -4280[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	eax, DWORD PTR -4232[rbp]
	mov	DWORD PTR -4276[rbp], eax
	mov	edx, DWORD PTR -4276[rbp]
	mov	rax, QWORD PTR -4304[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	creat@PLT
	mov	DWORD PTR -4272[rbp], eax
	cmp	DWORD PTR -4272[rbp], -1
	jne	.L29
	mov	rax, QWORD PTR -4304[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, DWORD PTR -4280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L31
.L30:
	mov	eax, DWORD PTR -4268[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR iobuf[rip]
	mov	eax, DWORD PTR -4272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -4268[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L29
	mov	rax, QWORD PTR -4304[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, DWORD PTR -4280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4272[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L31
.L29:
	mov	rcx, QWORD PTR iobuf[rip]
	mov	eax, DWORD PTR -4280[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4268[rbp], eax
	cmp	DWORD PTR -4268[rbp], 0
	jg	.L30
	mov	eax, DWORD PTR -4280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4272[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	copy, .-copy
	.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	"232303.c"
	.text
	.local	iobuf
	.comm	iobuf,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"overwrite %s? \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	str	r0, [fp, #-216]
	str	r1, [fp, #-220]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-200]
	b	.L2
.L3:
	bl	usage
.L2:
	ldr	r2, .L20+4
	ldr	r1, [fp, #-220]
	ldr	r0, [fp, #-216]
	bl	getopt
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L20+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-216]
	sub	r3, r2, r3
	str	r3, [fp, #-216]
	ldr	r3, .L20+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-220]
	add	r3, r2, r3
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-216]
	cmp	r3, #1
	bgt	.L4
	bl	usage
.L4:
	mov	r0, #8192
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L20+12
	str	r2, [r3]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	mov	r1, #0
	mov	r0, #1
	bl	err
.L5:
	ldr	r3, [fp, #-216]
	sub	r3, r3, #1
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-216]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-220]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-196]
	sub	r3, fp, #188
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	stat
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L6
	ldr	r2, [fp, #-196]
	ldr	r1, .L20+16
	mov	r0, #1
	bl	err
.L6:
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	beq	.L7
	ldr	r3, [fp, #-172]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L8
.L7:
	ldr	r3, [fp, #-216]
	cmp	r3, #1
	ble	.L9
	bl	usage
.L9:
	ldr	r3, [fp, #-220]
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r3, [fp, #-220]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+16
	bl	warn
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L11
	bl	usage
.L11:
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	beq	.L12
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L20+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-196]
	ldr	r1, .L20+24
	mov	r0, r3
	bl	fprintf
	bl	getchar
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	str	r3, [fp, #-192]
	b	.L13
.L15:
	bl	getchar
	str	r0, [fp, #-208]
.L13:
	ldr	r3, [fp, #-208]
	cmp	r3, #10
	beq	.L14
	ldr	r3, [fp, #-208]
	cmn	r3, #1
	bne	.L15
.L14:
	ldr	r3, [fp, #-192]
	cmp	r3, #121
	beq	.L12
	mov	r0, #0
	bl	exit
.L12:
	ldr	r3, [fp, #-220]
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-196]
	mov	r0, r3
	bl	copy
	str	r0, [fp, #-212]
	b	.L16
.L8:
	mov	r3, #0
	str	r3, [fp, #-212]
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L17
.L18:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-220]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-196]
	mov	r0, r3
	bl	copy
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L17:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-216]
	cmp	r2, r3
	blt	.L18
.L16:
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-212]
	bl	exit
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	.LC0
	.word	optind
	.word	iobuf
	.word	.LC1
	.word	stderr
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"usage: cp src target\012       cp src1 ... srcN dir"
	.ascii	"ectory\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L23
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L23+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L24:
	.align	2
.L23:
	.word	stderr
	.word	.LC4
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC5:
	.ascii	"/\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy, %function
copy:
	@ args = 0, pretend = 0, frame = 4232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4224
	sub	sp, sp, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-124]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-128]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-132]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #47
	ldr	r0, [r3, #-124]
	bl	strrchr
	str	r0, [r4, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	add	r3, r3, #1
	b	.L28
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
.L28:
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	ldr	r1, [r1, #-128]
	mov	r0, r3
	bl	strlcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L37+4
	ldr	r0, [r3, #-128]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	ldr	r1, .L37+4
	mov	r0, r3
	bl	strlcat
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	ldr	r1, [r1, #-116]
	mov	r0, r3
	bl	strlcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-128]
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-124]
	bl	open
	str	r0, [r4, #-112]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	cmn	r3, #1
	bne	.L30
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-124]
	ldr	r0, .L37+8
	bl	warn
	mov	r3, #1
	b	.L35
.L30:
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #32
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-112]
	bl	fstat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	str	r3, [r2, #-108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-108]
	ldr	r0, [r3, #-128]
	bl	creat
	str	r0, [r4, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmn	r3, #1
	bne	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-128]
	ldr	r0, .L37+8
	bl	warn
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-112]
	bl	close
	mov	r3, #1
	b	.L35
.L34:
	ldr	r3, .L37+12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-100]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-104]
	bl	write
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, r2
	beq	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-128]
	ldr	r0, .L37+8
	bl	warn
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-112]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	close
	mov	r3, #1
	b	.L35
.L33:
	ldr	r3, .L37+12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, [r0, #-112]
	bl	read
	str	r0, [r4, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	bgt	.L34
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-112]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	close
	mov	r3, #0
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC6
	.word	.LC5
	.word	.LC1
	.word	iobuf
	.size	copy, .-copy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
