	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_init
_svm_init:                              ## @svm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_svm_available
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_check_svm_features
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	_VMCB_CACHE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_vmcb_clean@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
	movq	_MAXCPU@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.4:
	movq	_asid@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	$1, %ecx
	jne	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movl	%ecx, %esi
	andl	$-2, %esi
	leaq	24(%r8), %rdi
	xorl	%edx, %edx
	movq	_nasid@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	$-1, -24(%rdi)
	movq	(%rbx), %rax
	decq	%rax
	movq	%rax, -16(%rdi)
	movq	$-1, -8(%rdi)
	movq	(%rbx), %rax
	decq	%rax
	movq	%rax, (%rdi)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_7
LBB0_8:
	testb	$1, %cl
	je	LBB0_10
## %bb.9:
	shlq	$4, %rdx
	movq	$-1, (%r8,%rdx)
	movq	_nasid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, 8(%r8,%rdx)
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_svm_msr_init
	movl	%r14d, %edi
	callq	_svm_npt_init
	movq	_svm_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_smp_rendezvous
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_VMCB_CACHE_DEFAULT,4,2         ## @VMCB_CACHE_DEFAULT
	.comm	_vmcb_clean,4,2                 ## @vmcb_clean
	.comm	_MAXCPU,4,2                     ## @MAXCPU
	.comm	_asid,8,3                       ## @asid
	.comm	_nasid,8,3                      ## @nasid
	.comm	_svm_enable,4,2                 ## @svm_enable
	.no_dead_strip	_svm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_init
_svm_init:                              ; @svm_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_svm_available
	cbz	w0, LBB0_8
; %bb.1:
	bl	_check_svm_features
	cbnz	w0, LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _VMCB_CACHE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCB_CACHE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _vmcb_clean@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vmcb_clean@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _MAXCPU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAXCPU@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.3:
Lloh8:
	adrp	x8, _asid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _asid@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
Lloh11:
	adrp	x8, _nasid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nasid@GOTPAGEOFF]
	cmp	w9, #8
	b.lo	LBB0_9
; %bb.4:
	add	x11, x10, x9, lsl #4
	add	x12, x8, #8
	cmp	x10, x12
	ccmp	x11, x8, #0, lo
	b.hi	LBB0_9
; %bb.5:
	and	x11, x9, #0xfffffff8
	add	x13, x10, #64
	movi.2d	v0, #0xffffffffffffffff
	mov	x12, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d2, [x8]
	add.2d	v2, v2, v0
	dup.2d	v1, v2[0]
	sub	x14, x13, #64
	st2.2d	{ v0, v1 }, [x14]
	sub	x14, x13, #32
	st2.2d	{ v0, v1 }, [x14]
	add	x14, x13, #128
	st2.2d	{ v0, v1 }, [x13], #32
	st2.2d	{ v0, v1 }, [x13]
	mov	x13, x14
	subs	x12, x12, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x11, x9
	b.ne	LBB0_10
	b	LBB0_12
LBB0_8:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_9:
	mov	x11, #0
LBB0_10:
	add	x10, x10, x11, lsl #4
	add	x10, x10, #8
	sub	x9, x9, x11
	mov	x11, #-1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stur	x11, [x10, #-8]
	ldr	x12, [x8]
	sub	x12, x12, #1
	str	x12, [x10], #16
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	bl	_svm_msr_init
	mov	x0, x19
	bl	_svm_npt_init
Lloh16:
	adrp	x8, _svm_enable@GOTPAGE
Lloh17:
	ldr	x8, [x8, _svm_enable@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, #0
	mov	x2, #0
	mov	x3, #0
	bl	_smp_rendezvous
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_VMCB_CACHE_DEFAULT,4,2         ; @VMCB_CACHE_DEFAULT
	.comm	_vmcb_clean,4,2                 ; @vmcb_clean
	.comm	_MAXCPU,4,2                     ; @MAXCPU
	.comm	_asid,8,3                       ; @asid
	.comm	_nasid,8,3                      ; @nasid
	.comm	_svm_enable,4,2                 ; @svm_enable
	.no_dead_strip	_svm_init
.subsections_via_symbols
