	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$3, %edi
	jne	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	callq	_convert_path
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	callq	_convert_path
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_2
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movl	$1, %edi
	callq	_exit
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_2:
	movq	%rax, %r15
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	movq	%r15, %rdi
	jmp	LBB0_4
LBB0_5:
	movq	%rax, %r14
	movq	_TRANSFER_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_malloc
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fread
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_fwrite
	cmpl	%eax, %ebx
	je	LBB0_6
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_fclose
	movq	%r14, %rdi
LBB0_4:
	callq	_fclose
	movl	$1, %edi
	callq	_exit
LBB0_9:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many arguments\n"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot open input file"

L_.str.3:                               ## @.str.3
	.asciz	"wb"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot open output file"

	.comm	_TRANSFER_SIZE,4,2              ## @TRANSFER_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"Failed to write to output file\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w0, #3
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #8]
	bl	_convert_path
	mov	x21, x0
	ldr	x0, [x19, #16]
	bl	_convert_path
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbnz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
LBB0_3:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_4:
	mov	x19, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbnz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	mov	x0, x19
	b	LBB0_10
LBB0_6:
	mov	x20, x0
Lloh13:
	adrp	x23, _TRANSFER_SIZE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TRANSFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_malloc
	mov	x21, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_feof
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x23]
	mov	x0, x21
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	mov	x22, x0
	mov	x0, x21
	mov	w1, #1
	mov	x2, x22
	mov	x3, x20
	bl	_fwrite
	cmp	w22, w0
	b.eq	LBB0_7
; %bb.9:
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	mov	x0, x21
	bl	_free
	mov	x0, x19
	bl	_fclose
	mov	x0, x20
LBB0_10:
	bl	_fclose
	mov	w0, #1
	bl	_exit
LBB0_11:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many arguments\n"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot open input file"

l_.str.3:                               ; @.str.3
	.asciz	"wb"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot open output file"

	.comm	_TRANSFER_SIZE,4,2              ; @TRANSFER_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"Failed to write to output file\n"

.subsections_via_symbols
