	.file	"1081849.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"stock.file"
.LC1:
	.string	"stock2.file"
.LC2:
	.string	"Write error!"
	.text
	.globl	UFileCopy
	.type	UFileCopy, @function
UFileCopy:
.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, 320
	mov	QWORD PTR -312[rbp], rdi
	mov	DWORD PTR -316[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -316[rbp], 1
	jne	.L2
	lea	rax, .LC0[rip]
	jmp	.L3
.L2:
	lea	rax, .LC1[rip]
.L3:
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -296[rbp], eax
	cmp	DWORD PTR -296[rbp], -1
	je	.L11
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, 438
	mov	esi, 65
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], -1
	je	.L12
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR -288[rbp]
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cdqe
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	cmp	rax, QWORD PTR -288[rbp]
	je	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L1
.L7:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -296[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	cdqe
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jg	.L8
	mov	eax, DWORD PTR -296[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -292[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L1
.L11:
	nop
	jmp	.L1
.L12:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	UFileCopy, .-UFileCopy
	.section	.rodata
.LC3:
	.string	"UFileCopyEmpty.file"
.LC4:
	.string	"-- Small File --\nU Time: %lf\n"
.LC5:
	.string	"UFileCopy.file"
.LC6:
	.string	"-- Large File --\nU Time: %lf\n"
.LC7:
	.string	"Press any key to continue..."
	.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	UFileCopy
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	mov	rsi, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	mov	rcx, rax
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -56[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	esi, 0
	lea	rdi, .LC5[rip]
	call	UFileCopy
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	mov	rsi, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	mov	rcx, rax
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -56[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"1081849.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"stock.file\000"
	.align	2
.LC1:
	.ascii	"stock2.file\000"
	.align	2
.LC2:
	.ascii	"Write error!\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	UFileCopy
	.syntax unified
	.arm
	.fpu softvfp
	.type	UFileCopy, %function
UFileCopy:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-292]
	cmp	r3, #1
	bne	.L2
	ldr	r3, .L13+4
	b	.L3
.L2:
	ldr	r3, .L13+8
.L3:
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmn	r3, #1
	beq	.L11
	ldr	r2, .L13+12
	mov	r1, #65
	ldr	r0, [fp, #-288]
	bl	open
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	beq	.L12
	b	.L7
.L8:
	ldr	r2, [fp, #-272]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	write
	str	r0, [fp, #-268]
	ldr	r2, [fp, #-268]
	ldr	r3, [fp, #-272]
	cmp	r2, r3
	beq	.L7
	ldr	r0, .L13+16
	bl	puts
	b	.L1
.L7:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-280]
	bl	read
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bgt	.L8
	ldr	r0, [fp, #-280]
	bl	close
	ldr	r0, [fp, #-276]
	bl	close
	b	.L1
.L11:
	nop
	b	.L1
.L12:
	nop
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	438
	.word	.LC2
	.size	UFileCopy, .-UFileCopy
	.section	.rodata
	.align	2
.LC4:
	.ascii	"UFileCopyEmpty.file\000"
	.global	__aeabi_i2d
	.align	2
.LC5:
	.ascii	"-- Small File --\012U Time: %lf\012\000"
	.align	2
.LC6:
	.ascii	"UFileCopy.file\000"
	.align	2
.LC7:
	.ascii	"-- Large File --\012U Time: %lf\012\000"
	.align	2
.LC8:
	.ascii	"Press any key to continue...\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r1, #1
	ldr	r0, .L18+4
	bl	UFileCopy
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r2, r2, r3
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-20]
	sub	r3, r1, r3
	ldr	r1, .L18+8
	smull	r0, r1, r3, r1
	asr	r1, r1, #18
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L18+12
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r1, #0
	ldr	r0, .L18+16
	bl	UFileCopy
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r2, r2, r3
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-20]
	sub	r3, r1, r3
	ldr	r1, .L18+8
	smull	r0, r1, r3, r1
	asr	r1, r1, #18
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L18+20
	bl	printf
	ldr	r0, .L18+24
	bl	printf
	bl	getchar
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC4
	.word	1125899907
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
