	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_v6_0_init_microcode
_gmc_v6_0_init_microcode:               ## @gmc_v6_0_init_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_reltable.gmc_v6_0_init_microcode(%rip), %rcx
	movslq	(%rcx,%rax,4), %rbx
	addq	%rcx, %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $rbx
LBB0_3:
	movq	_mmMC_SEQ_MISC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	andl	$-16777216, %eax                ## imm = 0xFF000000
	cmpl	$1476395008, %eax               ## imm = 0x58000000
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.6(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$30, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.7(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$30, %esi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_6:
	leaq	8(%r14), %r15
	movl	16(%r14), %edx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_request_firmware
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	(%r15), %rdi
	callq	_amdgpu_ucode_validate
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movl	16(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	leaq	-64(%rbp), %rdx
	callq	_dev_err
	movq	8(%r14), %rdi
	callq	_release_firmware
	movq	$0, 8(%r14)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"tahiti"

L_.str.2:                               ## @.str.2
	.asciz	"pitcairn"

L_.str.3:                               ## @.str.3
	.asciz	"verde"

L_.str.4:                               ## @.str.4
	.asciz	"oland"

L_.str.5:                               ## @.str.5
	.asciz	"hainan"

	.comm	_mmMC_SEQ_MISC0,4,2             ## @mmMC_SEQ_MISC0
L_.str.6:                               ## @.str.6
	.asciz	"amdgpu/si58_mc.bin"

L_.str.7:                               ## @.str.7
	.asciz	"amdgpu/%s_mc.bin"

L_.str.8:                               ## @.str.8
	.asciz	"si_mc: Failed to load firmware \"%s\"\n"

	.no_dead_strip	_gmc_v6_0_init_microcode
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.gmc_v6_0_init_microcode
l_reltable.gmc_v6_0_init_microcode:
	.long	L_.str.3-l_reltable.gmc_v6_0_init_microcode
	.long	L_.str.1-l_reltable.gmc_v6_0_init_microcode
	.long	L_.str.2-l_reltable.gmc_v6_0_init_microcode
	.long	L_.str.4-l_reltable.gmc_v6_0_init_microcode
	.long	L_.str.5-l_reltable.gmc_v6_0_init_microcode

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmc_v6_0_init_microcode
_gmc_v6_0_init_microcode:               ; @gmc_v6_0_init_microcode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, l_switch.table.gmc_v6_0_init_microcode@PAGE
Lloh6:
	add	x9, x9, l_switch.table.gmc_v6_0_init_microcode@PAGEOFF
	ldr	x20, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	bl	_BUG
                                        ; implicit-def: $x20
LBB0_3:
Lloh7:
	adrp	x8, _mmMC_SEQ_MISC0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mmMC_SEQ_MISC0@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_RREG32
	lsr	w8, w0, #24
	cmp	w8, #88
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x2, l_.str.6@PAGE
Lloh11:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_5:
	str	x20, [sp]
Lloh12:
	adrp	x2, l_.str.7@PAGE
Lloh13:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_6:
	add	x0, sp, #10
	mov	w1, #30
	bl	_snprintf
	add	x21, x19, #8
	ldr	w2, [x19, #16]
	add	x1, sp, #10
	mov	x0, x21
	bl	_request_firmware
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x21]
	bl	_amdgpu_ucode_validate
	mov	x20, x0
	cbz	w0, LBB0_9
LBB0_8:
	ldr	w0, [x19, #16]
Lloh14:
	adrp	x1, l_.str.8@PAGE
Lloh15:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #10
	bl	_dev_err
	ldr	x0, [x19, #8]
	bl	_release_firmware
	str	xzr, [x19, #8]
LBB0_9:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"tahiti"

l_.str.2:                               ; @.str.2
	.asciz	"pitcairn"

l_.str.3:                               ; @.str.3
	.asciz	"verde"

l_.str.4:                               ; @.str.4
	.asciz	"oland"

l_.str.5:                               ; @.str.5
	.asciz	"hainan"

	.comm	_mmMC_SEQ_MISC0,4,2             ; @mmMC_SEQ_MISC0
l_.str.6:                               ; @.str.6
	.asciz	"amdgpu/si58_mc.bin"

l_.str.7:                               ; @.str.7
	.asciz	"amdgpu/%s_mc.bin"

l_.str.8:                               ; @.str.8
	.asciz	"si_mc: Failed to load firmware \"%s\"\n"

	.no_dead_strip	_gmc_v6_0_init_microcode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.gmc_v6_0_init_microcode
l_switch.table.gmc_v6_0_init_microcode:
	.quad	l_.str.3
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.4
	.quad	l_.str.5

.subsections_via_symbols
