	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	8(%r14), %rsi
	leaq	-20(%rbp), %rdi
	callq	_mac_from_text
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movl	-20(%rbp), %edi
	callq	_mac_set_proc
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movl	-20(%rbp), %edi
	callq	_mac_free
	cmpl	$3, %ebx
	jl	LBB0_9
## %bb.8:
	leaq	16(%r14), %rsi
	movq	16(%r14), %rdi
	callq	_execvp
	movq	16(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_11:
	leaq	L_.str.3(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_execlp
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_err
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	movq	8(%r14), %rdi
LBB0_4:
	callq	_perror
	movl	$-1, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac_from_text"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

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

	.comm	__PATH_BSHELL,8,3               ## @_PATH_BSHELL
L_.str.3:                               ## @.str.3
	.asciz	"-i"

.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
	mov	x19, x1
	mov	x20, x0
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	ldr	x1, [x19, #8]
	add	x0, sp, #12
	bl	_mac_from_text
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_mac_set_proc
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_mac_free
	cmp	w20, #3
	b.lt	LBB0_6
; %bb.5:
	ldr	x0, [x19, #16]!
	mov	x1, x19
	bl	_execvp
	ldr	x2, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
Lloh4:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh5:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x19, x8, x0, eq
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x19
	mov	x3, #0
	bl	_execlp
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
LBB0_7:
	bl	_err
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19, #8]
LBB0_11:
	bl	_perror
	mov	w0, #-1
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac_from_text"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

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

	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
l_.str.3:                               ; @.str.3
	.asciz	"-i"

.subsections_via_symbols
