	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hook
_hook:                                  ## @hook
	.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, %r14
	movl	%edi, %ebx
	movq	(%rsi), %rax
	cmpb	$117, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_PFIL_UNLINK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	leaq	L_.str(%rip), %r12
	movq	_PFIL_OUT@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_help
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$104, %eax
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$97, %eax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PFIL_APPEND@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$105, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$111, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	orq	(%r13), %r15
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_PFIL_IN@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	jmp	LBB0_4
LBB0_13:
	movq	%r15, -48(%rbp)
	movq	%r15, %rdi
	callq	_PFIL_DIR
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_help
LBB0_15:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	subl	%r15d, %ebx
	cmpl	$2, %ebx
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_help
LBB0_17:
	movq	(%r14,%r15,8), %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_help
LBB0_19:
	movb	$0, (%rbx)
	incq	%rbx
	movl	-56(%rbp), %edi
	movq	8(%r14,%r15,8), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	-60(%rbp), %edi
	movq	(%r14,%r15,8), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	-64(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PFILIOC_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFIL_UNLINK,8,3                ## @PFIL_UNLINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioa"

	.comm	_PFIL_IN,8,3                    ## @PFIL_IN
	.comm	_PFIL_OUT,8,3                   ## @PFIL_OUT
	.comm	_PFIL_APPEND,8,3                ## @PFIL_APPEND
	.comm	_optind,8,3                     ## @optind
	.comm	_dev,4,2                        ## @dev
	.comm	_PFILIOC_LINK,4,2               ## @PFILIOC_LINK
L_.str.1:                               ## @.str.1
	.asciz	"ioctl(PFILIOC_LINK)"

	.no_dead_strip	_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hook
_hook:                                  ; @hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PFIL_UNLINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PFIL_UNLINK@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #117
	csel	x21, x9, xzr, eq
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x23, _PFIL_APPEND@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PFIL_APPEND@GOTPAGEOFF]
Lloh7:
	adrp	x24, _PFIL_IN@GOTPAGE
Lloh8:
	ldr	x24, [x24, _PFIL_IN@GOTPAGEOFF]
Lloh9:
	adrp	x25, _PFIL_OUT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _PFIL_OUT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_help
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_getopt
	cmp	w0, #104
	b.gt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #97
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x23
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #105
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #111
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x25
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x24
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8]
	orr	x21, x21, x8
	b	LBB0_2
LBB0_11:
	str	x21, [sp, #24]
	mov	x0, x21
	bl	_PFIL_DIR
	cbnz	w0, LBB0_13
; %bb.12:
	bl	_help
LBB0_13:
Lloh11:
	adrp	x8, _optind@GOTPAGE
Lloh12:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sub	w9, w20, w8
	add	x20, x19, x8, lsl #3
	cmp	w9, #2
	b.eq	LBB0_15
; %bb.14:
	bl	_help
LBB0_15:
	ldr	x0, [x20]
	mov	w1, #58
	bl	_strchr
	mov	x19, x0
	cbnz	x0, LBB0_17
; %bb.16:
	bl	_help
LBB0_17:
	strb	wzr, [x19], #1
	ldr	w0, [sp, #16]
	ldr	x1, [x20, #8]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [sp, #12]
	ldr	x1, [x20]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [sp, #8]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh14:
	adrp	x8, _dev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _PFILIOC_LINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PFILIOC_LINK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_19
; %bb.18:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PFIL_UNLINK,8,3                ; @PFIL_UNLINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioa"

	.comm	_PFIL_IN,8,3                    ; @PFIL_IN
	.comm	_PFIL_OUT,8,3                   ; @PFIL_OUT
	.comm	_PFIL_APPEND,8,3                ; @PFIL_APPEND
	.comm	_optind,8,3                     ; @optind
	.comm	_dev,4,2                        ; @dev
	.comm	_PFILIOC_LINK,4,2               ; @PFILIOC_LINK
l_.str.1:                               ; @.str.1
	.asciz	"ioctl(PFILIOC_LINK)"

	.no_dead_strip	_hook
.subsections_via_symbols
