	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfr_setflags_ktable
_pfr_setflags_ktable:                   ## @pfr_setflags_ktable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_PF_RULES_WASSERT
	movq	_PFR_TFLAG_REFERENCED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_PFR_TFLAG_REFDANCHOR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_PFR_TFLAG_PERSIST@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_PFR_TFLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
LBB0_4:
	movq	_PFR_TFLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	%r15d, %ecx
	movq	_PFR_TFLAG_USRMASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	negl	%ecx
	sbbl	%ebx, %ebx
	orl	%edx, %ebx
	andl	%r15d, %ebx
	movq	_PFR_TFLAG_SETMASK@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
## %bb.9:
	testl	%eax, %ebx
	jne	LBB0_12
## %bb.10:
	cmpq	$0, 16(%r14)
	je	LBB0_12
## %bb.11:
	leaq	-32(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pfr_enqueue_addrs
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pfr_remove_kentries
LBB0_12:
	movq	_PFR_TFLAG_INACTIVE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_15
## %bb.13:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movl	$1, %esi
	callq	_pfr_destroy_ktable
	movq	$0, 8(%r14)
LBB0_15:
	movl	%ebx, (%r14)
	jmp	LBB0_16
LBB0_5:
	movq	_pfr_ktablehead@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_V_pfr_ktables@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_RB_REMOVE
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	movq	32(%rdi), %rax
	movq	_PFR_REFCNT_ANCHOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decl	(%rax,%rcx,4)
	jne	LBB0_8
## %bb.7:
	movq	_PFR_TFLAG_REFDANCHOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%rdi), %esi
	callq	_pfr_setflags_ktable
LBB0_8:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pfr_destroy_ktable
	movq	_V_pfr_ktable_cnt@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFR_TFLAG_REFERENCED,4,2       ## @PFR_TFLAG_REFERENCED
	.comm	_PFR_TFLAG_REFDANCHOR,4,2       ## @PFR_TFLAG_REFDANCHOR
	.comm	_PFR_TFLAG_PERSIST,4,2          ## @PFR_TFLAG_PERSIST
	.comm	_PFR_TFLAG_ACTIVE,4,2           ## @PFR_TFLAG_ACTIVE
	.comm	_PFR_TFLAG_USRMASK,4,2          ## @PFR_TFLAG_USRMASK
	.comm	_PFR_TFLAG_SETMASK,4,2          ## @PFR_TFLAG_SETMASK
	.comm	_pfr_ktablehead,4,2             ## @pfr_ktablehead
	.comm	_V_pfr_ktables,4,2              ## @V_pfr_ktables
	.comm	_PFR_REFCNT_ANCHOR,8,3          ## @PFR_REFCNT_ANCHOR
	.comm	_V_pfr_ktable_cnt,4,2           ## @V_pfr_ktable_cnt
	.comm	_PFR_TFLAG_INACTIVE,4,2         ## @PFR_TFLAG_INACTIVE
	.no_dead_strip	_pfr_setflags_ktable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfr_setflags_ktable
_pfr_setflags_ktable:                   ; @pfr_setflags_ktable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_PF_RULES_WASSERT
Lloh0:
	adrp	x8, _PFR_TFLAG_REFERENCED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PFR_TFLAG_REFERENCED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _PFR_TFLAG_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PFR_TFLAG_ACTIVE@GOTPAGEOFF]
	tst	w9, w20
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x9, _PFR_TFLAG_REFDANCHOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PFR_TFLAG_REFDANCHOR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x9, _PFR_TFLAG_PERSIST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PFR_TFLAG_PERSIST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x8]
	bic	w20, w20, w9
LBB0_4:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PFR_TFLAG_USRMASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PFR_TFLAG_USRMASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w8, w20
	mov	w10, #-1
	csinv	w9, w10, w9, ne
	and	w20, w9, w20
Lloh14:
	adrp	x9, _PFR_TFLAG_SETMASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PFR_TFLAG_SETMASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w20, w9
	b.eq	LBB0_12
; %bb.5:
	tst	w20, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_pfr_enqueue_addrs
	add	x1, sp, #8
	mov	x0, x19
	bl	_pfr_remove_kentries
LBB0_8:
Lloh17:
	adrp	x8, _PFR_TFLAG_INACTIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PFR_TFLAG_INACTIVE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.10:
	mov	w1, #1
	bl	_pfr_destroy_ktable
	str	xzr, [x19, #8]
LBB0_11:
	str	w20, [x19]
	b	LBB0_16
LBB0_12:
Lloh20:
	adrp	x8, _pfr_ktablehead@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pfr_ktablehead@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, _V_pfr_ktables@GOTPAGE
Lloh24:
	ldr	x1, [x1, _V_pfr_ktables@GOTPAGEOFF]
	mov	x2, x19
	bl	_RB_REMOVE
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x0, #32]
Lloh25:
	adrp	x9, _PFR_REFCNT_ANCHOR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PFR_REFCNT_ANCHOR@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	subs	w10, w10, #1
	str	w10, [x8, x9]
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [x0]
Lloh28:
	adrp	x9, _PFR_TFLAG_REFDANCHOR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PFR_TFLAG_REFDANCHOR@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	bic	w1, w8, w9
	bl	_pfr_setflags_ktable
LBB0_15:
	mov	x0, x19
	mov	w1, #1
	bl	_pfr_destroy_ktable
Lloh31:
	adrp	x8, _V_pfr_ktable_cnt@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V_pfr_ktable_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PFR_TFLAG_REFERENCED,4,2       ; @PFR_TFLAG_REFERENCED
	.comm	_PFR_TFLAG_REFDANCHOR,4,2       ; @PFR_TFLAG_REFDANCHOR
	.comm	_PFR_TFLAG_PERSIST,4,2          ; @PFR_TFLAG_PERSIST
	.comm	_PFR_TFLAG_ACTIVE,4,2           ; @PFR_TFLAG_ACTIVE
	.comm	_PFR_TFLAG_USRMASK,4,2          ; @PFR_TFLAG_USRMASK
	.comm	_PFR_TFLAG_SETMASK,4,2          ; @PFR_TFLAG_SETMASK
	.comm	_pfr_ktablehead,4,2             ; @pfr_ktablehead
	.comm	_V_pfr_ktables,4,2              ; @V_pfr_ktables
	.comm	_PFR_REFCNT_ANCHOR,8,3          ; @PFR_REFCNT_ANCHOR
	.comm	_V_pfr_ktable_cnt,4,2           ; @V_pfr_ktable_cnt
	.comm	_PFR_TFLAG_INACTIVE,4,2         ; @PFR_TFLAG_INACTIVE
	.no_dead_strip	_pfr_setflags_ktable
.subsections_via_symbols
