	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_msr_guest_exit             ## -- Begin function vmx_msr_guest_exit
	.p2align	4, 0x90
_vmx_msr_guest_exit:                    ## @vmx_msr_guest_exit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_MSR_LSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_IDX_MSR_LSTAR@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	_MSR_CSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_IDX_MSR_CSTAR@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	_MSR_STAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_IDX_MSR_STAR@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	_MSR_SF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_IDX_MSR_SF_MASK@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	_MSR_KGSBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_IDX_MSR_KGSBASE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	_MSR_LSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_host_msrs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_wrmsr
	movq	_MSR_CSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_wrmsr
	movq	_MSR_STAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_wrmsr
	movq	_MSR_SF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_host_msrs,8,3                  ## @host_msrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_msr_guest_exit             ; -- Begin function vmx_msr_guest_exit
	.p2align	2
_vmx_msr_guest_exit:                    ; @vmx_msr_guest_exit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
Lloh0:
	adrp	x20, _MSR_LSTAR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSR_LSTAR@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rdmsr
Lloh2:
	adrp	x21, _IDX_MSR_LSTAR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IDX_MSR_LSTAR@GOTPAGEOFF]
	ldr	x8, [x21]
	str	w0, [x19, x8, lsl #2]
Lloh4:
	adrp	x22, _MSR_CSTAR@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MSR_CSTAR@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_rdmsr
Lloh6:
	adrp	x23, _IDX_MSR_CSTAR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IDX_MSR_CSTAR@GOTPAGEOFF]
	ldr	x8, [x23]
	str	w0, [x19, x8, lsl #2]
Lloh8:
	adrp	x24, _MSR_STAR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MSR_STAR@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_rdmsr
Lloh10:
	adrp	x25, _IDX_MSR_STAR@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IDX_MSR_STAR@GOTPAGEOFF]
	ldr	x8, [x25]
	str	w0, [x19, x8, lsl #2]
Lloh12:
	adrp	x26, _MSR_SF_MASK@GOTPAGE
Lloh13:
	ldr	x26, [x26, _MSR_SF_MASK@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_rdmsr
Lloh14:
	adrp	x27, _IDX_MSR_SF_MASK@GOTPAGE
Lloh15:
	ldr	x27, [x27, _IDX_MSR_SF_MASK@GOTPAGEOFF]
	ldr	x8, [x27]
	str	w0, [x19, x8, lsl #2]
Lloh16:
	adrp	x8, _MSR_KGSBASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSR_KGSBASE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_rdmsr
Lloh19:
	adrp	x8, _IDX_MSR_KGSBASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IDX_MSR_KGSBASE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	ldr	w0, [x20]
Lloh22:
	adrp	x19, _host_msrs@GOTPAGE
Lloh23:
	ldr	x19, [x19, _host_msrs@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
	bl	_wrmsr
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	w1, [x8, x9, lsl #2]
	bl	_wrmsr
	ldr	w0, [x24]
	ldr	x8, [x19]
	ldr	x9, [x25]
	ldr	w1, [x8, x9, lsl #2]
	bl	_wrmsr
	ldr	w0, [x26]
	ldr	x8, [x19]
	ldr	x9, [x27]
	ldr	w1, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wrmsr
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_host_msrs,8,3                  ; @host_msrs
.subsections_via_symbols
