	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_available
_svm_available:                         ## @svm_available
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_amd_feature2@GOTPCREL(%rip), %rax
	movq	_AMDID2_SVM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_MSR_VM_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_VM_CR_SVMDIS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_str.2(%rip), %rdi
LBB0_4:
	callq	_puts
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_feature2,4,2               ## @amd_feature2
	.comm	_AMDID2_SVM,4,2                 ## @AMDID2_SVM
	.comm	_MSR_VM_CR,4,2                  ## @MSR_VM_CR
	.comm	_VM_CR_SVMDIS,4,2               ## @VM_CR_SVMDIS
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"SVM: disabled by BIOS."

L_str.2:                                ## @str.2
	.asciz	"SVM: not available."

	.no_dead_strip	_svm_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_available
_svm_available:                         ; @svm_available
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _amd_feature2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_feature2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMDID2_SVM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDID2_SVM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _MSR_VM_CR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSR_VM_CR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_rdmsr
Lloh9:
	adrp	x8, _VM_CR_SVMDIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_CR_SVMDIS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x0, l_str.2@PAGE
Lloh15:
	add	x0, x0, l_str.2@PAGEOFF
LBB0_4:
	bl	_puts
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_feature2,4,2               ; @amd_feature2
	.comm	_AMDID2_SVM,4,2                 ; @AMDID2_SVM
	.comm	_MSR_VM_CR,4,2                  ; @MSR_VM_CR
	.comm	_VM_CR_SVMDIS,4,2               ; @VM_CR_SVMDIS
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"SVM: disabled by BIOS."

l_str.2:                                ; @str.2
	.asciz	"SVM: not available."

	.no_dead_strip	_svm_available
.subsections_via_symbols
