	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_device_detect_sriov_bios
_amdgpu_device_detect_sriov_bios:       ## @amdgpu_device_detect_sriov_bios
	.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
	movq	%rdi, %rbx
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_amdgpu_atomfirmware_gpu_supports_virtualization
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_AMDGPU_SRIOV_CAPS_SRIOV_VBIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_6:
	movq	_AMDGPU_SRIOV_CAPS_SRIOV_VBIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_amdgpu_atombios_has_gpu_virtualization_table
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_8:
	movq	_AMDGIM_ERROR_VF_NO_VBIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_amdgpu_vf_error_put            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_SRIOV_CAPS_SRIOV_VBIOS,4,2 ## @AMDGPU_SRIOV_CAPS_SRIOV_VBIOS
	.comm	_AMDGIM_ERROR_VF_NO_VBIOS,4,2   ## @AMDGIM_ERROR_VF_NO_VBIOS
	.no_dead_strip	_amdgpu_device_detect_sriov_bios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_device_detect_sriov_bios
_amdgpu_device_detect_sriov_bios:       ; @amdgpu_device_detect_sriov_bios
	.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	_amdgpu_sriov_vf
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _AMDGPU_SRIOV_CAPS_SRIOV_VBIOS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AMDGPU_SRIOV_CAPS_SRIOV_VBIOS@GOTPAGEOFF]
	mov	x0, x19
	cbz	x8, LBB0_6
; %bb.2:
	bl	_amdgpu_atomfirmware_gpu_supports_virtualization
	cbz	x0, LBB0_4
LBB0_3:
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_amdgpu_atombios_has_gpu_virtualization_table
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_7:
Lloh2:
	adrp	x8, _AMDGIM_ERROR_VF_NO_VBIOS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AMDGIM_ERROR_VF_NO_VBIOS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_amdgpu_vf_error_put
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_SRIOV_CAPS_SRIOV_VBIOS,4,2 ; @AMDGPU_SRIOV_CAPS_SRIOV_VBIOS
	.comm	_AMDGIM_ERROR_VF_NO_VBIOS,4,2   ; @AMDGIM_ERROR_VF_NO_VBIOS
	.no_dead_strip	_amdgpu_device_detect_sriov_bios
.subsections_via_symbols
