	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_create_vm
_kvm_create_vm:                         ## @kvm_create_vm
	.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
	xorl	%eax, %eax
	callq	_kvm_arch_create_vm
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_hardware_enable_all
	testl	%eax, %eax
	je	LBB0_2
## %bb.11:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %edi
	jmp	LBB0_12
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	48(%r12), %r14
	movq	%r14, %rdi
	callq	_init_srcu_struct
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movl	%eax, %r15d
	movq	40(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movl	%r15d, %edi
	jmp	LBB0_12
LBB0_5:
	movq	_KVM_NR_BUSES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_13
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	56(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	56(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_13:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r12)
	callq	_atomic_inc
	leaq	24(%r12), %rdi
	callq	_spin_lock_init
	leaq	20(%r12), %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	callq	_kvm_eventfd_init
	leaq	16(%r12), %rdi
	callq	_mutex_init
	leaq	12(%r12), %rdi
	callq	_mutex_init
	leaq	8(%r12), %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	addq	$4, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	_kvm_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_vm_list@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_list_add
	movq	%rbx, %rdi
	callq	_spin_unlock
	jmp	LBB0_14
LBB0_10:
	movq	%r14, %rdi
	callq	_cleanup_srcu_struct
	movq	40(%r12), %rdi
	callq	_kfree
LBB0_3:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KVM_NR_BUSES,4,2               ## @KVM_NR_BUSES
	.comm	_current,8,3                    ## @current
	.comm	_kvm_lock,4,2                   ## @kvm_lock
	.comm	_vm_list,4,2                    ## @vm_list
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_kvm_mmu_notifier_ops,4,2       ## @kvm_mmu_notifier_ops
	.no_dead_strip	_kvm_create_vm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_create_vm
_kvm_create_vm:                         ; @kvm_create_vm
	.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
	bl	_kvm_arch_create_vm
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	bl	_hardware_enable_all
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_14
LBB0_4:
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_13
; %bb.5:
	add	x20, x19, #48
	mov	x0, x20
	bl	_init_srcu_struct
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	x0, [x19, #40]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	b	LBB0_14
LBB0_7:
Lloh2:
	adrp	x21, _KVM_NR_BUSES@GOTPAGE
Lloh3:
	ldr	x21, [x21, _KVM_NR_BUSES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x19, #56]
	lsl	x9, x23, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #56]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_11:
Lloh4:
	adrp	x8, _current@GOTPAGE
Lloh5:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_atomic_inc
	add	x0, x19, #24
	bl	_spin_lock_init
	add	x0, x19, #20
	bl	_spin_lock_init
	mov	x0, x19
	bl	_kvm_eventfd_init
	add	x0, x19, #16
	bl	_mutex_init
	add	x0, x19, #12
	bl	_mutex_init
	add	x0, x19, #8
	bl	_mutex_init
	add	x0, x19, #4
	mov	w1, #1
	bl	_atomic_set
Lloh7:
	adrp	x20, _kvm_lock@GOTPAGE
Lloh8:
	ldr	x20, [x20, _kvm_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
Lloh9:
	adrp	x1, _vm_list@GOTPAGE
Lloh10:
	ldr	x1, [x1, _vm_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_1
LBB0_12:
	mov	x0, x20
	bl	_cleanup_srcu_struct
	ldr	x0, [x19, #40]
	bl	_kfree
LBB0_13:
	mov	x0, x19
	bl	_kfree
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KVM_NR_BUSES,4,2               ; @KVM_NR_BUSES
	.comm	_current,8,3                    ; @current
	.comm	_kvm_lock,4,2                   ; @kvm_lock
	.comm	_vm_list,4,2                    ; @vm_list
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_kvm_mmu_notifier_ops,4,2       ; @kvm_mmu_notifier_ops
	.no_dead_strip	_kvm_create_vm
.subsections_via_symbols
