	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_create_vcpu
_vmx_create_vcpu:                       ## @vmx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_kvm_vcpu_cache@GOTPCREL(%rip), %r12
	movl	(%r12), %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	%rax, %rdi
	callq	_allocate_vpid
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_kvm_vcpu_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_kmalloc
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_alloc_vmcs
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	movl	%eax, %edi
	callq	_vmcs_init
	xorl	%eax, %eax
	callq	_get_cpu
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vmx_vcpu_load
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	callq	_vmx_vcpu_setup
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_vmx_vcpu_put
	xorl	%eax, %eax
	callq	_put_cpu
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_14:
	movl	8(%r15), %edi
	callq	_free_vmcs
LBB0_15:
	movl	4(%r15), %edi
	callq	_kfree
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_kvm_vcpu_uninit
LBB0_17:
	movq	%r15, %rdi
	callq	_free_vpid
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_kmem_cache_free
LBB0_18:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	callq	_vm_need_virtualize_apic_accesses
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_alloc_apic_access_page
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_14
LBB0_9:
	movq	_enable_ept@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.10:
	cmpq	$0, (%r14)
	jne	LBB0_12
## %bb.11:
	movq	_VMX_EPT_IDENTITY_PAGETABLE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_alloc_identity_pagetable
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_init_rmode_identity_map
	testl	%eax, %eax
	je	LBB0_14
LBB0_19:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_enable_ept,8,3                 ## @enable_ept
	.comm	_VMX_EPT_IDENTITY_PAGETABLE_ADDR,8,3 ## @VMX_EPT_IDENTITY_PAGETABLE_ADDR
	.no_dead_strip	_vmx_create_vcpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_create_vcpu
_vmx_create_vcpu:                       ; @vmx_create_vcpu
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _kvm_vcpu_cache@GOTPAGE
Lloh1:
	ldr	x22, [x22, _kvm_vcpu_cache@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kmem_cache_zalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_allocate_vpid
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_kvm_vcpu_init
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.2:
Lloh4:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_kmalloc
	str	w0, [x19, #4]
	cbz	w0, LBB0_7
; %bb.3:
	bl	_alloc_vmcs
	str	w0, [x19, #8]
	cbz	w0, LBB0_8
; %bb.4:
	bl	_vmcs_init
	bl	_get_cpu
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_vmx_vcpu_load
	str	w21, [x19]
	mov	x0, x19
	bl	_vmx_vcpu_setup
	mov	x21, x0
	mov	x0, x19
	bl	_vmx_vcpu_put
	bl	_put_cpu
	cbz	w21, LBB0_13
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_free_vmcs
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_8:
	mov	w21, #0
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_kfree
LBB0_10:
	mov	x0, x19
	bl	_kvm_vcpu_uninit
LBB0_11:
	mov	x0, x19
	bl	_free_vpid
	ldr	w0, [x22]
	mov	x1, x19
	bl	_kmem_cache_free
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_13:
	mov	x0, x20
	bl	_vm_need_virtualize_apic_accesses
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x20
	bl	_alloc_apic_access_page
	cbz	x0, LBB0_16
; %bb.15:
	mov	w21, #0
	b	LBB0_5
LBB0_16:
Lloh13:
	adrp	x8, _enable_ept@GOTPAGE
Lloh14:
	ldr	x8, [x8, _enable_ept@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.17:
	ldr	x8, [x20]
	cbnz	x8, LBB0_19
; %bb.18:
Lloh16:
	adrp	x8, _VMX_EPT_IDENTITY_PAGETABLE_ADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VMX_EPT_IDENTITY_PAGETABLE_ADDR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_19:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x20
	bl	_alloc_identity_pagetable
	cbnz	x0, LBB0_5
; %bb.20:
	mov	x0, x20
	bl	_init_rmode_identity_map
	cbz	w0, LBB0_5
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_enable_ept,8,3                 ; @enable_ept
	.comm	_VMX_EPT_IDENTITY_PAGETABLE_ADDR,8,3 ; @VMX_EPT_IDENTITY_PAGETABLE_ADDR
	.no_dead_strip	_vmx_create_vcpu
.subsections_via_symbols
