	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safe_to_clear_referenced
_safe_to_clear_referenced:              ## @safe_to_clear_referenced
	.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, %r14d
	movq	%rdi, %rbx
	callq	_pmap_emulate_ad_bits
	movq	_TRUE@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rsi
	movq	_PT_EPT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rsi
	sete	%dil
	callq	_KASSERT
	movq	_EPT_PG_WRITE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_EPT_PG_EXECUTE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_PMAP_SUPPORTS_EXEC_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_PT_EPT,8,3                     ## @PT_EPT
	.comm	_EPT_PG_WRITE,4,2               ## @EPT_PG_WRITE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_EPT_PG_EXECUTE,4,2             ## @EPT_PG_EXECUTE
	.comm	_PMAP_SUPPORTS_EXEC_ONLY,4,2    ## @PMAP_SUPPORTS_EXEC_ONLY
	.no_dead_strip	_safe_to_clear_referenced
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safe_to_clear_referenced
_safe_to_clear_referenced:              ; @safe_to_clear_referenced
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	_pmap_emulate_ad_bits
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x1, [x19]
Lloh0:
	adrp	x8, _PT_EPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_EPT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	cset	w0, eq
	bl	_KASSERT
Lloh3:
	adrp	x8, _EPT_PG_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPT_PG_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	tst	w9, w20
	b.ne	LBB0_6
; %bb.2:
Lloh8:
	adrp	x9, _EPT_PG_EXECUTE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EPT_PG_EXECUTE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x9]
Lloh11:
	adrp	x9, _TRUE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
	tst	w10, w20
	b.eq	LBB0_5
; %bb.3:
	ldr	w10, [x19, #8]
Lloh13:
	adrp	x11, _PMAP_SUPPORTS_EXEC_ONLY@GOTPAGE
Lloh14:
	ldr	x11, [x11, _PMAP_SUPPORTS_EXEC_ONLY@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w11, w10
	csel	x8, x8, x9, eq
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x8, x9
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_PT_EPT,8,3                     ; @PT_EPT
	.comm	_EPT_PG_WRITE,4,2               ; @EPT_PG_WRITE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_EPT_PG_EXECUTE,4,2             ; @EPT_PG_EXECUTE
	.comm	_PMAP_SUPPORTS_EXEC_ONLY,4,2    ; @PMAP_SUPPORTS_EXEC_ONLY
	.no_dead_strip	_safe_to_clear_referenced
.subsections_via_symbols
