	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nested_svm_vmrun
_nested_svm_vmrun:                      ## @nested_svm_vmrun
	.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, %r14
	movq	(%rdi), %r13
	movq	64(%rdi), %rbx
	movl	96(%r13), %esi
	movq	_KM_USER0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nested_svm_map
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%r14), %rax
	movl	96(%rax), %eax
	movl	%eax, 60(%r14)
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_kvm_clear_exception_queue
	movq	%r15, %rdi
	callq	_kvm_clear_interrupt_queue
	movl	140(%r13), %eax
	movl	%eax, 140(%rbx)
	movl	136(%r13), %eax
	movl	%eax, 136(%rbx)
	movups	120(%r13), %xmm0
	movups	%xmm0, 120(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 116(%rbx)
	movq	%r15, %rdi
	callq	_kvm_read_cr0
	movl	%eax, 112(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 108(%rbx)
	movl	72(%r13), %eax
	movl	%eax, 72(%rbx)
	movl	72(%r14), %eax
	movl	%eax, 88(%rbx)
	movl	92(%r13), %eax
	movl	%eax, 92(%rbx)
	movl	96(%r13), %eax
	movl	%eax, 96(%rbx)
	movq	_npt_enabled@GOTPCREL(%rip), %rdx
	leaq	16(%r14), %rax
	leaq	104(%r13), %rcx
	cmpq	$0, (%rdx)
	cmoveq	%rax, %rcx
	movl	(%rcx), %eax
	movl	%eax, 104(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_copy_vmcb_control_area
	movq	(%r14), %rax
	movq	_X86_EFLAGS_IF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_HF_HIF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, 72(%rax)
	je	LBB0_4
## %bb.3:
	orl	%ecx, (%r15)
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_4:
	notl	%ecx
	andl	%ecx, (%r15)
LBB0_5:
	movl	140(%r12), %ecx
	movl	%ecx, 140(%rax)
	movl	136(%r12), %ecx
	movl	%ecx, 136(%rax)
	movups	120(%r12), %xmm0
	movups	%xmm0, 120(%rax)
	movl	72(%r12), %ecx
	movl	%ecx, 72(%rax)
	movl	116(%r12), %esi
	movq	%r15, %rdi
	callq	_svm_set_efer
	movl	112(%r12), %esi
	movq	%r15, %rdi
	callq	_svm_set_cr0
	movl	108(%r12), %esi
	movq	%r15, %rdi
	callq	_svm_set_cr4
	movq	_npt_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	104(%r12), %esi
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	movl	%esi, 104(%rdi)
	movl	104(%r12), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_kvm_set_cr3
	movq	%r15, %rdi
	callq	_kvm_mmu_reset_context
	movq	(%r14), %rdi
LBB0_8:
	movq	_VMCB_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mark_dirty
	movl	100(%r12), %eax
	movl	%eax, 12(%r14)
	movq	(%r14), %rcx
	movl	%eax, 100(%rcx)
	movq	_VCPU_REGS_RAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	96(%r12), %edx
	movq	%r15, %rdi
	callq	_kvm_register_write
	movq	_VCPU_REGS_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	92(%r12), %edx
	movq	%r15, %rdi
	callq	_kvm_register_write
	movq	_VCPU_REGS_RIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	88(%r12), %edx
	movq	%r15, %rdi
	callq	_kvm_register_write
	movl	96(%r12), %eax
	movq	(%r14), %rcx
	movl	%eax, 96(%rcx)
	movl	92(%r12), %eax
	movl	%eax, 92(%rcx)
	movups	76(%r12), %xmm0
	movups	%xmm0, 76(%rcx)
	movl	60(%r12), %eax
	orl	%eax, 60(%rcx)
	movl	56(%r12), %eax
	orl	%eax, 56(%rcx)
	movups	40(%r12), %xmm0
	movups	40(%rcx), %xmm1
	orps	%xmm0, %xmm1
	movups	%xmm1, 40(%rcx)
	movl	64(%r12), %eax
	movl	%eax, 56(%r14)
	movl	60(%r12), %eax
	movl	%eax, 52(%r14)
	movl	56(%r12), %eax
	movl	%eax, 48(%r14)
	movups	40(%r12), %xmm0
	movups	%xmm0, 32(%r14)
	movq	%r15, %rdi
	callq	_svm_flush_tlb
	movl	32(%r12), %eax
	movq	(%r14), %rcx
	movl	%eax, 32(%rcx)
	movl	36(%r12), %eax
	movl	%eax, 36(%rcx)
	movq	_V_INTR_MASKING_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%r12), %eax
	movl	%eax, (%rcx)
	movl	(%r12), %esi
	movq	_V_IRQ_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_nsvm_printk
	movl	(%r12), %esi
LBB0_10:
	movq	_HF_VINTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, (%rbx)
	je	LBB0_12
## %bb.11:
	orl	%eax, (%r15)
	jmp	LBB0_13
LBB0_12:
	notl	%eax
	andl	%eax, (%r15)
LBB0_13:
	movl	24(%r12), %edx
	movl	32(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_nsvm_printk
	movl	28(%r12), %ecx
	movq	(%r14), %rax
	movl	%ecx, 28(%rax)
	movl	24(%r12), %ecx
	movl	%ecx, 24(%rax)
	movq	16(%r12), %rcx
	addq	%rcx, 16(%rax)
	movl	4(%r12), %esi
	movq	_SVM_EVTINJ_VALID@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	movq	_KM_USER0@GOTPCREL(%rip), %rbx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_nsvm_printk
	movl	4(%r12), %esi
	movq	(%r14), %rax
LBB0_15:
	movl	%esi, 4(%rax)
	movl	8(%r12), %ecx
	movl	%ecx, 8(%rax)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_nested_svm_unmap
	movq	%r14, %rdi
	callq	_enable_gif
	movq	(%r14), %rdi
	callq	_mark_all_dirty
	movl	$1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KM_USER0,4,2                   ## @KM_USER0
	.comm	_npt_enabled,8,3                ## @npt_enabled
	.comm	_X86_EFLAGS_IF,4,2              ## @X86_EFLAGS_IF
	.comm	_HF_HIF_MASK,4,2                ## @HF_HIF_MASK
	.comm	_VMCB_CR,4,2                    ## @VMCB_CR
	.comm	_VCPU_REGS_RAX,4,2              ## @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RSP,4,2              ## @VCPU_REGS_RSP
	.comm	_VCPU_REGS_RIP,4,2              ## @VCPU_REGS_RIP
	.comm	_V_INTR_MASKING_MASK,4,2        ## @V_INTR_MASKING_MASK
	.comm	_V_IRQ_MASK,4,2                 ## @V_IRQ_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nSVM Injecting Interrupt: 0x%x\n"

	.comm	_HF_VINTR_MASK,4,2              ## @HF_VINTR_MASK
L_.str.1:                               ## @.str.1
	.asciz	"nSVM exit_int_info: 0x%x | int_state: 0x%x\n"

	.comm	_SVM_EVTINJ_VALID,4,2           ## @SVM_EVTINJ_VALID
L_.str.2:                               ## @.str.2
	.asciz	"Injecting Event: 0x%x\n"

	.no_dead_strip	_nested_svm_vmrun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nested_svm_vmrun
_nested_svm_vmrun:                      ; @nested_svm_vmrun
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x22, [x0, #64]
	ldr	x23, [x0]
	ldr	w1, [x23, #96]
Lloh0:
	adrp	x24, _KM_USER0@GOTPAGE
Lloh1:
	ldr	x24, [x24, _KM_USER0@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_nested_svm_map
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w8, [x8, #96]
	str	w8, [x19, #60]
	add	x21, x19, #8
	mov	x0, x21
	bl	_kvm_clear_exception_queue
	mov	x0, x21
	bl	_kvm_clear_interrupt_queue
	ldr	d0, [x23, #136]
	str	d0, [x22, #136]
	ldur	q0, [x23, #120]
	stur	q0, [x22, #120]
	ldr	w8, [x19, #24]
	str	w8, [x22, #116]
	mov	x0, x21
	bl	_kvm_read_cr0
	ldr	w8, [x19, #20]
	stp	w8, w0, [x22, #108]
	ldr	w8, [x23, #72]
	str	w8, [x22, #72]
	ldr	w8, [x19, #72]
	str	w8, [x22, #88]
	ldur	d0, [x23, #92]
	stur	d0, [x22, #92]
Lloh2:
	adrp	x25, _npt_enabled@GOTPAGE
Lloh3:
	ldr	x25, [x25, _npt_enabled@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x9, x19, #16
	add	x10, x23, #104
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x22, #104]
	mov	x0, x22
	mov	x1, x23
	bl	_copy_vmcb_control_area
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _X86_EFLAGS_IF@GOTPAGE
Lloh5:
	ldr	x9, [x9, _X86_EFLAGS_IF@GOTPAGEOFF]
	ldr	w10, [x8, #72]
Lloh6:
	ldr	w11, [x9]
Lloh7:
	adrp	x9, _HF_HIF_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HF_HIF_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
	ldr	w10, [x21]
	orr	w9, w10, w9
	b	LBB0_4
LBB0_3:
	ldr	w10, [x21]
	bic	w9, w10, w9
LBB0_4:
	str	w9, [x21]
	ldr	d0, [x20, #136]
	str	d0, [x8, #136]
	ldur	q0, [x20, #120]
	stur	q0, [x8, #120]
	ldr	w9, [x20, #72]
	str	w9, [x8, #72]
	ldr	w1, [x20, #116]
	mov	x0, x21
	bl	_svm_set_efer
	ldr	w1, [x20, #112]
	mov	x0, x21
	bl	_svm_set_cr0
	ldr	w1, [x20, #108]
	mov	x0, x21
	bl	_svm_set_cr4
	ldr	x8, [x25]
	ldr	w1, [x20, #104]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x19]
	str	w1, [x0, #104]
	ldr	w8, [x20, #104]
	str	w8, [x19, #16]
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_kvm_set_cr3
	mov	x0, x21
	bl	_kvm_mmu_reset_context
	ldr	x0, [x19]
LBB0_7:
Lloh10:
	adrp	x8, _VMCB_CR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VMCB_CR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_mark_dirty
	ldp	w2, w8, [x20, #96]
	str	w8, [x19, #12]
	ldr	x9, [x19]
	str	w8, [x9, #100]
Lloh13:
	adrp	x8, _VCPU_REGS_RAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VCPU_REGS_RAX@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kvm_register_write
Lloh16:
	adrp	x8, _VCPU_REGS_RSP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VCPU_REGS_RSP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x20, #92]
	mov	x0, x21
	bl	_kvm_register_write
Lloh19:
	adrp	x8, _VCPU_REGS_RIP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VCPU_REGS_RIP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x20, #88]
	mov	x0, x21
	bl	_kvm_register_write
	ldr	x8, [x19]
	ldur	d0, [x20, #92]
	stur	d0, [x8, #92]
	ldur	q0, [x20, #76]
	stur	q0, [x8, #76]
	ldr	d0, [x20, #56]
	ldr	d1, [x8, #56]
	orr.8b	v0, v1, v0
	str	d0, [x8, #56]
	ldur	q0, [x20, #40]
	ldur	q1, [x8, #40]
	orr.16b	v0, v1, v0
	stur	q0, [x8, #40]
	ldr	w8, [x20, #64]
	str	w8, [x19, #56]
	ldr	d0, [x20, #56]
	str	d0, [x19, #48]
	ldur	q0, [x20, #40]
	str	q0, [x19, #32]
	mov	x0, x21
	bl	_svm_flush_tlb
	ldr	x8, [x19]
	ldr	d0, [x20, #32]
	str	d0, [x8, #32]
	ldr	w9, [x20]
Lloh22:
	adrp	x22, _V_INTR_MASKING_MASK@GOTPAGE
Lloh23:
	ldr	x22, [x22, _V_INTR_MASKING_MASK@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w1, [x20]
Lloh24:
	adrp	x8, _V_IRQ_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V_IRQ_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_9
; %bb.8:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_nsvm_printk
	ldr	w1, [x20]
LBB0_9:
	ldr	w9, [x22]
Lloh29:
	adrp	x8, _HF_VINTR_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HF_VINTR_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w9, w1
	b.eq	LBB0_11
; %bb.10:
	ldr	w9, [x21]
	orr	w8, w9, w8
	b	LBB0_12
LBB0_11:
	ldr	w9, [x21]
	bic	w8, w9, w8
LBB0_12:
	str	w8, [x21]
	ldr	w1, [x20, #32]
	ldr	w8, [x20, #24]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_nsvm_printk
	ldr	x8, [x19]
	ldr	d0, [x20, #24]
	str	d0, [x8, #24]
	ldr	x9, [x20, #16]
	ldr	x10, [x8, #16]
	add	x9, x10, x9
	str	x9, [x8, #16]
	ldr	w1, [x20, #4]
Lloh34:
	adrp	x9, _SVM_EVTINJ_VALID@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SVM_EVTINJ_VALID@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_14
; %bb.13:
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_nsvm_printk
	ldr	w1, [x20, #4]
	ldr	x8, [x19]
LBB0_14:
	ldr	w9, [x20, #8]
	stp	w1, w9, [x8, #4]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_nested_svm_unmap
	mov	x0, x19
	bl	_enable_gif
	ldr	x0, [x19]
	bl	_mark_all_dirty
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_KM_USER0,4,2                   ; @KM_USER0
	.comm	_npt_enabled,8,3                ; @npt_enabled
	.comm	_X86_EFLAGS_IF,4,2              ; @X86_EFLAGS_IF
	.comm	_HF_HIF_MASK,4,2                ; @HF_HIF_MASK
	.comm	_VMCB_CR,4,2                    ; @VMCB_CR
	.comm	_VCPU_REGS_RAX,4,2              ; @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RSP,4,2              ; @VCPU_REGS_RSP
	.comm	_VCPU_REGS_RIP,4,2              ; @VCPU_REGS_RIP
	.comm	_V_INTR_MASKING_MASK,4,2        ; @V_INTR_MASKING_MASK
	.comm	_V_IRQ_MASK,4,2                 ; @V_IRQ_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nSVM Injecting Interrupt: 0x%x\n"

	.comm	_HF_VINTR_MASK,4,2              ; @HF_VINTR_MASK
l_.str.1:                               ; @.str.1
	.asciz	"nSVM exit_int_info: 0x%x | int_state: 0x%x\n"

	.comm	_SVM_EVTINJ_VALID,4,2           ; @SVM_EVTINJ_VALID
l_.str.2:                               ; @.str.2
	.asciz	"Injecting Event: 0x%x\n"

	.no_dead_strip	_nested_svm_vmrun
.subsections_via_symbols
