	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_cp_gfx_load_microcode
_gfx_v10_0_cp_gfx_load_microcode:       ## @gfx_v10_0_cp_gfx_load_microcode
	.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
	cmpl	$0, 12(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, 8(%rdi)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 4(%r14)
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gfx_v10_0_cp_gfx_enable
	movq	%r14, %rdi
	callq	_gfx_v10_0_cp_gfx_load_pfp_microcode
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_6:
	movq	%r14, %rdi
	callq	_gfx_v10_0_cp_gfx_load_ce_microcode
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	movq	%r14, %rdi
	callq	_gfx_v10_0_cp_gfx_load_me_microcode
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) failed to load pfp fw\n"

L_.str.1:                               ## @.str.1
	.asciz	"(%d) failed to load ce fw\n"

L_.str.2:                               ## @.str.2
	.asciz	"(%d) failed to load me fw\n"

	.no_dead_strip	_gfx_v10_0_cp_gfx_load_microcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v10_0_cp_gfx_load_microcode
_gfx_v10_0_cp_gfx_load_microcode:       ; @gfx_v10_0_cp_gfx_load_microcode
	.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
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_gfx_v10_0_cp_gfx_enable
	mov	x0, x20
	bl	_gfx_v10_0_cp_gfx_load_pfp_microcode
	cbz	w0, LBB0_6
; %bb.4:
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_gfx_v10_0_cp_gfx_load_ce_microcode
	cbz	w0, LBB0_8
; %bb.7:
	mov	x19, x0
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_gfx_v10_0_cp_gfx_load_me_microcode
	mov	x19, x0
	cbz	w0, LBB0_11
; %bb.9:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x2, x19
	bl	_dev_err
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) failed to load pfp fw\n"

l_.str.1:                               ; @.str.1
	.asciz	"(%d) failed to load ce fw\n"

l_.str.2:                               ; @.str.2
	.asciz	"(%d) failed to load me fw\n"

	.no_dead_strip	_gfx_v10_0_cp_gfx_load_microcode
.subsections_via_symbols
