	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_arch_vcpu_init             ## -- Begin function kvm_arch_vcpu_init
	.p2align	4, 0x90
_kvm_arch_vcpu_init:                    ## @kvm_arch_vcpu_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpq	$0, 32(%r15)
	sete	%dil
	callq	_BUG_ON
	movq	32(%r15), %r14
	movq	_INVALID_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	callq	_irqchip_in_kernel
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_kvm_vcpu_is_bsp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_KVM_MP_STATE_UNINITIALIZED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_KVM_MP_STATE_RUNNABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %rdi
	callq	_page_address
	movq	%rax, 8(%r15)
	movq	_max_tsc_khz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kvm_init_tsc_catchup
	movq	%r15, %rdi
	callq	_kvm_mmu_create
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	callq	_irqchip_in_kernel
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_kvm_create_lapic
	testl	%eax, %eax
	js	LBB0_14
LBB0_9:
	movq	_KVM_MAX_MCE_BANKS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	shll	$4, %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movl	%eax, 16(%r15)
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movl	$0, 4(%r15)
	movq	%r15, %rdi
	callq	_kvm_pmu_init
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_kvm_free_lapic
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_kvm_mmu_destroy
LBB0_16:
	movq	8(%r15), %rdi
	callq	_free_page
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_PAGE,4,2               ## @INVALID_PAGE
	.comm	_KVM_MP_STATE_RUNNABLE,4,2      ## @KVM_MP_STATE_RUNNABLE
	.comm	_KVM_MP_STATE_UNINITIALIZED,4,2 ## @KVM_MP_STATE_UNINITIALIZED
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max_tsc_khz,4,2                ## @max_tsc_khz
	.comm	_KVM_MAX_MCE_BANKS,4,2          ## @KVM_MAX_MCE_BANKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_arch_vcpu_init             ; -- Begin function kvm_arch_vcpu_init
	.p2align	2
_kvm_arch_vcpu_init:                    ; @kvm_arch_vcpu_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x20, [x19, #32]
Lloh0:
	adrp	x8, _INVALID_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x20
	bl	_irqchip_in_kernel
Lloh3:
	adrp	x21, _KVM_MP_STATE_RUNNABLE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _KVM_MP_STATE_RUNNABLE@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_kvm_vcpu_is_bsp
Lloh5:
	adrp	x8, _KVM_MP_STATE_UNINITIALIZED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KVM_MP_STATE_UNINITIALIZED@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x21, eq
LBB0_2:
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	str	w8, [x19, #20]
	ldr	w8, [x22]
Lloh9:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	cbz	x0, LBB0_8
; %bb.3:
	bl	_page_address
	str	x0, [x19, #8]
Lloh12:
	adrp	x8, _max_tsc_khz@GOTPAGE
Lloh13:
	ldr	x8, [x8, _max_tsc_khz@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kvm_init_tsc_catchup
	mov	x0, x19
	bl	_kvm_mmu_create
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_irqchip_in_kernel
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_kvm_create_lapic
	tbnz	w0, #31, LBB0_11
LBB0_6:
Lloh15:
	adrp	x20, _KVM_MAX_MCE_BANKS@GOTPAGE
Lloh16:
	ldr	x20, [x20, _KVM_MAX_MCE_BANKS@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w0, w8, #4
	ldr	w1, [x22]
	bl	_kzalloc
	str	w0, [x19, #16]
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w8, [x20]
	stp	w8, wzr, [x19]
	mov	x0, x19
	bl	_kvm_pmu_init
	mov	w21, #0
	b	LBB0_14
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_9:
	mov	x21, x0
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x19
	bl	_kvm_free_lapic
	b	LBB0_12
LBB0_11:
	mov	x21, x0
LBB0_12:
	mov	x0, x19
	bl	_kvm_mmu_destroy
LBB0_13:
	ldr	x0, [x19, #8]
	bl	_free_page
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_PAGE,4,2               ; @INVALID_PAGE
	.comm	_KVM_MP_STATE_RUNNABLE,4,2      ; @KVM_MP_STATE_RUNNABLE
	.comm	_KVM_MP_STATE_UNINITIALIZED,4,2 ; @KVM_MP_STATE_UNINITIALIZED
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max_tsc_khz,4,2                ; @max_tsc_khz
	.comm	_KVM_MAX_MCE_BANKS,4,2          ; @KVM_MAX_MCE_BANKS
.subsections_via_symbols
