	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_l2ptp_ctor
_pmap_l2ptp_ctor:                       ## @pmap_l2ptp_ctor
	.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
	movq	%rdi, %r14
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_pmap_get_l2_bucket
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_l2pte_index
	movl	(%r15,%rax,4), %ecx
	movq	_L2_S_CACHE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	andl	%ecx, %edi
	movq	_pte_l2_s_cache_mode_pt@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edi
	je	LBB0_2
## %bb.1:
	leaq	(%r15,%rax,4), %rdi
	notl	%edx
	andl	%edx, %ecx
	orl	%esi, %ecx
	movl	%ecx, (%rdi)
	callq	_PTE_SYNC
	movl	%ebx, %edi
	callq	_cpu_tlb_flushD_SE
	xorl	%eax, %eax
	callq	_cpu_cpwait
LBB0_2:
	movq	_L2_TABLE_SIZE_REAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %esi
	sarl	$2, %esi
	movq	%r14, %rdi
	callq	_PTE_SYNC_RANGE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_L2_S_CACHE_MASK,4,2            ## @L2_S_CACHE_MASK
	.comm	_pte_l2_s_cache_mode_pt,4,2     ## @pte_l2_s_cache_mode_pt
	.comm	_L2_TABLE_SIZE_REAL,4,2         ## @L2_TABLE_SIZE_REAL
	.no_dead_strip	_pmap_l2ptp_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_l2ptp_ctor
_pmap_l2ptp_ctor:                       ; @pmap_l2ptp_ctor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w20, w19, w8
Lloh3:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_pmap_get_l2_bucket
	ldr	x21, [x0]
	mov	x0, x20
	bl	_l2pte_index
	add	x0, x21, x0, lsl #2
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _L2_S_CACHE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _L2_S_CACHE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w11, w9, w8
Lloh9:
	adrp	x10, _pte_l2_s_cache_mode_pt@GOTPAGE
Lloh10:
	ldr	x10, [x10, _pte_l2_s_cache_mode_pt@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w11, w10
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w8, w9
	orr	w8, w8, w10
	str	w8, [x0]
	bl	_PTE_SYNC
	mov	x0, x20
	bl	_cpu_tlb_flushD_SE
	bl	_cpu_cpwait
LBB0_2:
Lloh12:
	adrp	x20, _L2_TABLE_SIZE_REAL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _L2_TABLE_SIZE_REAL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	ldr	w8, [x20]
	asr	w1, w8, #2
	mov	x0, x19
	bl	_PTE_SYNC_RANGE
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_L2_S_CACHE_MASK,4,2            ; @L2_S_CACHE_MASK
	.comm	_pte_l2_s_cache_mode_pt,4,2     ; @pte_l2_s_cache_mode_pt
	.comm	_L2_TABLE_SIZE_REAL,4,2         ; @L2_TABLE_SIZE_REAL
	.no_dead_strip	_pmap_l2ptp_ctor
.subsections_via_symbols
