	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pf_commit_rules
_pf_commit_rules:                       ## @pf_commit_rules
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_PF_RULES_WASSERT
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.1:
	movq	_PF_RULESET_MAX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	callq	_pf_find_ruleset
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r14
	movq	(%rax), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,8), %r12
	cmpq	$0, 16(%rax,%r12,8)
	je	LBB0_10
## %bb.4:
	cmpq	%r15, (%rax,%r12,8)
	jne	LBB0_10
## %bb.5:
	cmpq	_pf_main_ruleset@GOTPCREL(%rip), %r14
	je	LBB0_16
LBB0_6:
	movq	56(%rax,%r12,8), %rbx
	movq	40(%rax,%r12,8), %r8
	movq	64(%rax,%r12,8), %rdx
	movq	32(%rax,%r12,8), %rdi
	movq	%rdi, 56(%rax,%r12,8)
	movq	8(%rax,%r12,8), %rsi
	movq	24(%rax,%r12,8), %rcx
	movq	%rcx, 64(%rax,%r12,8)
	movq	%rsi, 40(%rax,%r12,8)
	movq	%rbx, 32(%rax,%r12,8)
	movq	%rdx, 24(%rax,%r12,8)
	movq	%r8, 8(%rax,%r12,8)
	movq	%r15, 48(%rax,%r12,8)
	callq	_pf_calc_skip_steps
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pf_unlink_rule
	jmp	LBB0_7
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r14), %rax
	movq	24(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	(%r14), %rax
LBB0_15:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax,%r12,8)
	movq	$0, 24(%rax,%r12,8)
	movq	%r14, %rdi
	callq	_pf_remove_if_empty_ruleset
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_16:
	movq	_pf_main_ruleset@GOTPCREL(%rip), %rdi
	callq	_pf_setup_pfsync_matching
	testl	%eax, %eax
	jne	LBB0_12
## %bb.17:
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %r15
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_RULESET_MAX,4,2             ## @PF_RULESET_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_pf_main_ruleset,8,3            ## @pf_main_ruleset
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.no_dead_strip	_pf_commit_rules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pf_commit_rules
_pf_commit_rules:                       ; @pf_commit_rules
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_PF_RULES_WASSERT
	tbnz	w21, #31, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _PF_RULESET_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_RULESET_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_12
; %bb.2:
	mov	x0, x19
	bl	_pf_find_ruleset
	cbz	x0, LBB0_13
; %bb.3:
	mov	x19, x0
	ldr	x8, [x0]
	mov	w9, #72
	umaddl	x9, w21, w9, x8
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_13
; %bb.4:
	mov	w22, w21
	mov	w9, #72
	mul	x9, x22, x9
	ldr	x9, [x8, x9]
	cmp	x9, x20
	b.ne	LBB0_13
; %bb.5:
Lloh3:
	adrp	x9, _pf_main_ruleset@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pf_main_ruleset@GOTPAGEOFF]
	cmp	x19, x9
	b.eq	LBB0_16
LBB0_6:
	mov	w9, #72
	madd	x8, x22, x9, x8
	ldp	x0, x9, [x8, #32]
	ldp	x21, x10, [x8, #56]
	ldr	x11, [x8, #24]
	stp	x0, x11, [x8, #56]
	ldr	x11, [x8, #8]
	stp	x10, x21, [x8, #24]
	str	x9, [x8, #8]
	stp	x11, x20, [x8, #40]
	bl	_pf_calc_skip_steps
	mov	x0, x21
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_9
; %bb.7:
	mov	x1, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_pf_unlink_rule
	mov	x0, x21
	bl	_TAILQ_FIRST
	mov	x1, x0
	cbnz	x0, LBB0_8
LBB0_9:
	ldr	x8, [x19]
	mov	w9, #72
	madd	x9, x22, x9, x8
	ldr	x0, [x9, #24]
	cbz	x0, LBB0_11
; %bb.10:
Lloh5:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_free
	ldr	x8, [x19]
LBB0_11:
	mov	w9, #72
	madd	x8, x22, x9, x8
	stp	xzr, xzr, [x8, #8]
	str	xzr, [x8, #24]
	mov	x0, x19
	bl	_pf_remove_if_empty_ruleset
	mov	w0, #0
	b	LBB0_15
LBB0_12:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh12:
	adrp	x0, _pf_main_ruleset@GOTPAGE
Lloh13:
	ldr	x0, [x0, _pf_main_ruleset@GOTPAGEOFF]
	bl	_pf_setup_pfsync_matching
	cbnz	w0, LBB0_15
; %bb.17:
	ldr	x8, [x19]
	mov	w9, #72
	mul	x9, x22, x9
	ldr	x20, [x8, x9]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_RULESET_MAX,4,2             ; @PF_RULESET_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_pf_main_ruleset,8,3            ; @pf_main_ruleset
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.no_dead_strip	_pf_commit_rules
.subsections_via_symbols
