	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_set_msr
_vmx_set_msr:                           ## @vmx_set_msr
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_to_vmx
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	8(%rbx), %r14
	leal	-129(%rsi), %eax
	cmpl	$7, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_kvm_write_tsc
	jmp	LBB0_13
LBB0_4:
	movq	_GUEST_SYSENTER_ESP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_GUEST_SYSENTER_EIP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_vmcs_writel
	jmp	LBB0_13
LBB0_12:
	movq	_GUEST_SYSENTER_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_vmcs_write32
	jmp	LBB0_13
LBB0_6:
	movq	_vmcs_config@GOTPCREL(%rip), %rax
	movq	_VM_ENTRY_LOAD_IA32_PAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_GUEST_IA32_PAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_vmcs_write64
	movq	%r14, (%r15)
	jmp	LBB0_13
LBB0_8:
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_find_msr_entry
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_vmx_load_host_state
	movq	%r14, (%r13)
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	callq	_vmx_load_host_state
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_set_msr_common             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_GUEST_SYSENTER_CS,4,2          ## @GUEST_SYSENTER_CS
	.comm	_GUEST_SYSENTER_EIP,4,2         ## @GUEST_SYSENTER_EIP
	.comm	_GUEST_SYSENTER_ESP,4,2         ## @GUEST_SYSENTER_ESP
	.comm	_vmcs_config,4,2                ## @vmcs_config
	.comm	_VM_ENTRY_LOAD_IA32_PAT,4,2     ## @VM_ENTRY_LOAD_IA32_PAT
	.comm	_GUEST_IA32_PAT,4,2             ## @GUEST_IA32_PAT
	.comm	_GUEST_FS_BASE,4,2              ## @GUEST_FS_BASE
	.comm	_GUEST_GS_BASE,4,2              ## @GUEST_GS_BASE
	.no_dead_strip	_vmx_set_msr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_set_msr
_vmx_set_msr:                           ; @vmx_set_msr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_to_vmx
	mov	x22, x0
	ldr	w1, [x21]
	ldr	x19, [x21, #8]
	sub	w8, w1, #129
	cmp	w8, #7
	b.hi	LBB0_9
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_kvm_write_tsc
	b	LBB0_11
LBB0_3:
Lloh2:
	adrp	x8, _GUEST_SYSENTER_ESP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GUEST_SYSENTER_ESP@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _GUEST_SYSENTER_EIP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GUEST_SYSENTER_EIP@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_vmcs_writel
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x8, _GUEST_SYSENTER_CS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GUEST_SYSENTER_CS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_vmcs_write32
	b	LBB0_11
LBB0_7:
Lloh9:
	adrp	x8, _vmcs_config@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vmcs_config@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VM_ENTRY_LOAD_IA32_PAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VM_ENTRY_LOAD_IA32_PAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _GUEST_IA32_PAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GUEST_IA32_PAT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_vmcs_write64
	str	x19, [x20]
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	bl	_find_msr_entry
	cbz	x0, LBB0_13
; %bb.10:
	mov	x23, x0
	mov	x0, x22
	bl	_vmx_load_host_state
	str	x19, [x23]
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x22
	bl	_vmx_load_host_state
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kvm_set_msr_common
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_GUEST_SYSENTER_CS,4,2          ; @GUEST_SYSENTER_CS
	.comm	_GUEST_SYSENTER_EIP,4,2         ; @GUEST_SYSENTER_EIP
	.comm	_GUEST_SYSENTER_ESP,4,2         ; @GUEST_SYSENTER_ESP
	.comm	_vmcs_config,4,2                ; @vmcs_config
	.comm	_VM_ENTRY_LOAD_IA32_PAT,4,2     ; @VM_ENTRY_LOAD_IA32_PAT
	.comm	_GUEST_IA32_PAT,4,2             ; @GUEST_IA32_PAT
	.comm	_GUEST_FS_BASE,4,2              ; @GUEST_FS_BASE
	.comm	_GUEST_GS_BASE,4,2              ; @GUEST_GS_BASE
	.no_dead_strip	_vmx_set_msr
.subsections_via_symbols
