	.file	"669246.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s <file_name> OR %s <source_files> <dest_file>\n"
	.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -548[rbp], 2
	je	.L2
	cmp	DWORD PTR -548[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -560[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -544[rbp], eax
	cmp	DWORD PTR -544[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L3:
	mov	DWORD PTR -548[rbp], 3
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L4
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -540[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -536[rbp]
	movsx	rdx, eax
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	jle	.L6
	mov	eax, DWORD PTR -532[rbp]
	cmp	eax, DWORD PTR -536[rbp]
	je	.L5
.L6:
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -544[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 4
	call	exit@PLT
.L5:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -544[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -536[rbp], eax
	cmp	DWORD PTR -536[rbp], 0
	jg	.L7
	mov	eax, DWORD PTR -544[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -548[rbp], 3
	jne	.L8
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	call	close@PLT
.L8:
	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	"669246.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <file_name> OR %s <source_files> <dest_fi"
	.ascii	"le>\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-544]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-544]
	cmp	r3, #3
	beq	.L2
	ldr	r3, [fp, #-548]
	ldr	r1, [r3]
	ldr	r3, [fp, #-548]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L10+4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-536]
	ldr	r3, [fp, #-536]
	cmn	r3, #1
	bne	.L3
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #2
	bl	exit
.L3:
	mov	r3, #3
	str	r3, [fp, #-544]
	ldr	r3, [fp, #-548]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #420
	mov	r1, #193
	mov	r0, r3
	bl	open
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmn	r3, #1
	bne	.L4
	ldr	r3, [fp, #-548]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #3
	bl	exit
.L4:
	mov	r1, #1
	ldr	r0, [fp, #-532]
	bl	dup2
	b	.L5
.L7:
	ldr	r2, [fp, #-528]
	sub	r3, fp, #520
	mov	r1, r3
	mov	r0, #1
	bl	write
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	ble	.L6
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-528]
	cmp	r2, r3
	beq	.L5
.L6:
	ldr	r3, [fp, #-548]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	ldr	r0, [fp, #-536]
	bl	close
	ldr	r0, [fp, #-532]
	bl	close
	mov	r0, #4
	bl	exit
.L5:
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-536]
	bl	read
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bgt	.L7
	ldr	r0, [fp, #-536]
	bl	close
	ldr	r3, [fp, #-544]
	cmp	r3, #3
	bne	.L8
	ldr	r0, [fp, #-532]
	bl	close
.L8:
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
