	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_set_cache_entry
_pmap_set_cache_entry:                  ## @pmap_set_cache_entry
	.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
	pushq	%rax
	.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, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	8(%r15), %rsi
	callq	_pmap_get_l2_bucket
	movq	(%rax), %r12
	movq	8(%r15), %rdi
	callq	_l2pte_index
	leaq	(%r12,%rax,4), %rsi
	movq	_L2_S_CACHE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	(%r12,%rax,4), %ebx
	cmpl	$1, %r14d
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	_pte_l2_s_cache_mode@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_l2pte_valid
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	16(%r15), %edi
	callq	_PV_BEEN_EXECD
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movl	16(%r15), %edi
	callq	_PV_BEEN_REFD
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_5:
	cmpq	%r13, 8(%r15)
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r15)
	je	LBB0_14
LBB0_7:
	movq	%rsi, %r14
	movl	%ebx, %edi
	callq	_l2pte_valid
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movl	16(%r15), %edi
	callq	_PV_BEEN_EXECD
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pmap_idcache_wbinv_range
LBB0_3:
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	callq	_pmap_tlb_flushID_SE
	jmp	LBB0_13
LBB0_10:
	movl	16(%r15), %edi
	callq	_PV_BEEN_REFD
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PVF_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r8d, %r8d
	andl	16(%r15), %eax
	sete	%r8b
	callq	_pmap_dcache_wb_range
LBB0_12:
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	callq	_pmap_tlb_flushD_SE
LBB0_13:
	movq	%r14, %rsi
LBB0_14:
	movl	%ebx, (%rsi)
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTE_SYNC_CURRENT               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L2_S_CACHE_MASK,4,2            ## @L2_S_CACHE_MASK
	.comm	_pte_l2_s_cache_mode,4,2        ## @pte_l2_s_cache_mode
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_PVF_WRITE,4,2                  ## @PVF_WRITE
	.no_dead_strip	_pmap_set_cache_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_set_cache_entry
_pmap_set_cache_entry:                  ; @pmap_set_cache_entry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x1, [x19, #8]
	bl	_pmap_get_l2_bucket
	ldr	x20, [x0]
	ldr	x0, [x19, #8]
	bl	_l2pte_index
	add	x20, x20, x0, lsl #2
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _L2_S_CACHE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L2_S_CACHE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bic	w21, w8, w9
	cmp	w24, #1
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _pte_l2_s_cache_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_l2_s_cache_mode@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w21, w21, w8
	mov	x0, x21
	bl	_l2pte_valid
	cbz	x0, LBB0_13
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_PV_BEEN_EXECD
	cbnz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_PV_BEEN_REFD
	cbnz	x0, LBB0_12
	b	LBB0_13
LBB0_4:
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19]
	cmp	x8, x22
	b.eq	LBB0_13
LBB0_6:
	mov	x0, x21
	bl	_l2pte_valid
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w0, [x19, #16]
	bl	_PV_BEEN_EXECD
	cbz	x0, LBB0_10
; %bb.8:
	ldp	x0, x1, [x19]
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_pmap_idcache_wbinv_range
LBB0_9:
	ldp	x0, x1, [x19]
	bl	_pmap_tlb_flushID_SE
	b	LBB0_13
LBB0_10:
	ldr	w0, [x19, #16]
	bl	_PV_BEEN_REFD
	cbz	x0, LBB0_13
; %bb.11:
	ldp	x0, x1, [x19]
Lloh9:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	ldr	w8, [x19, #16]
Lloh15:
	adrp	x9, _PVF_WRITE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PVF_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w4, eq
	bl	_pmap_dcache_wb_range
LBB0_12:
	ldp	x0, x1, [x19]
	bl	_pmap_tlb_flushD_SE
LBB0_13:
	str	w21, [x20]
	ldr	x0, [x19]
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTE_SYNC_CURRENT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_L2_S_CACHE_MASK,4,2            ; @L2_S_CACHE_MASK
	.comm	_pte_l2_s_cache_mode,4,2        ; @pte_l2_s_cache_mode
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_PVF_WRITE,4,2                  ; @PVF_WRITE
	.no_dead_strip	_pmap_set_cache_entry
.subsections_via_symbols
