	.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, %r12d
	leaq	L_.str(%rip), %r13
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rbx,%rax,8), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$108, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$112, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rbx,%rax,8), %rdi
	callq	_atoi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	jmp	LBB0_1
LBB0_11:
	movq	_optind@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_usage
LBB0_13:
	leaq	-44(%rbp), %rdi
	testq	%r15, %r15
	jne	LBB0_14
## %bb.15:
	callq	_mac_prepare_process_label
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movl	$-1, %eax
	jmp	LBB0_27
LBB0_14:
	movq	%r15, %rsi
	callq	_mac_prepare
	testl	%eax, %eax
	jne	LBB0_17
LBB0_18:
	movl	-44(%rbp), %esi
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.21:
	movl	%esi, %edi
	callq	_mac_get_proc
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_23
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mac_get_pid
	testl	%eax, %eax
	jne	LBB0_20
LBB0_24:
	movl	-44(%rbp), %edi
	leaq	-64(%rbp), %rsi
	callq	_mac_to_text
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	callq	_main.cold.1
	jmp	LBB0_26
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
LBB0_23:
	leaq	-44(%rbp), %rsi
	callq	_main.cold.2
LBB0_26:
	xorl	%eax, %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_30
## %bb.29:
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
LBB0_30:
	movl	-44(%rbp), %edi
	callq	_mac_free
	movq	-64(%rbp), %rdi
	callq	_free
	movq	_EX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.1
_main.cold.1:                           ## @main.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.2
_main.cold.2:                           ## @main.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_perror
	movl	(%rbx), %edi
	callq	_mac_free
	pushq	$-1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"l:p:"

	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"mac_prepare"

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

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

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

	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.5:                               ## @.str.5
	.asciz	"%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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	mov	x20, #0
	mov	x19, #0
	mov	w24, #0
Lloh0:
	adrp	x25, _optind@GOTPAGE
Lloh1:
	ldr	x25, [x25, _optind@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	add	x8, x22, x8, lsl #3
	ldur	x20, [x8, #-8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_getopt
	cmp	w0, #108
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #112
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x20, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	add	x8, x22, x8, lsl #3
	ldur	x0, [x8, #-8]
	bl	_atoi
	mov	x19, x0
	mov	w24, #1
	b	LBB0_2
LBB0_11:
	ldr	w8, [x25]
	cmp	w8, w21
	b.eq	LBB0_13
; %bb.12:
	bl	_usage
LBB0_13:
	add	x0, sp, #4
	cbnz	x20, LBB0_15
; %bb.14:
	bl	_mac_prepare_process_label
	b	LBB0_16
LBB0_15:
	mov	x1, x20
	bl	_mac_prepare
LBB0_16:
	cbz	w0, LBB0_18
; %bb.17:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #-1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	w1, [sp, #4]
	cbnz	w24, LBB0_21
; %bb.19:
	mov	x0, x1
	bl	_mac_get_proc
	cbz	w0, LBB0_22
; %bb.20:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #4
	bl	_main.cold.2
LBB0_21:
	mov	x0, x19
	bl	_mac_get_pid
	cbnz	w0, LBB0_26
LBB0_22:
	ldr	w0, [sp, #4]
	add	x1, sp, #8
	bl	_mac_to_text
	cbnz	w0, LBB0_27
; %bb.23:
	ldr	x19, [sp, #8]
	mov	x0, x19
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_25
; %bb.24:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_25:
	ldr	w0, [sp, #4]
	bl	_mac_free
	ldr	x0, [sp, #8]
	bl	_free
Lloh10:
	adrp	x8, _EX_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_OK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_exit
LBB0_26:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #4
	bl	_main.cold.2
LBB0_27:
	bl	_main.cold.1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.1
_main.cold.1:                           ; @main.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
Lloh17:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.2
_main.cold.2:                           ; @main.cold.2
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_perror
	ldr	w0, [x19]
	bl	_mac_free
	mov	w0, #-1
	bl	_exit
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"l:p:"

	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"mac_prepare"

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

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

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

	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.5:                               ; @.str.5
	.asciz	"%s\n"

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