	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfl_walk_rulesets
_pfl_walk_rulesets:                     ## @pfl_walk_rulesets
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r15, %rdi
	callq	_pfl_scan_ruleset
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_bzero
	movq	-80(%rbp), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DIOCGETRULESETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %r15
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_syslog
LBB0_4:
	movl	$-1, %ecx
LBB0_5:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.6:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-72(%rbp), %r13
	testq	%r13, %r13
	jle	LBB0_15
## %bb.8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_strlcat
	movq	%r12, %rdi
	callq	_pfl_walk_rulesets
	testl	%eax, %eax
	jne	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, -72(%rbp)
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DIOCGETRULESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rdi
	movq	_PF_RESERVED_ANCHOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	cmpb	$0, (%r15)
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_strlcat
	jmp	LBB0_9
LBB0_15:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_16:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_3
LBB0_17:
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_18:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCGETRULESETS,4,2            ## @DIOCGETRULESETS
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfl_walk_rulesets: ioctl(DIOCGETRULESETS): %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_DIOCGETRULESET,4,2             ## @DIOCGETRULESET
L_.str.1:                               ## @.str.1
	.asciz	"pfl_walk_rulesets: ioctl(DIOCGETRULESET): %s"

	.comm	_PF_RESERVED_ANCHOR,4,2         ## @PF_RESERVED_ANCHOR
L_.str.2:                               ## @.str.2
	.asciz	"/"

	.no_dead_strip	_pfl_walk_rulesets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfl_walk_rulesets
_pfl_walk_rulesets:                     ; @pfl_walk_rulesets
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	bl	_pfl_scan_ruleset
	cbnz	x0, LBB0_4
; %bb.1:
	sub	x0, x29, #112
	mov	w1, #24
	bl	_bzero
	ldur	x0, [x29, #-112]
	mov	x1, x19
	mov	w2, #8
	bl	_strlcpy
Lloh8:
	adrp	x25, _dev@GOTPAGE
Lloh9:
	ldr	x25, [x25, _dev@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh10:
	adrp	x8, _DIOCGETRULESETS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DIOCGETRULESETS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	sub	x2, x29, #112
	bl	_ioctl
	cbz	x0, LBB0_7
; %bb.2:
Lloh13:
	adrp	x22, l_.str@PAGE
Lloh14:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:
Lloh15:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_syslog
LBB0_4:
	mov	w0, #-1
LBB0_5:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.6:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldur	x26, [x29, #-104]
	cmp	x26, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x27, #0
Lloh24:
	adrp	x28, _DIOCGETRULESET@GOTPAGE
Lloh25:
	ldr	x28, [x28, _DIOCGETRULESET@GOTPAGEOFF]
Lloh26:
	adrp	x22, l_.str.1@PAGE
Lloh27:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh28:
	adrp	x23, _PF_RESERVED_ANCHOR@GOTPAGE
Lloh29:
	ldr	x23, [x23, _PF_RESERVED_ANCHOR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldur	x1, [x29, #-96]
	mov	x0, x21
	mov	x2, x20
	bl	_strlcat
	mov	x0, x21
	bl	_pfl_walk_rulesets
	cbnz	w0, LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x27, #1
	cmp	x26, x27
	b.eq	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stur	x27, [x29, #-104]
	ldr	w0, [x25]
	ldr	w1, [x28]
	sub	x2, x29, #112
	bl	_ioctl
	cbnz	x0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	x0, [x29, #-96]
	ldr	w1, [x23]
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_strlcpy
	ldrb	w8, [x19]
	cbz	w8, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_strlcat
	b	LBB0_9
LBB0_15:
	mov	w0, #0
	b	LBB0_5
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCGETRULESETS,4,2            ; @DIOCGETRULESETS
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfl_walk_rulesets: ioctl(DIOCGETRULESETS): %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_DIOCGETRULESET,4,2             ; @DIOCGETRULESET
l_.str.1:                               ; @.str.1
	.asciz	"pfl_walk_rulesets: ioctl(DIOCGETRULESET): %s"

	.comm	_PF_RESERVED_ANCHOR,4,2         ; @PF_RESERVED_ANCHOR
l_.str.2:                               ; @.str.2
	.asciz	"/"

	.no_dead_strip	_pfl_walk_rulesets
.subsections_via_symbols
