	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_set_pcpu_defaults
_vmx_set_pcpu_defaults:                 ## @vmx_set_pcpu_defaults
	.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	8(%rdi), %rax
	movslq	%esi, %rbx
	movq	_curcpu@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax,%rbx,8)
	jne	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	%rcx, (%rax,%rbx,8)
	movl	(%rdi), %edi
	movq	_VCPU_MIGRATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_vmm_stat_incr
	movq	_VMCS_HOST_TR_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_vmm_get_host_trbase
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_vmcs_write
	movq	_VMCS_HOST_GDTR_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_vmm_get_host_gdtrbase
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_vmcs_write
	movq	_VMCS_HOST_GS_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_vmm_get_host_gsbase
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_vmcs_write
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmx_invvpid                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curcpu,8,3                     ## @curcpu
	.comm	_VCPU_MIGRATIONS,4,2            ## @VCPU_MIGRATIONS
	.comm	_VMCS_HOST_TR_BASE,4,2          ## @VMCS_HOST_TR_BASE
	.comm	_VMCS_HOST_GDTR_BASE,4,2        ## @VMCS_HOST_GDTR_BASE
	.comm	_VMCS_HOST_GS_BASE,4,2          ## @VMCS_HOST_GS_BASE
	.no_dead_strip	_vmx_set_pcpu_defaults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_set_pcpu_defaults
_vmx_set_pcpu_defaults:                 ; @vmx_set_pcpu_defaults
	.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
	ldr	x8, [x0, #8]
	ldr	x10, [x8, w1, sxtw #3]
Lloh0:
	adrp	x9, _curcpu@GOTPAGE
Lloh1:
	ldr	x9, [x9, _curcpu@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	sxtw	x10, w20
	str	x9, [x8, x10, lsl #3]
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _VCPU_MIGRATIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCPU_MIGRATIONS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_vmm_stat_incr
Lloh6:
	adrp	x8, _VMCS_HOST_TR_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMCS_HOST_TR_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	bl	_vmm_get_host_trbase
	mov	x1, x0
	mov	x0, x22
	bl	_vmcs_write
Lloh9:
	adrp	x8, _VMCS_HOST_GDTR_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMCS_HOST_GDTR_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	bl	_vmm_get_host_gdtrbase
	mov	x1, x0
	mov	x0, x22
	bl	_vmcs_write
Lloh12:
	adrp	x8, _VMCS_HOST_GS_BASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMCS_HOST_GS_BASE@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	bl	_vmm_get_host_gsbase
	mov	x1, x0
	mov	x0, x22
	bl	_vmcs_write
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	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
	b	_vmx_invvpid
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_curcpu,8,3                     ; @curcpu
	.comm	_VCPU_MIGRATIONS,4,2            ; @VCPU_MIGRATIONS
	.comm	_VMCS_HOST_TR_BASE,4,2          ; @VMCS_HOST_TR_BASE
	.comm	_VMCS_HOST_GDTR_BASE,4,2        ; @VMCS_HOST_GDTR_BASE
	.comm	_VMCS_HOST_GS_BASE,4,2          ; @VMCS_HOST_GS_BASE
	.no_dead_strip	_vmx_set_pcpu_defaults
.subsections_via_symbols
