	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_switcher_in_guest          ## -- Begin function map_switcher_in_guest
	.p2align	4, 0x90
_map_switcher_in_guest:                 ## @map_switcher_in_guest
	.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, %r14
	movq	%rdi, %rbx
	movq	_switcher_pte_pages@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___get_cpu_var
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	___pa
	movq	___PAGE_KERNEL_EXEC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	___pgd
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	_SWITCHER_PGD_INDEX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	8(%rbx), %rdi
	callq	___pa
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_pfn_pte
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_pte_index
	leaq	(%r15,%rax,4), %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_pte                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_switcher_pte_pages,4,2         ## @switcher_pte_pages
	.comm	___PAGE_KERNEL_EXEC,4,2         ## @__PAGE_KERNEL_EXEC
	.comm	_SWITCHER_PGD_INDEX,8,3         ## @SWITCHER_PGD_INDEX
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_KERNEL,4,2                ## @PAGE_KERNEL
	.comm	_PAGE_KERNEL_EXEC,4,2           ## @PAGE_KERNEL_EXEC
	.comm	_SWITCHER_PMD_INDEX,8,3         ## @SWITCHER_PMD_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_switcher_in_guest          ; -- Begin function map_switcher_in_guest
	.p2align	2
_map_switcher_in_guest:                 ; @map_switcher_in_guest
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _switcher_pte_pages@GOTPAGE
Lloh1:
	ldr	x8, [x8, _switcher_pte_pages@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___get_cpu_var
	mov	x21, x0
	bl	___pa
Lloh3:
	adrp	x8, ___PAGE_KERNEL_EXEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___PAGE_KERNEL_EXEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	___pgd
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	ldp	x10, x8, [x20]
	ldr	x9, [x9, x10, lsl #3]
Lloh6:
	adrp	x10, _SWITCHER_PGD_INDEX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SWITCHER_PGD_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	w0, [x9, x10, lsl #2]
	mov	x0, x8
	bl	___pa
Lloh9:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	asr	w0, w0, w8
Lloh12:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_pfn_pte
	mov	x20, x0
	mov	x0, x19
	bl	_pte_index
	add	x0, x21, x0, lsl #2
	mov	x1, x20
	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	_set_pte
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_switcher_pte_pages,4,2         ; @switcher_pte_pages
	.comm	___PAGE_KERNEL_EXEC,4,2         ; @__PAGE_KERNEL_EXEC
	.comm	_SWITCHER_PGD_INDEX,8,3         ; @SWITCHER_PGD_INDEX
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_KERNEL,4,2                ; @PAGE_KERNEL
	.comm	_PAGE_KERNEL_EXEC,4,2           ; @PAGE_KERNEL_EXEC
	.comm	_SWITCHER_PMD_INDEX,8,3         ; @SWITCHER_PMD_INDEX
.subsections_via_symbols
