	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_set_cr3
_svm_set_cr3:                           ## @svm_set_cr3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_svm
	movq	_npt_enabled@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	setne	%dl
	movq	(%rax), %rdi
	movq	%r14, (%rdi,%rdx,8)
	jne	LBB0_1
## %bb.2:
	movq	_VMCB_CR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VMCB_NPT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_mark_dirty
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_svm_flush_tlb                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_npt_enabled,8,3                ## @npt_enabled
	.comm	_VMCB_NPT,4,2                   ## @VMCB_NPT
	.comm	_VMCB_CR,4,2                    ## @VMCB_CR
	.no_dead_strip	_svm_set_cr3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_set_cr3
_svm_set_cr3:                           ; @svm_set_cr3
	.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	x19, x1
	mov	x20, x0
	bl	_to_svm
Lloh0:
	adrp	x8, _npt_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _npt_enabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VMCB_CR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VMCB_CR@GOTPAGEOFF]
Lloh5:
	adrp	x10, _VMCB_NPT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VMCB_NPT@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	cset	w9, ne
	ldr	x0, [x0]
	str	x19, [x0, w9, uxtw #3]
	ldr	w1, [x8]
	bl	_mark_dirty
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_svm_flush_tlb
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_npt_enabled,8,3                ; @npt_enabled
	.comm	_VMCB_NPT,4,2                   ; @VMCB_NPT
	.comm	_VMCB_CR,4,2                    ; @VMCB_CR
	.no_dead_strip	_svm_set_cr3
.subsections_via_symbols
