	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_load_ruleset             ## -- Begin function pfctl_load_ruleset
	.p2align	4, 0x90
_pfctl_load_ruleset:                    ## @pfctl_load_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_strlen
	movq	8(%r15), %rcx
	movq	%rcx, 16(%r13)
	cltq
	leaq	(%rbx,%rax), %rdi
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	subq	%rax, %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpb	$0, (%rbx)
	movq	(%rcx), %rcx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_snprintf
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movslq	%r14d, %r14
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %edi
	callq	_TAILQ_FIRST
	movl	(%r13), %ecx
	movq	_PF_OPT_VERBOSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testq	%rax, %rax
	movq	%r15, %r12
	je	LBB0_7
## %bb.2:
	testl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	movl	(%r13), %ecx
LBB0_4:
	movq	_PF_OPT_NOACTION@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
LBB0_14:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_6:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %r12
	jmp	LBB0_15
LBB0_7:
	movb	$1, %al
	testl	%ecx, %edx
	je	LBB0_11
## %bb.8:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_12
LBB0_9:
	movq	8(%r12), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_pfctl_ruleset_trans
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_30
LBB0_11:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	cmpq	$0, 8(%r13)
	je	LBB0_18
## %bb.16:
	movq	_PF_RULESET_FILTER@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_pfctl_optimize_ruleset
LBB0_18:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	(%rax,%r14,4), %edi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_26
## %bb.19:
	movq	%rax, %r15
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	callq	_pfctl_load_ruleset
	testl	%eax, %eax
	jne	LBB0_29
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r15, %rdi
	callq	_free
	movq	%r13, %r12
	movq	(%r13), %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	(%rax,%r14,4), %edi
	callq	_TAILQ_FIRST
	movq	%rax, %r15
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r13
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movq	_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_TAILQ_REMOVE
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_pfctl_load_rule
	testl	%eax, %eax
	jne	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_PF_OPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_21
LBB0_26:
	xorl	%r12d, %r12d
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_30
## %bb.27:
	movq	_PF_OPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %esi
	je	LBB0_30
## %bb.28:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	decl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_INDENT
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_30
LBB0_29:
	movl	%eax, %r12d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_30:
	movb	$0, (%r15)
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rcx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,8,3                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_PF_OPT_VERBOSE,4,2             ## @PF_OPT_VERBOSE
	.comm	_PF_OPT_NOACTION,4,2            ## @PF_OPT_NOACTION
L_.str.3:                               ## @.str.3
	.asciz	"pfctl_load_rulesets: pfctl_ruleset_trans %d\n"

	.comm	_PF_RULESET_FILTER,4,2          ## @PF_RULESET_FILTER
	.comm	_entries,4,2                    ## @entries
L_str:                                  ## @str
	.asciz	"}"

L_str.6:                                ## @str.6
	.asciz	" {"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_load_ruleset             ; -- Begin function pfctl_load_ruleset
	.p2align	2
_pfctl_load_ruleset:                    ; @pfctl_load_ruleset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x23, #8]
	str	x8, [x21, #16]
	ldrb	w9, [x24]
	sxtw	x10, w0
	add	x19, x24, x10
Lloh0:
	adrp	x11, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	sub	x1, x11, x10
	ldr	x3, [x8]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w9, #0
	csel	x2, x10, x8, eq
	mov	x0, x19
	bl	_snprintf
Lloh7:
	adrp	x25, _PF_OPT_VERBOSE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _PF_OPT_VERBOSE@GOTPAGEOFF]
	cbz	w20, LBB0_8
; %bb.1:
	ldr	x8, [x23]
	ldr	w0, [x8, w22, sxtw #2]
	bl	_TAILQ_FIRST
	ldr	w8, [x21]
	ldr	w9, [x25]
	and	w9, w9, w8
	cbz	x0, LBB0_6
; %bb.2:
	cbz	w9, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_str.6@PAGE
Lloh10:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	ldr	w8, [x21]
LBB0_4:
Lloh11:
	adrp	x9, _PF_OPT_NOACTION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PF_OPT_NOACTION@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
LBB0_5:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_9
LBB0_6:
	cbz	w9, LBB0_8
; %bb.7:
	mov	w0, #10
	bl	_putchar
LBB0_8:
	mov	w8, #1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_9:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.10:
Lloh14:
	adrp	x8, _PF_RULESET_FILTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PF_RULESET_FILTER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x23
	bl	_pfctl_optimize_ruleset
LBB0_12:
	ldr	x8, [x23]
	ldr	w0, [x8, w22, sxtw #2]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_20
; %bb.13:
	mov	x26, x0
	sxtw	x28, w22
	add	w25, w20, #1
Lloh17:
	adrp	x19, _entries@GOTPAGE
Lloh18:
	ldr	x19, [x19, _entries@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x3, x22
	mov	x4, x25
	bl	_pfctl_load_ruleset
	cbnz	w0, LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x26
	bl	_free
	ldr	x8, [x23]
	ldr	w0, [x8, x28, lsl #2]
	bl	_TAILQ_FIRST
	mov	x26, x0
	cbz	x0, LBB0_20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x28, lsl #2]
	ldr	w2, [x19]
	mov	x1, x26
	bl	_TAILQ_REMOVE
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	mov	x3, x20
	bl	_pfctl_load_rule
	cbnz	w0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x2, [x26]
	cbnz	x2, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _PF_OPT_VERBOSE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PF_OPT_VERBOSE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w0, #10
	bl	_putchar
	b	LBB0_15
LBB0_20:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_23
; %bb.21:
	mov	w27, #0
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_28
LBB0_22:
	mov	x27, x0
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_28
LBB0_23:
	ldr	w8, [x21]
Lloh22:
	adrp	x9, _PF_OPT_VERBOSE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PF_OPT_VERBOSE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	ands	w1, w9, w8
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	b.eq	LBB0_25
; %bb.24:
	sub	w0, w20, #1
	bl	_INDENT
Lloh25:
	adrp	x0, l_str@PAGE
Lloh26:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_25:
	mov	w27, #0
	b	LBB0_28
LBB0_26:
	ldr	x2, [x23, #8]
	mov	x0, x21
	mov	x1, x24
	bl	_pfctl_ruleset_trans
	cbz	w0, LBB0_5
; %bb.27:
	mov	x27, x0
	str	x27, [sp]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_28:
	strb	wzr, [x19]
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,8,3                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_PF_OPT_VERBOSE,4,2             ; @PF_OPT_VERBOSE
	.comm	_PF_OPT_NOACTION,4,2            ; @PF_OPT_NOACTION
l_.str.3:                               ; @.str.3
	.asciz	"pfctl_load_rulesets: pfctl_ruleset_trans %d\n"

	.comm	_PF_RULESET_FILTER,4,2          ; @PF_RULESET_FILTER
	.comm	_entries,4,2                    ; @entries
l_str:                                  ; @str
	.asciz	"}"

l_str.6:                                ; @str.6
	.asciz	" {"

.subsections_via_symbols
