	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcpu_init
_vcpu_init:                             ## @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	%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	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	cmpl	%r13d, (%r14)
	setg	%dil
LBB0_2:
	movslq	%r13d, %rbx
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	8(%r14), %r12
	leaq	(%rbx,%rbx,8), %r15
	leaq	(%r12,%r15,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vcpu_lock_initialized
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_vcpu_lock_init
	movq	_VCPU_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12,%r15,8)
	movq	_NOCPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12,%r15,8)
	xorl	%eax, %eax
	callq	_fpu_save_area_alloc
	movl	%eax, 4(%r12,%r15,8)
	xorl	%eax, %eax
	callq	_vmm_stat_alloc
	movl	%eax, (%rbx)
LBB0_4:
	movl	4(%r14), %edi
	movl	%r13d, %esi
	callq	_VLAPIC_INIT
	movl	%eax, 56(%r12,%r15,8)
	movq	_X2APIC_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_vm_set_x2apic_state
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12,%r15,8)
	movups	%xmm0, 32(%r12,%r15,8)
	movq	$0, 48(%r12,%r15,8)
	movq	_XFEATURE_ENABLED_X87@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12,%r15,8)
	movl	4(%r12,%r15,8), %edi
	callq	_fpu_save_area_reset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmm_stat_init                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VCPU_IDLE,4,2                  ## @VCPU_IDLE
	.comm	_NOCPU,4,2                      ## @NOCPU
	.comm	_X2APIC_DISABLED,4,2            ## @X2APIC_DISABLED
	.comm	_XFEATURE_ENABLED_X87,4,2       ## @XFEATURE_ENABLED_X87
	.no_dead_strip	_vcpu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcpu_init
_vcpu_init:                             ; @vcpu_init
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	sxtw	x22, w19
	mov	x1, x22
	bl	_KASSERT
	ldr	x24, [x20, #8]
	mov	w8, #72
	smaddl	x21, w19, w8, x24
	cbz	w23, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_vcpu_lock_initialized
	cmp	w0, #0
	cset	w0, eq
	mov	x1, x22
	bl	_KASSERT
	mov	x0, x21
	bl	_vcpu_lock_init
Lloh0:
	adrp	x8, _VCPU_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCPU_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #72
	madd	x23, x22, x9, x24
	str	w8, [x23, #64]
Lloh3:
	adrp	x8, _NOCPU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOCPU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x23, #60]
	bl	_fpu_save_area_alloc
	str	w0, [x23, #4]
	bl	_vmm_stat_alloc
	str	w0, [x21]
LBB0_5:
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_VLAPIC_INIT
	mov	w8, #72
	madd	x22, x22, x8, x24
	str	w0, [x22, #56]
Lloh6:
	adrp	x8, _X2APIC_DISABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X2APIC_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_vm_set_x2apic_state
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x22, #16]
	str	xzr, [x22, #48]
Lloh9:
	adrp	x8, _XFEATURE_ENABLED_X87@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XFEATURE_ENABLED_X87@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	ldr	w0, [x22, #4]
	bl	_fpu_save_area_reset
	ldr	w0, [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	_vmm_stat_init
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VCPU_IDLE,4,2                  ; @VCPU_IDLE
	.comm	_NOCPU,4,2                      ; @NOCPU
	.comm	_X2APIC_DISABLED,4,2            ; @X2APIC_DISABLED
	.comm	_XFEATURE_ENABLED_X87,4,2       ; @XFEATURE_ENABLED_X87
	.no_dead_strip	_vcpu_init
.subsections_via_symbols
