	.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
	subq	$24, %rsp
	.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, %r13d
	leaq	L_.str(%rip), %r15
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$104, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$108, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-8(%rbx,%rax,8), %r14
	jmp	LBB0_2
LBB0_9:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%r13d, %eax
	jge	LBB0_24
## %bb.10:
	leaq	(%rbx,%rax,8), %rbx
	subl	%eax, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_mac_get_file
	testl	%eax, %eax
	jne	LBB0_11
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp), %edi
	leaq	-56(%rbp), %rsi
	callq	_mac_to_text
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx,%r15,8), %rsi
	movq	-56(%rbp), %rdx
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp), %edi
	callq	_mac_free
	incq	%r15
	cmpl	%r15d, %r13d
	je	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	-44(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rsi
	callq	_mac_prepare
	testl	%eax, %eax
	je	LBB0_17
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_mac_prepare_file_label
	testl	%eax, %eax
	jne	LBB0_23
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx,%r15,8), %rdi
	movl	-44(%rbp), %esi
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_mac_get_link
	testl	%eax, %eax
	je	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx,%r15,8), %rdi
	jmp	LBB0_12
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	L_.str.2(%rip), %rdi
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_perror
	jmp	LBB0_13
LBB0_23:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movl	$-1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_EX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hl:"

	.comm	_optind,4,2                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"mac_prepare"

L_.str.2:                               ## @.str.2
	.asciz	"mac_to_text"

L_.str.3:                               ## @.str.3
	.asciz	"%s: %s\n"

	.comm	_EX_OK,4,2                      ## @EX_OK
.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	mov	x19, #0
	mov	w23, #0
Lloh0:
	adrp	x24, _optind@GOTPAGE
Lloh1:
	ldr	x24, [x24, _optind@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_getopt
	cmp	w0, #104
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #108
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x19, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x24]
	add	x8, x21, x8, lsl #3
	ldur	x19, [x8, #-8]
	b	LBB0_2
LBB0_9:
	ldrsw	x8, [x24]
	cmp	w8, w20
	b.ge	LBB0_24
; %bb.10:
	add	x22, x21, x8, lsl #3
	sub	w24, w20, w8
Lloh4:
	adrp	x20, l_.str.3@PAGE
Lloh5:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_mac_get_file
	cbnz	w0, LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [sp, #4]
	add	x1, sp, #8
	bl	_mac_to_text
	cbnz	w0, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x1, [x22]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_printf
	ldr	x0, [sp, #8]
	bl	_free
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [sp, #4]
	bl	_mac_free
	add	x22, x22, #8
	subs	w24, w24, #1
	b.eq	LBB0_24
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	cbz	x19, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x1, x19
	bl	_mac_prepare
	cbz	w0, LBB0_18
	b	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_mac_prepare_file_label
	cbnz	w0, LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x22]
	ldr	w1, [sp, #4]
	cbz	w23, LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_mac_get_link
	cbz	w0, LBB0_12
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x22]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_perror
	b	LBB0_14
LBB0_23:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_24:
Lloh10:
	adrp	x8, _EX_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_OK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hl:"

	.comm	_optind,4,2                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"mac_prepare"

l_.str.2:                               ; @.str.2
	.asciz	"mac_to_text"

l_.str.3:                               ; @.str.3
	.asciz	"%s: %s\n"

	.comm	_EX_OK,4,2                      ; @EX_OK
.subsections_via_symbols
