	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_link_l2pt                 ## -- Begin function pmap_link_l2pt
	.p2align	4, 0x90
_pmap_link_l2pt:                        ## @pmap_link_l2pt
	.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	%rsi, %rbx
	movq	_L1_S_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_PMAP_DOMAIN_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_L1_S_DOM
	movq	_L1_C_PROTO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r14), %eax
	leaq	(%r15,%rbx,4), %rdi
	movl	%eax, (%r15,%rbx,4)
	callq	_PTE_SYNC
	movq	_pv_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_kernel_pt_list@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SLIST_INSERT_HEAD              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_S_SHIFT,8,3                 ## @L1_S_SHIFT
	.comm	_PMAP_DOMAIN_KERNEL,4,2         ## @PMAP_DOMAIN_KERNEL
	.comm	_L1_C_PROTO,4,2                 ## @L1_C_PROTO
	.comm	_kernel_pt_list,4,2             ## @kernel_pt_list
	.comm	_pv_list,4,2                    ## @pv_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_link_l2pt                 ; -- Begin function pmap_link_l2pt
	.p2align	2
_pmap_link_l2pt:                        ; @pmap_link_l2pt
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _L1_S_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L1_S_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x21, x1, x8
Lloh3:
	adrp	x8, _PMAP_DOMAIN_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMAP_DOMAIN_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_L1_S_DOM
Lloh6:
	adrp	x8, _L1_C_PROTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _L1_C_PROTO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x19]
	orr	w8, w8, w9
	add	x0, x20, x21, lsl #2
	str	w8, [x0]
	bl	_PTE_SYNC
Lloh9:
	adrp	x8, _pv_list@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pv_list@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x0, _kernel_pt_list@GOTPAGE
Lloh13:
	ldr	x0, [x0, _kernel_pt_list@GOTPAGEOFF]
	mov	x1, x19
	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
	b	_SLIST_INSERT_HEAD
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_S_SHIFT,8,3                 ; @L1_S_SHIFT
	.comm	_PMAP_DOMAIN_KERNEL,4,2         ; @PMAP_DOMAIN_KERNEL
	.comm	_L1_C_PROTO,4,2                 ; @L1_C_PROTO
	.comm	_kernel_pt_list,4,2             ; @kernel_pt_list
	.comm	_pv_list,4,2                    ; @pv_list
.subsections_via_symbols
