	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geode_has_vsa2                 ## -- Begin function geode_has_vsa2
	.p2align	4, 0x90
_geode_has_vsa2:                        ## @geode_has_vsa2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	_geode_has_vsa2.has_vsa2(%rip), %eax
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_VSA_VR_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VSA_VRC_INDEX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_outw
	movq	_VSA_VR_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_outw
	movq	_VSA_VRC_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inw
	movq	_AMD_VSA_SIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_GSW_VSA_SIG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, _geode_has_vsa2.has_vsa2(%rip)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @geode_has_vsa2.has_vsa2
_geode_has_vsa2.has_vsa2:
	.long	4294967295                      ## 0xffffffff

	.comm	_VSA_VR_UNLOCK,4,2              ## @VSA_VR_UNLOCK
	.comm	_VSA_VRC_INDEX,4,2              ## @VSA_VRC_INDEX
	.comm	_VSA_VR_SIGNATURE,4,2           ## @VSA_VR_SIGNATURE
	.comm	_VSA_VRC_DATA,4,2               ## @VSA_VRC_DATA
	.comm	_AMD_VSA_SIG,8,3                ## @AMD_VSA_SIG
	.comm	_GSW_VSA_SIG,8,3                ## @GSW_VSA_SIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geode_has_vsa2                 ; -- Begin function geode_has_vsa2
	.p2align	2
_geode_has_vsa2:                        ; @geode_has_vsa2
	.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
	adrp	x19, _geode_has_vsa2.has_vsa2@PAGE
	ldr	w0, [x19, _geode_has_vsa2.has_vsa2@PAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VSA_VR_UNLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSA_VR_UNLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _VSA_VRC_INDEX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _VSA_VRC_INDEX@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_outw
Lloh5:
	adrp	x8, _VSA_VR_SIGNATURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VSA_VR_SIGNATURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_outw
Lloh8:
	adrp	x8, _VSA_VRC_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VSA_VRC_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_inw
Lloh11:
	adrp	x8, _AMD_VSA_SIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AMD_VSA_SIG@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
Lloh14:
	adrp	x8, _GSW_VSA_SIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GSW_VSA_SIG@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ccmp	x0, x8, #4, ne
	cset	w0, eq
	str	w0, [x19, _geode_has_vsa2.has_vsa2@PAGEOFF]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @geode_has_vsa2.has_vsa2
_geode_has_vsa2.has_vsa2:
	.long	4294967295                      ; 0xffffffff

	.comm	_VSA_VR_UNLOCK,4,2              ; @VSA_VR_UNLOCK
	.comm	_VSA_VRC_INDEX,4,2              ; @VSA_VRC_INDEX
	.comm	_VSA_VR_SIGNATURE,4,2           ; @VSA_VR_SIGNATURE
	.comm	_VSA_VRC_DATA,4,2               ; @VSA_VRC_DATA
	.comm	_AMD_VSA_SIG,8,3                ; @AMD_VSA_SIG
	.comm	_GSW_VSA_SIG,8,3                ; @GSW_VSA_SIG
.subsections_via_symbols
