	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_create_vcpu
_svm_create_vcpu:                       ## @svm_create_vcpu
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_kvm_vcpu_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_kmem_cache_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_TSC_RATIO_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	%r15, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_kvm_vcpu_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%r13), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	movq	_MSRPM_ALLOC_ORDER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_alloc_pages
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	movl	(%r12), %esi
	callq	_alloc_pages
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %rdi
	callq	_page_address
	movq	%rax, 32(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_page_address
	movq	%rax, 40(%r15)
	movq	%rax, %rdi
	callq	_svm_vcpu_init_msrpm
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_page_address
	movq	%rax, 24(%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_page_address
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_clear_page
	movq	%rbx, %rdi
	callq	_page_to_pfn
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, (%r15)
	movq	$0, 8(%r15)
	movq	%r15, %rdi
	callq	_init_vmcb
	movq	%r14, %rdi
	callq	_fx_init
	movq	_MSR_IA32_APICBASE_ENABLE@GOTPCREL(%rip), %rax
	movl	$-18874368, %ecx                ## imm = 0xFEE00000
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	%r14, %rdi
	callq	_kvm_vcpu_is_bsp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MSR_IA32_APICBASE_BSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_9:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_10:
	movl	(%r12), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___free_pages
LBB0_11:
	movl	(%r12), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	___free_pages
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	___free_page
LBB0_13:
	movq	%r14, %rdi
	callq	_kvm_vcpu_uninit
LBB0_14:
	movq	_kvm_vcpu_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_kmem_cache_free
LBB0_15:
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kvm_vcpu_cache,4,2             ## @kvm_vcpu_cache
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TSC_RATIO_DEFAULT,4,2          ## @TSC_RATIO_DEFAULT
	.comm	_MSRPM_ALLOC_ORDER,4,2          ## @MSRPM_ALLOC_ORDER
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_MSR_IA32_APICBASE_ENABLE,4,2   ## @MSR_IA32_APICBASE_ENABLE
	.comm	_MSR_IA32_APICBASE_BSP,4,2      ## @MSR_IA32_APICBASE_BSP
	.no_dead_strip	_svm_create_vcpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_create_vcpu
_svm_create_vcpu:                       ; @svm_create_vcpu
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _kvm_vcpu_cache@GOTPAGE
Lloh1:
	ldr	x24, [x24, _kvm_vcpu_cache@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_kmem_cache_zalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x8, _TSC_RATIO_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TSC_RATIO_DEFAULT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	add	x20, x0, #4
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_kvm_vcpu_init
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.2:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w26, [x8]
	ldr	w0, [x25]
	bl	_alloc_page
	cbz	x0, LBB0_13
; %bb.3:
	mov	x21, x0
	ldr	w0, [x25]
Lloh10:
	adrp	x27, _MSRPM_ALLOC_ORDER@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MSRPM_ALLOC_ORDER@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_alloc_pages
	cbz	x0, LBB0_12
; %bb.4:
	mov	x22, x0
	ldr	w0, [x25]
	ldr	w1, [x27]
	bl	_alloc_pages
	cbz	x0, LBB0_11
; %bb.5:
	mov	x23, x0
	ldr	w0, [x25]
	bl	_alloc_page
	cbz	x0, LBB0_10
; %bb.6:
	bl	_page_address
	str	x0, [x19, #32]
	mov	x0, x22
	bl	_page_address
	str	x0, [x19, #40]
	bl	_svm_vcpu_init_msrpm
	mov	x0, x23
	bl	_page_address
	str	x0, [x19, #24]
	mov	x0, x21
	bl	_page_address
	str	x0, [x19, #16]
	bl	_clear_page
	mov	x0, x21
	bl	_page_to_pfn
Lloh12:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	str	w8, [x19]
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_init_vmcb
	mov	x0, x20
	bl	_fx_init
Lloh15:
	adrp	x8, _MSR_IA32_APICBASE_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSR_IA32_APICBASE_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w9, #-18874368
	orr	w8, w8, w9
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_kvm_vcpu_is_bsp
	cbz	x0, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _MSR_IA32_APICBASE_BSP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSR_IA32_APICBASE_BSP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_8:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_10:
	ldr	w1, [x27]
	mov	x0, x23
	bl	___free_pages
LBB0_11:
	ldr	w1, [x27]
	mov	x0, x22
	bl	___free_pages
LBB0_12:
	mov	x0, x21
	bl	___free_page
LBB0_13:
	neg	w21, w26
	mov	x0, x20
	bl	_kvm_vcpu_uninit
LBB0_14:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_kmem_cache_free
LBB0_15:
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_kvm_vcpu_cache,4,2             ; @kvm_vcpu_cache
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TSC_RATIO_DEFAULT,4,2          ; @TSC_RATIO_DEFAULT
	.comm	_MSRPM_ALLOC_ORDER,4,2          ; @MSRPM_ALLOC_ORDER
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_MSR_IA32_APICBASE_ENABLE,4,2   ; @MSR_IA32_APICBASE_ENABLE
	.comm	_MSR_IA32_APICBASE_BSP,4,2      ; @MSR_IA32_APICBASE_BSP
	.no_dead_strip	_svm_create_vcpu
.subsections_via_symbols
