	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdmsr_interception
_rdmsr_interception:                    ## @rdmsr_interception
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_VCPU_REGS_RCX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r14d
	leaq	-20(%rbp), %rdx
	movl	%r14d, %esi
	callq	_svm_get_msr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kvm_inject_gp
	jmp	LBB0_3
LBB0_2:
	movl	-20(%rbp), %esi
	movl	%r14d, %edi
	callq	_trace_kvm_msr_read
	movl	-20(%rbp), %eax
	movq	(%rbx), %rcx
	movq	_VCPU_REGS_RAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	%rbx, %rdi
	callq	_kvm_rip_read
	addq	$2, %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_skip_emulated_instruction
LBB0_3:
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCPU_REGS_RCX,8,3              ## @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RAX,8,3              ## @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RDX,8,3              ## @VCPU_REGS_RDX
	.no_dead_strip	_rdmsr_interception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdmsr_interception
_rdmsr_interception:                    ; @rdmsr_interception
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VCPU_REGS_RCX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VCPU_REGS_RCX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
	add	x2, sp, #12
	mov	x1, x20
	bl	_svm_get_msr
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_kvm_inject_gp
	b	LBB0_3
LBB0_2:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_trace_kvm_msr_read
	ldr	w8, [sp, #12]
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _VCPU_REGS_RAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VCPU_REGS_RAX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x19
	bl	_kvm_rip_read
	add	x8, x0, #2
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_skip_emulated_instruction
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VCPU_REGS_RCX,8,3              ; @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RAX,8,3              ; @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RDX,8,3              ; @VCPU_REGS_RDX
	.no_dead_strip	_rdmsr_interception
.subsections_via_symbols
