	.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
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	L_.str(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$109, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %r15
	jmp	LBB0_1
LBB0_5:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	subl	%r12d, %r14d
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.7:
	testq	%r15, %r15
	jne	LBB0_9
LBB0_8:
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_9:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	movq	_mpfd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_err
LBB0_11:
	leaq	(%rbx,%r12,8), %r15
	movq	_ctbl_main@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%rbx), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_13
LBB0_15:
	movq	(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_usage
	testq	%r15, %r15
	je	LBB0_8
	jmp	LBB0_9
LBB0_16:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	*(%rbx)
	movl	%eax, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
	.comm	__PATH_DEV,8,3                  ## @_PATH_DEV
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_mpfd,4,2                       ## @mpfd
L_.str.1:                               ## @.str.1
	.asciz	"open: %s"

	.comm	_ctbl_main,8,3                  ## @ctbl_main
L_.str.2:                               ## @.str.2
	.asciz	"unknown command: %s"

.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
	mov	x20, x1
	mov	x19, x0
	mov	x22, #0
Lloh0:
	adrp	x23, _optarg@GOTPAGE
Lloh1:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #109
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x23]
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x8, _optind@GOTPAGE
Lloh5:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh6:
	ldr	x21, [x8]
	sub	w19, w19, w21
	cmp	w19, #0
	b.gt	LBB0_7
; %bb.6:
	bl	_usage
LBB0_7:
	add	x20, x20, x21, lsl #3
Lloh7:
	adrp	x8, __PATH_DEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, __PATH_DEV@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x22, #0
	csel	x21, x8, x22, eq
Lloh10:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_open
Lloh13:
	adrp	x8, _mpfd@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mpfd@GOTPAGEOFF]
Lloh15:
	str	w0, [x8]
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_9:
Lloh18:
	adrp	x8, _ctbl_main@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ctbl_main@GOTPAGEOFF]
Lloh20:
	ldr	x21, [x8]
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x21, #24]
	add	x21, x21, #16
	cbnz	x0, LBB0_10
LBB0_12:
	ldr	x2, [x20]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
	.comm	__PATH_DEV,8,3                  ; @_PATH_DEV
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_mpfd,4,2                       ; @mpfd
l_.str.1:                               ; @.str.1
	.asciz	"open: %s"

	.comm	_ctbl_main,8,3                  ; @ctbl_main
l_.str.2:                               ; @.str.2
	.asciz	"unknown command: %s"

.subsections_via_symbols
