	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pf_anchor_setup                ## -- Begin function pf_anchor_setup
	.p2align	4, 0x90
_pf_anchor_setup:                       ## @pf_anchor_setup
	.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
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	xorl	%r14d, %r14d
	cmpb	$0, (%rdx)
	je	LBB0_25
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rs_malloc
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_25
## %bb.2:
	movq	%rax, %r12
	cmpb	$47, (%rbx)
	jne	LBB0_4
## %bb.3:
	incq	%rbx
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strlcpy
	jmp	LBB0_18
LBB0_4:
	movl	$1, (%r15)
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%rax), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_8
## %bb.6:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_strlcpy
	cmpb	$46, (%rbx)
	je	LBB0_9
	jmp	LBB0_14
LBB0_8:
	movb	$0, (%r12)
	cmpb	$46, (%rbx)
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$46, 1(%rbx)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$47, 2(%rbx)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$0, (%r12)
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	cmoveq	%r12, %rax
	movb	$0, (%rax)
	incl	(%r15)
	leaq	3(%rbx), %r13
	cmpb	$46, 3(%rbx)
	movq	%r13, %rbx
	je	LBB0_9
	jmp	LBB0_15
LBB0_14:
	movq	%rbx, %r13
LBB0_15:
	cmpb	$0, (%r12)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rbx
	je	LBB0_17
## %bb.16:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strlcat
LBB0_17:
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strlcat
LBB0_18:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movl	$1, 4(%r15)
	movb	$0, (%rbx)
LBB0_21:
	movq	%r12, %rdi
	callq	_pf_find_or_create_ruleset
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rs_free
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.22:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rax, 8(%r15)
	incl	8(%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_24:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_25:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movq	%r12, %rdi
	callq	_rs_free
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"/"

L_.str.2:                               ## @.str.2
	.asciz	"/*"

L_str:                                  ## @str
	.asciz	"pf_anchor_setup: ruleset"

L_str.4:                                ## @str.4
	.asciz	"pf_anchor_setup: .. beyond root"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pf_anchor_setup                ; -- Begin function pf_anchor_setup
	.p2align	2
_pf_anchor_setup:                       ; @pf_anchor_setup
	.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
	stp	xzr, xzr, [x0]
	ldrb	w8, [x2]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_rs_malloc
	cbz	x0, LBB0_24
; %bb.2:
	mov	x20, x0
	ldrb	w8, [x21]
	cmp	w8, #47
	b.ne	LBB0_5
; %bb.3:
	add	x1, x21, #1
	ldr	w2, [x23]
	mov	x0, x20
	bl	_strlcpy
	b	LBB0_17
LBB0_4:
	mov	w0, #0
	b	LBB0_25
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x1, [x8]
	ldrb	w8, [x1]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w2, [x23]
	mov	x0, x20
	bl	_strlcpy
	b	LBB0_9
LBB0_8:
	strb	wzr, [x20]
LBB0_9:
	ldrb	w8, [x21]
	cmp	w8, #46
	b.ne	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21, #1]
	cmp	w8, #46
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x21, #2]
	cmp	w8, #47
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csel	x8, x20, x0, eq
	strb	wzr, [x8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldrb	w8, [x21, #3]!
	cmp	w8, #46
	b.eq	LBB0_10
LBB0_14:
	ldrb	w8, [x20]
	cbz	w8, LBB0_16
; %bb.15:
	ldr	w2, [x23]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strlcat
LBB0_16:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_strlcat
LBB0_17:
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_20
; %bb.18:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_20
; %bb.19:
	mov	w8, #1
	str	w8, [x19, #4]
	strb	wzr, [x21]
LBB0_20:
	mov	x0, x20
	bl	_pf_find_or_create_ruleset
	mov	x21, x0
	mov	x0, x20
	bl	_rs_free
	cbz	x21, LBB0_23
; %bb.21:
	ldr	x8, [x21]
	cbz	x8, LBB0_23
; %bb.22:
	mov	w0, #0
	str	x8, [x19, #8]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_25
LBB0_23:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_24:
	mov	w0, #1
LBB0_25:
	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_26:
Lloh8:
	adrp	x0, l_str.4@PAGE
Lloh9:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
	mov	x0, x20
	bl	_rs_free
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"/"

l_.str.2:                               ; @.str.2
	.asciz	"/*"

l_str:                                  ; @str
	.asciz	"pf_anchor_setup: ruleset"

l_str.4:                                ; @str.4
	.asciz	"pf_anchor_setup: .. beyond root"

.subsections_via_symbols
