	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_msr_guest_init             ## -- Begin function vmx_msr_guest_init
	.p2align	4, 0x90
_vmx_msr_guest_init:                    ## @vmx_msr_guest_init
	.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), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_MSR_LSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_guest_msr_rw
	movq	_MSR_CSTAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_guest_msr_rw
	movq	_MSR_STAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_guest_msr_rw
	movq	_MSR_SF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_guest_msr_rw
	movq	_MSR_KGSBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_guest_msr_rw
LBB0_2:
	movq	_PAT_WRITE_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_PAT_VALUE
	movl	%eax, %ebx
	movq	_PAT_WRITE_THROUGH@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$1, %edi
	callq	_PAT_VALUE
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movq	_PAT_UNCACHED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$2, %edi
	callq	_PAT_VALUE
	movl	%eax, %r15d
	movq	_PAT_UNCACHEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edi
	callq	_PAT_VALUE
	movl	%eax, %r12d
	orl	%r15d, %r12d
	orl	%r14d, %r12d
	movq	_PAT_WRITE_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_PAT_VALUE
	movl	%eax, %r14d
	movl	(%r13), %esi
	movl	$5, %edi
	callq	_PAT_VALUE
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movl	(%rbx), %esi
	movl	$6, %edi
	callq	_PAT_VALUE
	movl	%eax, %ebx
	orl	%r15d, %ebx
	orl	%r12d, %ebx
	movq	_PAT_UNCACHEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edi
	callq	_PAT_VALUE
	orl	%ebx, %eax
	movq	_IDX_MSR_PAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_LSTAR,4,2                  ## @MSR_LSTAR
	.comm	_MSR_CSTAR,4,2                  ## @MSR_CSTAR
	.comm	_MSR_STAR,4,2                   ## @MSR_STAR
	.comm	_MSR_SF_MASK,4,2                ## @MSR_SF_MASK
	.comm	_MSR_KGSBASE,4,2                ## @MSR_KGSBASE
	.comm	_PAT_WRITE_BACK,4,2             ## @PAT_WRITE_BACK
	.comm	_PAT_WRITE_THROUGH,4,2          ## @PAT_WRITE_THROUGH
	.comm	_PAT_UNCACHED,4,2               ## @PAT_UNCACHED
	.comm	_PAT_UNCACHEABLE,4,2            ## @PAT_UNCACHEABLE
	.comm	_IDX_MSR_PAT,8,3                ## @IDX_MSR_PAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_msr_guest_init             ; -- Begin function vmx_msr_guest_init
	.p2align	2
_vmx_msr_guest_init:                    ; @vmx_msr_guest_init
	.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
	ldr	x8, [x0]
	ldr	x20, [x8, w1, sxtw #3]
	cbnz	w1, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MSR_LSTAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_LSTAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_guest_msr_rw
Lloh3:
	adrp	x8, _MSR_CSTAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_CSTAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_guest_msr_rw
Lloh6:
	adrp	x8, _MSR_STAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSR_STAR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_guest_msr_rw
Lloh9:
	adrp	x8, _MSR_SF_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSR_SF_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_guest_msr_rw
Lloh12:
	adrp	x8, _MSR_KGSBASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSR_KGSBASE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_guest_msr_rw
LBB0_2:
Lloh15:
	adrp	x21, _PAT_WRITE_BACK@GOTPAGE
Lloh16:
	ldr	x21, [x21, _PAT_WRITE_BACK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_PAT_VALUE
	mov	x19, x0
Lloh17:
	adrp	x22, _PAT_WRITE_THROUGH@GOTPAGE
Lloh18:
	ldr	x22, [x22, _PAT_WRITE_THROUGH@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #1
	bl	_PAT_VALUE
	orr	w19, w0, w19
Lloh19:
	adrp	x23, _PAT_UNCACHED@GOTPAGE
Lloh20:
	ldr	x23, [x23, _PAT_UNCACHED@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #2
	bl	_PAT_VALUE
	orr	w19, w19, w0
Lloh21:
	adrp	x24, _PAT_UNCACHEABLE@GOTPAGE
Lloh22:
	ldr	x24, [x24, _PAT_UNCACHEABLE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #3
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	w1, [x21]
	mov	w0, #4
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	w1, [x22]
	mov	w0, #5
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	w1, [x23]
	mov	w0, #6
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	w1, [x24]
	mov	w0, #7
	bl	_PAT_VALUE
	orr	w8, w19, w0
Lloh23:
	adrp	x9, _IDX_MSR_PAT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IDX_MSR_PAT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	w8, [x20, x9, lsl #2]
	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
	.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
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_LSTAR,4,2                  ; @MSR_LSTAR
	.comm	_MSR_CSTAR,4,2                  ; @MSR_CSTAR
	.comm	_MSR_STAR,4,2                   ; @MSR_STAR
	.comm	_MSR_SF_MASK,4,2                ; @MSR_SF_MASK
	.comm	_MSR_KGSBASE,4,2                ; @MSR_KGSBASE
	.comm	_PAT_WRITE_BACK,4,2             ; @PAT_WRITE_BACK
	.comm	_PAT_WRITE_THROUGH,4,2          ; @PAT_WRITE_THROUGH
	.comm	_PAT_UNCACHED,4,2               ; @PAT_UNCACHED
	.comm	_PAT_UNCACHEABLE,4,2            ; @PAT_UNCACHEABLE
	.comm	_IDX_MSR_PAT,8,3                ; @IDX_MSR_PAT
.subsections_via_symbols
