	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_vmrun
_svm_vmrun:                             ## @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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	callq	_svm_get_vcpu
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_svm_get_vmcb_state
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_svm_get_vmcb_ctrl
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_exitinfo
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_lapic
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_svm_get_guest_regctx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_curcpu@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	$0, 16(%r13)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$-1, %edx
	callq	_svm_set_dirty
	movq	_curcpu@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_VCPU_MIGRATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %ecx
	callq	_vmm_stat_incr
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_svm_msr_guest_enter
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_disable_gintr
	movq	%r12, %rdi
	callq	_vcpu_suspended
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_vcpu_rendezvous_pending
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_vcpu_reqidle
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vcpu_should_yield
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vcpu_debugged
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_sldt
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_svm_inj_interrupts
	movq	_curcpu@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	callq	_CPU_SET_ATOMIC_ACQ
	movq	(%rbx), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_check_asid
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %ecx
	notl	%ecx
	movq	_vmcb_clean@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	$0, 8(%rbx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	leaq	L_.str(%rip), %rdx
	callq	_VCPU_CTR1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_VCPU_CTR1
	movl	%r14d, %r15d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_svm_dr_enter_guest
	xorl	%eax, %eax
	callq	_get_pcpu
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_svm_launch
	movq	%r14, %rdi
	movl	%r15d, %r14d
	callq	_svm_dr_leave_guest
	movq	_curcpu@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_CPU_CLR_ATOMIC
	xorl	%eax, %eax
	callq	_restore_host_tss
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
	callq	_lldt
	xorl	%eax, %eax
	callq	_enable_gintr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, 12(%rbx)
	movq	%rdi, %rbx
	movl	%r14d, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_svm_vmexit
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_14
LBB0_4:
	xorl	%eax, %eax
	callq	_enable_gintr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_exit_suspended
	jmp	LBB0_14
LBB0_6:
	xorl	%eax, %eax
	callq	_enable_gintr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_exit_rendezvous
	jmp	LBB0_14
LBB0_8:
	xorl	%eax, %eax
	callq	_enable_gintr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_exit_reqidle
	jmp	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	callq	_enable_gintr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_exit_astpending
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
	callq	_enable_gintr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_exit_debug
LBB0_14:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_svm_msr_guest_exit
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curcpu,8,3                     ## @curcpu
	.comm	_VCPU_MIGRATIONS,4,2            ## @VCPU_MIGRATIONS
	.comm	_vmcb_clean,4,2                 ## @vmcb_clean
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmcb clean %#x"

L_.str.1:                               ## @.str.1
	.asciz	"Resume execution at %#lx"

	.no_dead_strip	_svm_vmrun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_vmrun
_svm_vmrun:                             ; @svm_vmrun
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x24, x3
	mov	x28, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	bl	_svm_get_vcpu
	mov	x25, x0
	mov	x0, x20
	mov	x1, x19
	bl	_svm_get_vmcb_state
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_svm_get_vmcb_ctrl
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x19
	bl	_vm_exitinfo
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x19
	bl	_vm_lapic
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x19
	bl	_svm_get_guest_regctx
	mov	x26, x0
	ldr	x8, [x20]
	ldr	w8, [x8, w19, sxtw #2]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ldr	x8, [x25]
Lloh0:
	adrp	x27, _curcpu@GOTPAGE
Lloh1:
	ldr	x27, [x27, _curcpu@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	str	xzr, [x25, #16]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #-1
	bl	_svm_set_dirty
	ldr	x8, [x27]
	str	x8, [x25]
Lloh2:
	adrp	x8, _VCPU_MIGRATIONS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VCPU_MIGRATIONS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	w3, #1
	bl	_vmm_stat_incr
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_svm_msr_guest_enter
	str	w28, [x22]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_disable_gintr
	mov	x0, x23
	bl	_vcpu_suspended
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_vcpu_rendezvous_pending
	cbnz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_vcpu_reqidle
	cbnz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_vcpu_should_yield
	cbnz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_vcpu_debugged
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_sldt
	mov	x28, x0
	mov	x0, x20
	mov	x1, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_svm_inj_interrupts
	ldr	x0, [x27]
	mov	x1, x24
	bl	_CPU_SET_ATOMIC_ACQ
	ldr	x3, [x27]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_check_asid
Lloh5:
	adrp	x8, _vmcb_clean@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vmcb_clean@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x25, #8]
	bic	w3, w8, w9
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w3, [x8]
	str	wzr, [x25, #8]
	mov	x0, x21
	mov	x1, x19
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_VCPU_CTR1
	ldr	w3, [x22]
	mov	x0, x21
	mov	x1, x19
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_VCPU_CTR1
	mov	x0, x26
	bl	_svm_dr_enter_guest
	bl	_get_pcpu
	mov	x2, x0
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	mov	x1, x26
	bl	_svm_launch
	mov	x0, x26
	bl	_svm_dr_leave_guest
	ldr	x0, [x27]
	mov	x1, x24
	bl	_CPU_CLR_ATOMIC
	bl	_restore_host_tss
	mov	x0, x28
	bl	_lldt
	bl	_enable_gintr
	ldr	w8, [x22]
	str	w8, [x25, #12]
	mov	x0, x20
	mov	x1, x19
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	bl	_svm_vmexit
	cbnz	w0, LBB0_3
	b	LBB0_14
LBB0_9:
	bl	_enable_gintr
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_vm_exit_suspended
	b	LBB0_14
LBB0_10:
	bl	_enable_gintr
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_vm_exit_rendezvous
	b	LBB0_14
LBB0_11:
	bl	_enable_gintr
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_vm_exit_reqidle
	b	LBB0_14
LBB0_12:
	bl	_enable_gintr
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_vm_exit_astpending
	b	LBB0_14
LBB0_13:
	bl	_enable_gintr
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_vm_exit_debug
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_svm_msr_guest_exit
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_curcpu,8,3                     ; @curcpu
	.comm	_VCPU_MIGRATIONS,4,2            ; @VCPU_MIGRATIONS
	.comm	_vmcb_clean,4,2                 ; @vmcb_clean
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmcb clean %#x"

l_.str.1:                               ; @.str.1
	.asciz	"Resume execution at %#lx"

	.no_dead_strip	_svm_vmrun
.subsections_via_symbols
