	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_msr_guest_enter            ## -- Begin function vmx_msr_guest_enter
	.p2align	4, 0x90
_vmx_msr_guest_enter:                   ## @vmx_msr_guest_enter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_curpcb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_update_pcb_bases
	movq	_MSR_LSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDX_MSR_LSTAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	callq	_wrmsr
	movq	_MSR_CSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDX_MSR_CSTAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	callq	_wrmsr
	movq	_MSR_STAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDX_MSR_STAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	callq	_wrmsr
	movq	_MSR_SF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDX_MSR_SF_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	callq	_wrmsr
	movq	_MSR_KGSBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDX_MSR_KGSBASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curpcb,4,2                     ## @curpcb
	.comm	_MSR_LSTAR,4,2                  ## @MSR_LSTAR
	.comm	_IDX_MSR_LSTAR,8,3              ## @IDX_MSR_LSTAR
	.comm	_MSR_CSTAR,4,2                  ## @MSR_CSTAR
	.comm	_IDX_MSR_CSTAR,8,3              ## @IDX_MSR_CSTAR
	.comm	_MSR_STAR,4,2                   ## @MSR_STAR
	.comm	_IDX_MSR_STAR,8,3               ## @IDX_MSR_STAR
	.comm	_MSR_SF_MASK,4,2                ## @MSR_SF_MASK
	.comm	_IDX_MSR_SF_MASK,8,3            ## @IDX_MSR_SF_MASK
	.comm	_MSR_KGSBASE,4,2                ## @MSR_KGSBASE
	.comm	_IDX_MSR_KGSBASE,8,3            ## @IDX_MSR_KGSBASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_msr_guest_enter            ; -- Begin function vmx_msr_guest_enter
	.p2align	2
_vmx_msr_guest_enter:                   ; @vmx_msr_guest_enter
	.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
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
Lloh0:
	adrp	x8, _curpcb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curpcb@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_update_pcb_bases
Lloh3:
	adrp	x8, _MSR_LSTAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_LSTAR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _IDX_MSR_LSTAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDX_MSR_LSTAR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x19, x8, lsl #2]
	bl	_wrmsr
Lloh9:
	adrp	x8, _MSR_CSTAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSR_CSTAR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _IDX_MSR_CSTAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDX_MSR_CSTAR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w1, [x19, x8, lsl #2]
	bl	_wrmsr
Lloh15:
	adrp	x8, _MSR_STAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSR_STAR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _IDX_MSR_STAR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IDX_MSR_STAR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w1, [x19, x8, lsl #2]
	bl	_wrmsr
Lloh21:
	adrp	x8, _MSR_SF_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSR_SF_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _IDX_MSR_SF_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IDX_MSR_SF_MASK@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w1, [x19, x8, lsl #2]
	bl	_wrmsr
Lloh27:
	adrp	x8, _MSR_KGSBASE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSR_KGSBASE@GOTPAGEOFF]
Lloh29:
	adrp	x9, _IDX_MSR_KGSBASE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IDX_MSR_KGSBASE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	ldr	x8, [x9]
	ldr	w1, [x19, x8, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsr
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_curpcb,4,2                     ; @curpcb
	.comm	_MSR_LSTAR,4,2                  ; @MSR_LSTAR
	.comm	_IDX_MSR_LSTAR,8,3              ; @IDX_MSR_LSTAR
	.comm	_MSR_CSTAR,4,2                  ; @MSR_CSTAR
	.comm	_IDX_MSR_CSTAR,8,3              ; @IDX_MSR_CSTAR
	.comm	_MSR_STAR,4,2                   ; @MSR_STAR
	.comm	_IDX_MSR_STAR,8,3               ; @IDX_MSR_STAR
	.comm	_MSR_SF_MASK,4,2                ; @MSR_SF_MASK
	.comm	_IDX_MSR_SF_MASK,8,3            ; @IDX_MSR_SF_MASK
	.comm	_MSR_KGSBASE,4,2                ; @MSR_KGSBASE
	.comm	_IDX_MSR_KGSBASE,8,3            ; @IDX_MSR_KGSBASE
.subsections_via_symbols
