	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmexit_wrmsr
_vmexit_wrmsr:                          ## @vmexit_wrmsr
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdx), %esi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	callq	_emulate_wrmsr
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	_strictmsr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_vm_inject_gp
LBB0_3:
	movq	_VMEXIT_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrmsr to register %#x(%#lx) on vcpu %d\n"

	.comm	_strictmsr,8,3                  ## @strictmsr
	.comm	_VMEXIT_CONTINUE,4,2            ## @VMEXIT_CONTINUE
	.no_dead_strip	_vmexit_wrmsr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmexit_wrmsr
_vmexit_wrmsr:                          ; @vmexit_wrmsr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w1, [x2]
	ldp	w2, w3, [x21]
	bl	_emulate_wrmsr
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w2, w3, [x21]
	ldr	w4, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh5:
	adrp	x8, _strictmsr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _strictmsr@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vm_inject_gp
LBB0_3:
Lloh8:
	adrp	x8, _VMEXIT_CONTINUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMEXIT_CONTINUE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrmsr to register %#x(%#lx) on vcpu %d\n"

	.comm	_strictmsr,8,3                  ; @strictmsr
	.comm	_VMEXIT_CONTINUE,4,2            ; @VMEXIT_CONTINUE
	.no_dead_strip	_vmexit_wrmsr
.subsections_via_symbols
