	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfa_refresh
_pfa_refresh:                           ## @pfa_refresh
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_started@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_this_tick@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pf_tick@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jle	LBB0_23
LBB0_2:
	movq	_pfa_table@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_pfa_table@GOTPCREL(%rip), %r14
	movq	_link@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	leaq	-64(%rbp), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, -64(%rbp)
	movl	$1, %eax
	movq	_dev@GOTPCREL(%rip), %r12
	movq	_DIOCRGETTABLES@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	leal	(,%rbx,8), %eax
	leal	(%rax,%rax,2), %esi
	movq	%r15, %rdi
	callq	_reallocf
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%ebx, -60(%rbp)
	movq	%r15, -48(%rbp)
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-60(%rbp), %eax
	cmpl	%eax, %ebx
	jl	LBB0_6
## %bb.13:
	movl	$1, %r14d
	testl	%ebx, %ebx
	jle	LBB0_22
## %bb.14:
	movq	_PFR_TFLAG_ACTIVE@GOTPCREL(%rip), %r13
	movq	%r15, %r12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	addl	%eax, %r14d
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$24, %r12
	decl	%ebx
	je	LBB0_22
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testl	%eax, 8(%r12)
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_pfa_table_addrs
	testl	%eax, %eax
	jns	LBB0_20
## %bb.17:
	movq	_pfa_table@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_10
## %bb.18:
	movq	_pfa_table@GOTPCREL(%rip), %r14
	movq	_link@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	je	LBB0_19
	jmp	LBB0_10
LBB0_7:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
	movl	$-1, %ebx
	jmp	LBB0_23
LBB0_9:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
LBB0_10:
	movq	%r15, %rdi
	callq	_free
	movl	$-1, %ebx
	jmp	LBB0_23
LBB0_22:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_time
	movq	_pfa_table_age@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pfa_table_count@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_this_tick@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pf_tick@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	callq	_free
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_started,8,3                    ## @started
	.comm	_this_tick,8,3                  ## @this_tick
	.comm	_pf_tick,8,3                    ## @pf_tick
	.comm	_pfa_table,4,2                  ## @pfa_table
	.comm	_link,4,2                       ## @link
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfa_refresh(): reallocf() %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCRGETTABLES,4,2             ## @DIOCRGETTABLES
L_.str.1:                               ## @.str.1
	.asciz	"pfa_refresh(): ioctl(): %s"

	.comm	_PFR_TFLAG_ACTIVE,4,2           ## @PFR_TFLAG_ACTIVE
	.comm	_pfa_table_age,4,2              ## @pfa_table_age
	.comm	_pfa_table_count,4,2            ## @pfa_table_count
	.no_dead_strip	_pfa_refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfa_refresh
_pfa_refresh:                           ; @pfa_refresh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, _started@GOTPAGE
Lloh1:
	ldr	x8, [x8, _started@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _this_tick@GOTPAGE
Lloh4:
	ldr	x8, [x8, _this_tick@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _pf_tick@GOTPAGE
Lloh7:
	ldr	x9, [x9, _pf_tick@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_22
LBB0_2:
Lloh9:
	adrp	x0, _pfa_table@GOTPAGE
Lloh10:
	ldr	x0, [x0, _pfa_table@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x19, _pfa_table@GOTPAGE
Lloh12:
	ldr	x19, [x19, _pfa_table@GOTPAGEOFF]
Lloh13:
	adrp	x21, _link@GOTPAGE
Lloh14:
	ldr	x21, [x21, _link@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TAILQ_FIRST
	mov	x20, x0
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_TAILQ_EMPTY
	cbz	w0, LBB0_4
LBB0_5:
	mov	w20, #24
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x19, #0
	str	w20, [sp, #8]
	mov	w8, #1
Lloh15:
	adrp	x20, _dev@GOTPAGE
Lloh16:
	ldr	x20, [x20, _dev@GOTPAGEOFF]
Lloh17:
	adrp	x21, _DIOCRGETTABLES@GOTPAGE
Lloh18:
	ldr	x21, [x21, _DIOCRGETTABLES@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #3
	mov	x0, x19
	bl	_reallocf
	cbz	x0, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w22, [sp, #12]
	str	x19, [sp, #24]
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x2, sp, #8
	bl	_ioctl
	cbnz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
	cmp	w22, w8
	b.lt	LBB0_6
; %bb.9:
	mov	w20, #1
	cmp	w22, #1
	b.lt	LBB0_21
; %bb.10:
Lloh19:
	adrp	x23, _PFR_TFLAG_ACTIVE@GOTPAGE
Lloh20:
	ldr	x23, [x23, _PFR_TFLAG_ACTIVE@GOTPAGEOFF]
	mov	x21, x19
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w20, w0, w20
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #24
	subs	w22, w22, #1
	b.eq	LBB0_21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_pfa_table_addrs
	tbz	w0, #31, LBB0_11
; %bb.15:
Lloh21:
	adrp	x0, _pfa_table@GOTPAGE
Lloh22:
	ldr	x0, [x0, _pfa_table@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_20
; %bb.16:
Lloh23:
	adrp	x20, _pfa_table@GOTPAGE
Lloh24:
	ldr	x20, [x20, _pfa_table@GOTPAGEOFF]
Lloh25:
	adrp	x22, _link@GOTPAGE
Lloh26:
	ldr	x22, [x22, _link@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x21, x0
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_TAILQ_REMOVE
	mov	x0, x21
	bl	_free
	mov	x0, x20
	bl	_TAILQ_EMPTY
	cbz	w0, LBB0_17
	b	LBB0_20
LBB0_18:
Lloh27:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_syslog
	mov	w0, #-1
	b	LBB0_23
LBB0_19:
Lloh35:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_syslog
LBB0_20:
	mov	x0, x19
	bl	_free
	mov	w0, #-1
	b	LBB0_23
LBB0_21:
	mov	x0, #0
	bl	_time
Lloh43:
	adrp	x8, _pfa_table_age@GOTPAGE
Lloh44:
	ldr	x8, [x8, _pfa_table_age@GOTPAGEOFF]
Lloh45:
	str	w0, [x8]
Lloh46:
	adrp	x8, _pfa_table_count@GOTPAGE
Lloh47:
	ldr	x8, [x8, _pfa_table_count@GOTPAGEOFF]
Lloh48:
	str	w20, [x8]
Lloh49:
	adrp	x8, _this_tick@GOTPAGE
Lloh50:
	ldr	x8, [x8, _this_tick@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
Lloh52:
	adrp	x9, _pf_tick@GOTPAGE
Lloh53:
	ldr	x9, [x9, _pf_tick@GOTPAGEOFF]
Lloh54:
	str	x8, [x9]
	mov	x0, x19
	bl	_free
LBB0_22:
	mov	w0, #0
LBB0_23:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_started,8,3                    ; @started
	.comm	_this_tick,8,3                  ; @this_tick
	.comm	_pf_tick,8,3                    ; @pf_tick
	.comm	_pfa_table,4,2                  ; @pfa_table
	.comm	_link,4,2                       ; @link
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfa_refresh(): reallocf() %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCRGETTABLES,4,2             ; @DIOCRGETTABLES
l_.str.1:                               ; @.str.1
	.asciz	"pfa_refresh(): ioctl(): %s"

	.comm	_PFR_TFLAG_ACTIVE,4,2           ; @PFR_TFLAG_ACTIVE
	.comm	_pfa_table_age,4,2              ; @pfa_table_age
	.comm	_pfa_table_count,4,2            ; @pfa_table_count
	.no_dead_strip	_pfa_refresh
.subsections_via_symbols
