	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pft_refresh
_pft_refresh:                           ## @pft_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	%r15d, %r15d
	cmpq	(%rcx), %rax
	jle	LBB0_20
LBB0_2:
	movq	_pft_table@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_pft_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	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_bzero
	movl	$8, -56(%rbp)
	movl	$1, %eax
	xorl	%r14d, %r14d
	movq	_dev@GOTPCREL(%rip), %r12
	movq	_DIOCRGETTSTATS@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r13d
	leal	(,%r13,8), %esi
	movq	%r14, %rdi
	callq	_reallocf
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, -52(%rbp)
	movq	%r14, -48(%rbp)
	movl	(%r12), %edi
	movl	(%rbx), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-52(%rbp), %eax
	cmpl	%eax, %r13d
	jl	LBB0_6
## %bb.12:
	testl	%r13d, %r13d
	jle	LBB0_19
## %bb.13:
	movl	%r13d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %rbx
	incq	%r15
	movl	%r15d, (%rax)
	movq	%rax, %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pft_table@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	addq	$8, %r12
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_14
LBB0_19:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_time
	movq	_pft_table_age@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pft_table_count@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movq	_this_tick@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pf_tick@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_20
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	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_10
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
	xorl	%eax, %eax
	callq	_syslog
LBB0_10:
	movq	%r14, %rdi
	callq	_free
	movl	$-1, %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_pft_table@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	movq	_link@GOTPCREL(%rip), %r12
	jne	LBB0_10
## %bb.16:
	movq	_pft_table@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	je	LBB0_17
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_started,8,3                    ## @started
	.comm	_this_tick,8,3                  ## @this_tick
	.comm	_pf_tick,8,3                    ## @pf_tick
	.comm	_pft_table,4,2                  ## @pft_table
	.comm	_link,4,2                       ## @link
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pft_refresh(): reallocf() numtbls=%d: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCRGETTSTATS,4,2             ## @DIOCRGETTSTATS
L_.str.1:                               ## @.str.1
	.asciz	"pft_refresh(): ioctl(): %s"

	.comm	_pft_table_age,4,2              ## @pft_table_age
	.comm	_pft_table_count,4,2            ## @pft_table_count
	.no_dead_strip	_pft_refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pft_refresh
_pft_refresh:                           ; @pft_refresh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
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_14
LBB0_2:
Lloh9:
	adrp	x0, _pft_table@GOTPAGE
Lloh10:
	ldr	x0, [x0, _pft_table@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x19, _pft_table@GOTPAGE
Lloh12:
	ldr	x19, [x19, _pft_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:
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
	mov	x19, #0
	mov	w8, #8
	str	w8, [sp, #16]
	mov	w8, #1
Lloh15:
	adrp	x21, _dev@GOTPAGE
Lloh16:
	ldr	x21, [x21, _dev@GOTPAGEOFF]
Lloh17:
	adrp	x22, _DIOCRGETTSTATS@GOTPAGE
Lloh18:
	ldr	x22, [x22, _DIOCRGETTSTATS@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	lsl	w1, w8, #3
	mov	x0, x19
	bl	_reallocf
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w20, [sp, #20]
	str	x19, [sp, #24]
	ldr	w0, [x21]
	ldr	w1, [x22]
	add	x2, sp, #16
	bl	_ioctl
	cbnz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #20]
	cmp	w20, w8
	b.lt	LBB0_6
; %bb.9:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x25, #0
Lloh19:
	adrp	x24, _link@GOTPAGE
Lloh20:
	ldr	x24, [x24, _link@GOTPAGEOFF]
Lloh21:
	adrp	x21, _pft_table@GOTPAGE
Lloh22:
	ldr	x21, [x21, _pft_table@GOTPAGEOFF]
	mov	x22, x19
	mov	w26, w20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
	add	x25, x25, #1
	str	w25, [x0], #4
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x23
	bl	_TAILQ_INSERT_TAIL
	add	x22, x22, #8
	cmp	x26, x25
	b.ne	LBB0_11
LBB0_13:
	mov	x0, #0
	bl	_time
Lloh23:
	adrp	x8, _pft_table_age@GOTPAGE
Lloh24:
	ldr	x8, [x8, _pft_table_age@GOTPAGEOFF]
Lloh25:
	str	w0, [x8]
Lloh26:
	adrp	x8, _pft_table_count@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pft_table_count@GOTPAGEOFF]
Lloh28:
	str	w20, [x8]
Lloh29:
	adrp	x8, _this_tick@GOTPAGE
Lloh30:
	ldr	x8, [x8, _this_tick@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _pf_tick@GOTPAGE
Lloh33:
	ldr	x9, [x9, _pf_tick@GOTPAGEOFF]
Lloh34:
	str	x8, [x9]
	mov	x0, x19
	bl	_free
LBB0_14:
	mov	w0, #0
	b	LBB0_19
LBB0_15:
Lloh35:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	b	LBB0_17
LBB0_16:
Lloh43:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh45:
	ldr	w20, [x8]
Lloh46:
	adrp	x8, _errno@GOTPAGE
Lloh47:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
LBB0_17:
	bl	_syslog
LBB0_18:
	mov	x0, x19
	bl	_free
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
Lloh51:
	adrp	x0, _pft_table@GOTPAGE
Lloh52:
	ldr	x0, [x0, _pft_table@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_18
; %bb.21:
Lloh53:
	adrp	x20, _pft_table@GOTPAGE
Lloh54:
	ldr	x20, [x20, _pft_table@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x21, x0
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x21
	bl	_TAILQ_REMOVE
	mov	x0, x21
	bl	_free
	mov	x0, x20
	bl	_TAILQ_EMPTY
	cbz	w0, LBB0_22
	b	LBB0_18
	.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	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_started,8,3                    ; @started
	.comm	_this_tick,8,3                  ; @this_tick
	.comm	_pf_tick,8,3                    ; @pf_tick
	.comm	_pft_table,4,2                  ; @pft_table
	.comm	_link,4,2                       ; @link
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pft_refresh(): reallocf() numtbls=%d: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCRGETTSTATS,4,2             ; @DIOCRGETTSTATS
l_.str.1:                               ; @.str.1
	.asciz	"pft_refresh(): ioctl(): %s"

	.comm	_pft_table_age,4,2              ; @pft_table_age
	.comm	_pft_table_count,4,2            ; @pft_table_count
	.no_dead_strip	_pft_refresh
.subsections_via_symbols
