	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_get_bios                ## -- Begin function amdgpu_get_bios
	.p2align	4, 0x90
_amdgpu_get_bios:                       ## @amdgpu_get_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_atrm_get_bios
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_amdgpu_acpi_vfct_bios
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_igp_read_bios_from_vram
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_amdgpu_read_bios
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_amdgpu_read_bios_from_rom
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_amdgpu_read_disabled_bios
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_amdgpu_read_platform_bios
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	8(%rbx), %rax
	movq	_CHIP_VEGA10@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setge	%dl
	movl	%edx, (%rbx)
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to locate a BIOS ROM\n"

	.comm	_CHIP_VEGA10,8,3                ## @CHIP_VEGA10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_get_bios                ; -- Begin function amdgpu_get_bios
	.p2align	2
_amdgpu_get_bios:                       ; @amdgpu_get_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_atrm_get_bios
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_amdgpu_acpi_vfct_bios
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_igp_read_bios_from_vram
	cbnz	x0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_amdgpu_read_bios
	cbnz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_amdgpu_read_bios_from_rom
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_amdgpu_read_disabled_bios
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_amdgpu_read_platform_bios
	cbz	x0, LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _CHIP_VEGA10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHIP_VEGA10@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, ge
	str	w8, [x19]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to locate a BIOS ROM\n"

	.comm	_CHIP_VEGA10,8,3                ; @CHIP_VEGA10
.subsections_via_symbols
