	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_msrs
_setup_msrs:                            ## @setup_msrs
	.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	%rdi, %rbx
	callq	_vmx_load_host_state
	movq	_MSR_EFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___find_msr_index
	movl	%eax, (%rbx)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_update_transition_efer
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_move_msr_up
	movl	$1, %r15d
LBB0_3:
	movl	%r15d, 4(%rbx)
	xorl	%eax, %eax
	callq	_cpu_has_vmx_msr_bitmap
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_is_long_mode
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_vmx_msr_bitmap_legacy@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_vmx_msr_bitmap_longmode@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rdi
	movq	_MSR_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	___pa
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmcs_write64                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_EFER,4,2                   ## @MSR_EFER
	.comm	_vmx_msr_bitmap_longmode,8,3    ## @vmx_msr_bitmap_longmode
	.comm	_vmx_msr_bitmap_legacy,8,3      ## @vmx_msr_bitmap_legacy
	.comm	_MSR_BITMAP,4,2                 ## @MSR_BITMAP
	.comm	_EFER_SCE,4,2                   ## @EFER_SCE
	.comm	_MSR_CSTAR,4,2                  ## @MSR_CSTAR
	.comm	_MSR_K6_STAR,4,2                ## @MSR_K6_STAR
	.comm	_MSR_LSTAR,4,2                  ## @MSR_LSTAR
	.comm	_MSR_SYSCALL_MASK,4,2           ## @MSR_SYSCALL_MASK
	.no_dead_strip	_setup_msrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_msrs
_setup_msrs:                            ; @setup_msrs
	.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, x0
	bl	_vmx_load_host_state
Lloh0:
	adrp	x8, _MSR_EFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_EFER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___find_msr_index
	str	w0, [x19]
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_update_transition_efer
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_move_msr_up
	mov	w8, #1
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	str	w8, [x19, #4]
	bl	_cpu_has_vmx_msr_bitmap
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x19, #8
	bl	_is_long_mode
Lloh3:
	adrp	x8, _vmx_msr_bitmap_legacy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vmx_msr_bitmap_legacy@GOTPAGEOFF]
Lloh5:
	adrp	x9, _vmx_msr_bitmap_longmode@GOTPAGE
Lloh6:
	ldr	x9, [x9, _vmx_msr_bitmap_longmode@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _MSR_BITMAP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSR_BITMAP@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	bl	___pa
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vmcs_write64
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_EFER,4,2                   ; @MSR_EFER
	.comm	_vmx_msr_bitmap_longmode,8,3    ; @vmx_msr_bitmap_longmode
	.comm	_vmx_msr_bitmap_legacy,8,3      ; @vmx_msr_bitmap_legacy
	.comm	_MSR_BITMAP,4,2                 ; @MSR_BITMAP
	.comm	_EFER_SCE,4,2                   ; @EFER_SCE
	.comm	_MSR_CSTAR,4,2                  ; @MSR_CSTAR
	.comm	_MSR_K6_STAR,4,2                ; @MSR_K6_STAR
	.comm	_MSR_LSTAR,4,2                  ; @MSR_LSTAR
	.comm	_MSR_SYSCALL_MASK,4,2           ; @MSR_SYSCALL_MASK
	.no_dead_strip	_setup_msrs
.subsections_via_symbols
