	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_getreg
_svm_getreg:                            ## @svm_getreg
	.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	%rcx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_VM_REG_GUEST_INTR_SHADOW@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svm_get_intr_shadow            ## TAILCALL
LBB0_1:
	movl	%edx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rcx
	callq	_vmcb_read
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_svm_get_guest_regctx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_swctx_regptr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_VCPU_CTR1
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_REG_GUEST_INTR_SHADOW,4,2   ## @VM_REG_GUEST_INTR_SHADOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svm_getreg: unknown register %#x"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_svm_getreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_getreg
_svm_getreg:                            ; @svm_getreg
	.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	x19, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _VM_REG_GUEST_INTR_SHADOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_REG_GUEST_INTR_SHADOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	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
	b	_svm_get_intr_shadow
LBB0_2:
	mov	x20, x2
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_vmcb_read
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	bl	_svm_get_guest_regctx
	mov	x1, x20
	bl	_swctx_regptr
	cbz	x0, LBB0_5
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x22]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	bl	_VCPU_CTR1
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_REG_GUEST_INTR_SHADOW,4,2   ; @VM_REG_GUEST_INTR_SHADOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svm_getreg: unknown register %#x"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_svm_getreg
.subsections_via_symbols
