	.file	"859033.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"--help"
	.align 8
.LC1:
	.string	"Usage : %s sourceFILE destinationFILE\n"
.LC2:
	.string	"open src"
.LC3:
	.string	"fstat"
.LC4:
	.string	"File size = %ld\n"
.LC5:
	.string	"mmap src"
.LC6:
	.string	"open dst"
.LC7:
	.string	"ftruncate"
.LC8:
	.string	"file size = %ld\n"
.LC9:
	.string	"mmap dst"
.LC10:
	.string	"msync"
.LC11:
	.string	"Copy OK!"
	.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
	cmp	DWORD PTR -340[rbp], 3
	jne	.L2
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
.L2:
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L4:
	lea	rdx, -304[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -256[rbp]
	test	rax, rax
	jne	.L6
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -328[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 2
	mov	edx, 1
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], -1
	jne	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -328[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 1014
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], -1
	jne	.L8
	lea	rdi, .LC6[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L8:
	mov	rdx, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR -324[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC7[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L9:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -324[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -324[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -312[rbp], rax
	cmp	QWORD PTR -312[rbp], -1
	jne	.L11
	lea	rdi, .LC9[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -256[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -312[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	msync@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC10[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR -324[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"859033.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--help\000"
	.align	2
.LC1:
	.ascii	"Usage : %s sourceFILE destinationFILE\012\000"
	.align	2
.LC2:
	.ascii	"open src\000"
	.align	2
.LC3:
	.ascii	"fstat\000"
	.align	2
.LC4:
	.ascii	"File size = %ld\012\000"
	.align	2
.LC5:
	.ascii	"mmap src\000"
	.align	2
.LC6:
	.ascii	"open dst\000"
	.align	2
.LC7:
	.ascii	"ftruncate\000"
	.align	2
.LC8:
	.ascii	"file size = %ld\012\000"
	.align	2
.LC9:
	.ascii	"mmap dst\000"
	.align	2
.LC10:
	.ascii	"msync\000"
	.align	2
.LC11:
	.ascii	"Copy OK!\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	str	r0, [fp, #-208]
	str	r1, [fp, #-212]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-208]
	cmp	r3, #3
	bne	.L2
	ldr	r3, [fp, #-212]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-212]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L14+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-212]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-204]
	ldr	r3, [fp, #-204]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L14+16
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L4:
	sub	r3, fp, #188
	mov	r1, r3
	ldr	r0, [fp, #-204]
	bl	fstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L14+20
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L5:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bne	.L6
	mov	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-144]
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
	ldr	r3, [fp, #-144]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-204]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #1
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L14+28
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L7:
	ldr	r0, [fp, #-204]
	bl	close
	ldr	r3, [fp, #-212]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L14+32
	mov	r0, r3
	bl	open
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L14+36
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L8:
	ldr	r3, [fp, #-144]
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	ftruncate
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L14+40
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L9:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	fstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L14+20
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L10:
	ldr	r3, [fp, #-144]
	mov	r1, r3
	ldr	r0, .L14+44
	bl	printf
	ldr	r3, [fp, #-144]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-196]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L14+48
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L11:
	ldr	r3, [fp, #-144]
	mov	r2, r3
	ldr	r1, [fp, #-200]
	ldr	r0, [fp, #-192]
	bl	memcpy
	ldr	r3, [fp, #-144]
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	msync
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L14+52
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L12:
	ldr	r0, [fp, #-196]
	bl	close
	ldr	r0, .L14+56
	bl	puts
	mov	r0, #0
	bl	exit
.L15:
	.align	2
.L14:
	.word	.LC12
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1014
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
