	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfl_scan_ruleset
_pfl_scan_ruleset:                      ## @pfl_scan_ruleset
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_bzero
	movl	-48(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_PF_PASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_dev@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_DIOCGETRULES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %r14
LBB0_2:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_syslog
LBB0_3:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_4:
	movq	-88(%rbp), %r14
	testq	%r14, %r14
	jle	LBB0_14
## %bb.5:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	28(%r13), %edi
	movq	-80(%rbp), %rsi
	movl	$4, %edx
	callq	_strlcat
	movl	-56(%rbp), %eax
	movl	%eax, 24(%r13)
	movq	-64(%rbp), %rax
	movq	_IN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	16(%r13), %rsi
	movl	%edx, (%rsi,%rcx,4)
	movq	_OUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rsi,%rdx,4)
	movq	-72(%rbp), %rax
	movl	(%rax,%rcx,4), %esi
	movq	8(%r13), %rdi
	movl	%esi, (%rdi,%rcx,4)
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rdi,%rdx,4)
	movq	_pfl_table_count@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	incq	%rax
	movq	%rax, (%rcx)
	movq	%rax, (%r13)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pfl_table@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	callq	_TAILQ_INSERT_TAIL
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, -88(%rbp)
	movl	(%r12), %edi
	movq	_DIOCGETRULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movl	28(%rax), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	28(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	jmp	LBB0_12
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_PASS,4,2                    ## @PF_PASS
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCGETRULES,4,2               ## @DIOCGETRULES
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfl_scan_ruleset: ioctl(DIOCGETRULES): %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_DIOCGETRULE,4,2                ## @DIOCGETRULE
L_.str.1:                               ## @.str.1
	.asciz	"pfl_scan_ruleset: ioctl(DIOCGETRULE): %s"

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

	.comm	_IN,8,3                         ## @IN
	.comm	_OUT,8,3                        ## @OUT
	.comm	_pfl_table_count,8,3            ## @pfl_table_count
	.comm	_pfl_table,4,2                  ## @pfl_table
	.comm	_link,4,2                       ## @link
	.no_dead_strip	_pfl_scan_ruleset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfl_scan_ruleset
_pfl_scan_ruleset:                      ; @pfl_scan_ruleset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	mov	x0, sp
	mov	w1, #48
	bl	_bzero
	ldr	w0, [sp, #40]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x8, _PF_PASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_PASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #36]
Lloh3:
	adrp	x24, _dev@GOTPAGE
Lloh4:
	ldr	x24, [x24, _dev@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x8, _DIOCGETRULES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIOCGETRULES@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cbz	x0, LBB0_4
; %bb.1:
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:
Lloh10:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_syslog
LBB0_3:
	mov	w0, #-1
	b	LBB0_14
LBB0_4:
	ldr	x25, [sp]
	cmp	x25, #1
	b.lt	LBB0_13
; %bb.5:
	mov	x26, #0
Lloh16:
	adrp	x27, _DIOCGETRULE@GOTPAGE
Lloh17:
	ldr	x27, [x27, _DIOCGETRULE@GOTPAGEOFF]
Lloh18:
	adrp	x20, l_.str.1@PAGE
Lloh19:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh20:
	adrp	x28, _pfl_table_count@GOTPAGE
Lloh21:
	ldr	x28, [x28, _pfl_table_count@GOTPAGEOFF]
Lloh22:
	adrp	x21, _link@GOTPAGE
Lloh23:
	ldr	x21, [x21, _link@GOTPAGEOFF]
Lloh24:
	adrp	x22, _pfl_table@GOTPAGE
Lloh25:
	ldr	x22, [x22, _pfl_table@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23, #28]
	ldr	x1, [sp, #8]
	mov	w2, #4
	bl	_strlcat
	ldr	w8, [sp, #32]
	str	w8, [x23, #24]
	ldr	x8, [sp, #24]
Lloh26:
	adrp	x9, _IN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IN@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	ldr	x11, [x23, #16]
	str	w10, [x11, x9]
Lloh29:
	adrp	x10, _OUT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _OUT@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w8, [x8, x10]
	str	w8, [x11, x10]
	ldr	x8, [sp, #16]
	ldr	w11, [x8, x9]
	ldr	x12, [x23, #8]
	str	w11, [x12, x9]
	ldr	w8, [x8, x10]
	str	w8, [x12, x10]
	ldr	x8, [x28]
	add	x8, x8, #1
	str	x8, [x28]
	str	x8, [x23]
	ldr	w2, [x21]
	mov	x0, x22
	mov	x1, x23
	bl	_TAILQ_INSERT_TAIL
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	cmp	x25, x26
	b.eq	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	x26, [sp]
	ldr	w0, [x24]
	ldr	w1, [x27]
	mov	x2, sp
	bl	_ioctl
	cbnz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x0
	ldr	w0, [x0, #28]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
	ldrb	w8, [x19]
	cbz	w8, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23, #28]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	b	LBB0_6
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_PASS,4,2                    ; @PF_PASS
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCGETRULES,4,2               ; @DIOCGETRULES
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfl_scan_ruleset: ioctl(DIOCGETRULES): %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_DIOCGETRULE,4,2                ; @DIOCGETRULE
l_.str.1:                               ; @.str.1
	.asciz	"pfl_scan_ruleset: ioctl(DIOCGETRULE): %s"

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

	.comm	_IN,8,3                         ; @IN
	.comm	_OUT,8,3                        ; @OUT
	.comm	_pfl_table_count,8,3            ; @pfl_table_count
	.comm	_pfl_table,4,2                  ; @pfl_table
	.comm	_link,4,2                       ; @link
	.no_dead_strip	_pfl_scan_ruleset
.subsections_via_symbols
