	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pf_state_expires               ## -- Begin function pf_state_expires
	.p2align	4, 0x90
_pf_state_expires:                      ## @pf_state_expires
	.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	(%rdi), %rax
	movq	_PFTM_PURGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_1:
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_16
LBB0_2:
	movq	%rdi, %r14
	movq	_PFTM_UNLINKED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%r14), %rax
	movq	_PFTM_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setb	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	(%r14), %rdx
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movq	_V_pf_default_rule@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi,%rdx,8), %rbx
LBB0_4:
	movq	_PFTM_ADAPTIVE_START@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	cmpq	_V_pf_default_rule@GOTPCREL(%rip), %rax
	je	LBB0_7
## %bb.6:
	movq	_PFTM_ADAPTIVE_END@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %r15
	movl	8(%rax), %edi
	callq	_counter_u64_fetch
	testq	%r15, %r15
	jne	LBB0_9
	jmp	LBB0_15
LBB0_7:
	movq	_V_pf_default_rule@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %r12
	movq	_PFTM_ADAPTIVE_END@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r15, %r15
	je	LBB0_15
LBB0_9:
	cmpq	%r12, %rax
	jle	LBB0_15
## %bb.10:
	movq	%r15, %rcx
	subq	%r12, %rcx
	jle	LBB0_15
## %bb.11:
	subq	%rax, %r15
	jle	LBB0_1
## %bb.12:
	imulq	%rbx, %r15
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%r15, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_15
LBB0_13:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_15:
	addq	8(%r14), %rbx
LBB0_16:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFTM_PURGE,8,3                 ## @PFTM_PURGE
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_PFTM_UNLINKED,8,3              ## @PFTM_UNLINKED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pf_state_expires: timeout == PFTM_UNLINKED"

	.comm	_PFTM_MAX,8,3                   ## @PFTM_MAX
L_.str.1:                               ## @.str.1
	.asciz	"pf_state_expires: timeout > PFTM_MAX"

	.comm	_V_pf_default_rule,16,3         ## @V_pf_default_rule
	.comm	_PFTM_ADAPTIVE_START,8,3        ## @PFTM_ADAPTIVE_START
	.comm	_PFTM_ADAPTIVE_END,8,3          ## @PFTM_ADAPTIVE_END
	.comm	_V_pf_status,8,3                ## @V_pf_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pf_state_expires               ; -- Begin function pf_state_expires
	.p2align	2
_pf_state_expires:                      ; @pf_state_expires
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PFTM_PURGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PFTM_PURGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, _PFTM_UNLINKED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PFTM_UNLINKED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PFTM_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PFTM_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lo
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	ldr	x11, [x19]
	ldr	x20, [x9, x11, lsl #3]
Lloh13:
	adrp	x10, _V_pf_default_rule@GOTPAGE
Lloh14:
	ldr	x10, [x10, _V_pf_default_rule@GOTPAGEOFF]
	cbnz	x20, LBB0_3
; %bb.2:
	ldr	x12, [x10]
	ldr	x20, [x12, x11, lsl #3]
LBB0_3:
Lloh15:
	adrp	x11, _PFTM_ADAPTIVE_START@GOTPAGE
Lloh16:
	ldr	x11, [x11, _PFTM_ADAPTIVE_START@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	ldr	x21, [x9, x11, lsl #3]
	cmp	x21, #0
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x10]
	ldr	x21, [x8, x11, lsl #3]
Lloh18:
	adrp	x9, _PFTM_ADAPTIVE_END@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PFTM_ADAPTIVE_END@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x22, [x8, x9, lsl #3]
Lloh21:
	adrp	x8, _V_pf_status@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V_pf_status@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x10, _PFTM_ADAPTIVE_END@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PFTM_ADAPTIVE_END@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	ldr	x22, [x9, x10, lsl #3]
	ldr	w0, [x8, #8]
	bl	_counter_u64_fetch
LBB0_6:
	cmp	x22, #0
	ccmp	x0, x21, #4, ne
	ccmp	x22, x21, #4, gt
	b.gt	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	b	LBB0_11
LBB0_8:
	subs	x8, x22, x0
	b.le	LBB0_10
; %bb.9:
	mul	x8, x8, x20
	sub	x9, x22, x21
	sdiv	x8, x8, x9
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	b	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _time_uptime@GOTPAGE
Lloh28:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PFTM_PURGE,8,3                 ; @PFTM_PURGE
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_PFTM_UNLINKED,8,3              ; @PFTM_UNLINKED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pf_state_expires: timeout == PFTM_UNLINKED"

	.comm	_PFTM_MAX,8,3                   ; @PFTM_MAX
l_.str.1:                               ; @.str.1
	.asciz	"pf_state_expires: timeout > PFTM_MAX"

	.comm	_V_pf_default_rule,16,3         ; @V_pf_default_rule
	.comm	_PFTM_ADAPTIVE_START,8,3        ; @PFTM_ADAPTIVE_START
	.comm	_PFTM_ADAPTIVE_END,8,3          ; @PFTM_ADAPTIVE_END
	.comm	_V_pf_status,8,3                ; @V_pf_status
.subsections_via_symbols
