	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfr_get_astats                 ## -- Begin function pfr_get_astats
	.p2align	4, 0x90
_pfr_get_astats:                        ## @pfr_get_astats
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_time_second@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_PF_RULES_RASSERT
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ACCEPT_FLAGS
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pfr_validate_table
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_pfr_lookup_table
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r12
	movq	_PFR_TFLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.4:
	movl	4(%r12), %eax
	cmpl	(%r15), %eax
	jle	LBB0_9
LBB0_5:
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_ESRCH@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_bzero
	movq	_PFRW_GET_ASTATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r13, -56(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -64(%rbp)
	movl	(%r12), %eax
	movl	%eax, -60(%rbp)
	movq	16(%r12), %rax
	leaq	8(%rax), %rdi
	movq	_pfr_walktree@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:
	movq	8(%r12), %rax
	leaq	8(%rax), %rdi
	movl	(%r13), %esi
	leaq	-64(%rbp), %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.11:
	movq	_PFR_FLAG_CLSTATS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	leaq	-80(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pfr_enqueue_addrs
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_pfr_clstats_kentries
LBB0_13:
	movl	-64(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	movl	4(%r12), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_time_second,8,3                ## @time_second
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PFR_TFLAG_ACTIVE,4,2           ## @PFR_TFLAG_ACTIVE
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_PFRW_GET_ASTATS,4,2            ## @PFRW_GET_ASTATS
	.comm	_pfr_walktree,4,2               ## @pfr_walktree
	.comm	_PFR_FLAG_CLSTATS,4,2           ## @PFR_FLAG_CLSTATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfr_get_astats: corruption detected (%d).\n"

	.comm	_ENOTTY,4,2                     ## @ENOTTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfr_get_astats                 ; -- Begin function pfr_get_astats
	.p2align	2
_pfr_get_astats:                        ; @pfr_get_astats
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _time_second@GOTPAGE
Lloh1:
	ldr	x8, [x8, _time_second@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	bl	_PF_RULES_RASSERT
	mov	x0, x21
	mov	w1, #0
	bl	_ACCEPT_FLAGS
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_pfr_validate_table
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x0, x22
	bl	_pfr_lookup_table
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _PFR_TFLAG_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PFR_TFLAG_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x22, #4]
	ldr	w9, [x19]
	cmp	w8, w9
	b.le	LBB0_10
; %bb.5:
	mov	w0, #0
LBB0_6:
	str	w8, [x19]
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _ESRCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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
LBB0_10:
	add	x0, sp, #8
	mov	w1, #24
	bl	_bzero
Lloh10:
	adrp	x8, _PFRW_GET_ASTATS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PFRW_GET_ASTATS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x23, [sp, #16]
	ldr	d0, [x22]
	rev64.2s	v0, v0
	str	d0, [sp, #8]
	ldr	x0, [x22, #16]
	ldr	x8, [x0], #8
Lloh13:
	adrp	x23, _pfr_walktree@GOTPAGE
Lloh14:
	ldr	x23, [x23, _pfr_walktree@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	blr	x8
	cbnz	w0, LBB0_9
; %bb.11:
	ldr	x0, [x22, #8]
	ldr	x8, [x0], #8
	ldr	w1, [x23]
	add	x2, sp, #8
	blr	x8
	cbnz	w0, LBB0_9
; %bb.12:
Lloh15:
	adrp	x8, _PFR_FLAG_CLSTATS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PFR_FLAG_CLSTATS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	mov	x1, sp
	mov	x0, x22
	mov	x2, #0
	mov	w3, #0
	bl	_pfr_enqueue_addrs
	mov	x0, sp
	mov	x1, x20
	mov	w2, #0
	bl	_pfr_clstats_kentries
LBB0_14:
	ldr	w1, [sp, #8]
	cbz	w1, LBB0_16
; %bb.15:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh20:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_8
LBB0_16:
	mov	w0, #0
	ldr	w8, [x22, #4]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_time_second,8,3                ; @time_second
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PFR_TFLAG_ACTIVE,4,2           ; @PFR_TFLAG_ACTIVE
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_PFRW_GET_ASTATS,4,2            ; @PFRW_GET_ASTATS
	.comm	_pfr_walktree,4,2               ; @pfr_walktree
	.comm	_PFR_FLAG_CLSTATS,4,2           ; @PFR_FLAG_CLSTATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfr_get_astats: corruption detected (%d).\n"

	.comm	_ENOTTY,4,2                     ; @ENOTTY
.subsections_via_symbols
