	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -28(%rbp)
	movq	%rsi, -40(%rbp)
	leaq	-28(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_parseopts
	cmpl	$0, -28(%rbp)
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_usage
LBB0_2:
	movq	_output_file@GOTPCREL(%rip), %rbx
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	(%rbx), %rdi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r15d
	cmpl	$0, -28(%rbp)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	xorl	%edx, %edx
	testq	%rbx, %rbx
	sete	%dl
	movl	%r15d, %edi
	callq	_appendfile
	incq	%rbx
	movslq	-28(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_signature@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_strlen
	leaq	1(%rax), %rdx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_write
	movl	%r15d, %edi
	callq	_close
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong number of arguments"

	.comm	_output_file,8,3                ## @output_file
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Error opening '%s' for writing: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_signature,4,2                  ## @signature
.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:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	w0, [sp, #12]
	str	x1, [sp]
	add	x0, sp, #12
	mov	x1, sp
	bl	_parseopts
	ldr	w8, [sp, #12]
	cmp	w8, #0
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_usage
LBB0_2:
Lloh2:
	adrp	x20, _output_file@GOTPAGE
Lloh3:
	ldr	x20, [x20, _output_file@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh4:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #420
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	mov	x19, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldr	x1, [x8, x20, lsl #3]
	cmp	x20, #0
	cset	w2, eq
	mov	x0, x19
	bl	_appendfile
	add	x20, x20, #1
	ldrsw	x8, [sp, #12]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
Lloh13:
	adrp	x8, _signature@GOTPAGE
Lloh14:
	ldr	x8, [x8, _signature@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_write
	mov	x0, x19
	bl	_close
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	ldr	x20, [x20]
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong number of arguments"

	.comm	_output_file,8,3                ; @output_file
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Error opening '%s' for writing: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_signature,4,2                  ; @signature
.subsections_via_symbols
