	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_dpm_init_microcode
_si_dpm_init_microcode:                 ## @si_dpm_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_41
## %bb.1:
	leaq	L_.str.1(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_2:
	movq	24(%r14), %rcx
	movl	4(%rcx), %eax
	cmpl	$26656, %eax                    ## imm = 0x6820
	je	LBB0_19
## %bb.3:
	cmpl	$26657, %eax                    ## imm = 0x6821
	jne	LBB0_24
## %bb.4:
	movl	$-131, %eax
	addl	(%rcx), %eax
	testl	$-5, %eax
	jmp	LBB0_27
LBB0_5:
	movq	24(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$195, %ecx
	je	LBB0_28
## %bb.6:
	cmpl	$131, %ecx
	je	LBB0_30
## %bb.7:
	cmpl	$129, %ecx
	jne	LBB0_32
## %bb.8:
	cmpl	$26208, 4(%rax)                 ## imm = 0x6660
	jne	LBB0_32
## %bb.9:
	leaq	L_.str.8(%rip), %rcx
	jmp	LBB0_34
LBB0_10:
	movq	24(%r14), %rax
	cmpl	$129, (%rax)
	jne	LBB0_18
## %bb.11:
	movl	4(%rax), %eax
	andl	$-2, %eax
	cmpl	$26640, %eax                    ## imm = 0x6810
	jne	LBB0_18
## %bb.12:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_34
LBB0_13:
	movq	24(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$131, %ecx
	je	LBB0_21
## %bb.14:
	cmpl	$129, %ecx
	jne	LBB0_23
## %bb.15:
	movl	$-26112, %ecx                   ## imm = 0x9A00
	addl	4(%rax), %ecx
	cmpl	$16, %ecx
	ja	LBB0_23
## %bb.16:
	movl	$65585, %eax                    ## imm = 0x10031
	btl	%ecx, %eax
	jae	LBB0_23
LBB0_17:
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_34
LBB0_18:
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_34
LBB0_19:
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	$2, %edx
	cmpl	$131, %edx
	jne	LBB0_25
## %bb.20:
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_34
LBB0_21:
	cmpl	$26128, 4(%rax)                 ## imm = 0x6610
	je	LBB0_17
LBB0_23:
	leaq	L_.str.7(%rip), %rcx
	jmp	LBB0_34
LBB0_24:
	movl	(%rcx), %ecx
LBB0_25:
	cmpl	$135, %ecx
	jne	LBB0_33
## %bb.26:
	addl	$-26659, %eax                   ## imm = 0x97DD
	testl	$-9, %eax
LBB0_27:
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rcx
	cmoveq	%rax, %rcx
	jmp	LBB0_34
LBB0_28:
	cmpl	$26213, 4(%rax)                 ## imm = 0x6665
	jne	LBB0_32
## %bb.29:
	leaq	L_.str.9(%rip), %rcx
	jmp	LBB0_34
LBB0_30:
	movl	$-26208, %ecx                   ## imm = 0x99A0
	addl	4(%rax), %ecx
	cmpl	$8, %ecx
	jae	LBB0_32
## %bb.31:
	movslq	%ecx, %rax
	leaq	l_reltable.si_dpm_init_microcode(%rip), %rdx
	movslq	(%rdx,%rax,4), %rcx
	addq	%rdx, %rcx
	jmp	LBB0_34
LBB0_32:
	leaq	L_.str.10(%rip), %rcx
	jmp	LBB0_34
LBB0_33:
	leaq	L_.str.5(%rip), %rcx
LBB0_34:
	leaq	L_.str.11(%rip), %rdx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_snprintf
	movl	16(%r14), %edx
	addq	$8, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_36
## %bb.35:
	movq	(%r14), %rdi
	callq	_amdgpu_ucode_validate
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_39
LBB0_36:
	leaq	L_.str.12(%rip), %rdi
	leaq	-64(%rbp), %rdx
	movl	%ebx, %esi
	callq	_DRM_ERROR
	movq	(%r14), %rdi
	callq	_release_firmware
	movq	$0, (%r14)
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_40
## %bb.38:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_39:
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_40:
	callq	___stack_chk_fail
LBB0_41:
	xorl	%eax, %eax
	callq	_BUG
	ud2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_34
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_5
	.end_data_region
                                        ## -- 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_k"

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"oland_k"

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

L_.str.8:                               ## @.str.8
	.asciz	"hainan_k"

L_.str.9:                               ## @.str.9
	.asciz	"banks_k_2"

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

L_.str.11:                              ## @.str.11
	.asciz	"amdgpu/%s_smc.bin"

L_.str.12:                              ## @.str.12
	.asciz	"si_smc: Failed to load firmware. err = %d\"%s\"\n"

	.no_dead_strip	_si_dpm_init_microcode
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.si_dpm_init_microcode
l_reltable.si_dpm_init_microcode:
	.long	L_.str.8-l_reltable.si_dpm_init_microcode
	.long	L_.str.10-l_reltable.si_dpm_init_microcode
	.long	L_.str.10-l_reltable.si_dpm_init_microcode
	.long	L_.str.8-l_reltable.si_dpm_init_microcode
	.long	L_.str.10-l_reltable.si_dpm_init_microcode
	.long	L_.str.8-l_reltable.si_dpm_init_microcode
	.long	L_.str.10-l_reltable.si_dpm_init_microcode
	.long	L_.str.8-l_reltable.si_dpm_init_microcode

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_dpm_init_microcode
_si_dpm_init_microcode:                 ; @si_dpm_init_microcode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
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, #4
	b.hi	LBB0_36
; %bb.1:
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x9, [x19, #24]
	ldr	w8, [x9, #4]
	mov	w10, #26656
	cmp	w8, w10
	b.eq	LBB0_18
; %bb.3:
	mov	w10, #26657
	cmp	w8, w10
	b.ne	LBB0_22
; %bb.4:
	ldr	w8, [x9]
	sub	w8, w8, #131
Lloh9:
	adrp	x9, l_.str.5@PAGE
Lloh10:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh11:
	adrp	x10, l_.str.4@PAGE
Lloh12:
	add	x10, x10, l_.str.4@PAGEOFF
	tst	w8, #0xfffffffb
	csel	x3, x10, x9, eq
	b	LBB0_30
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	cmp	w9, #195
	b.eq	LBB0_25
; %bb.6:
	cmp	w9, #131
	b.eq	LBB0_27
; %bb.7:
	cmp	w9, #129
	b.ne	LBB0_29
; %bb.8:
	ldr	w8, [x8, #4]
	mov	w9, #26208
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.9:
Lloh13:
	adrp	x3, l_.str.8@PAGE
Lloh14:
	add	x3, x3, l_.str.8@PAGEOFF
	b	LBB0_30
LBB0_10:
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	cmp	w9, #129
	b.ne	LBB0_17
; %bb.11:
	ldr	w8, [x8, #4]
	mov	w9, #13320
	cmp	w9, w8, lsr #1
	b.ne	LBB0_17
; %bb.12:
Lloh15:
	adrp	x3, l_.str.2@PAGE
Lloh16:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_30
LBB0_13:
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	cmp	w9, #131
	b.eq	LBB0_20
; %bb.14:
	cmp	w9, #129
	b.ne	LBB0_21
; %bb.15:
	ldr	w8, [x8, #4]
	mov	w9, #-26112
	add	w8, w8, w9
	cmp	w8, #16
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #49
	movk	w9, #1, lsl #16
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_21
LBB0_16:
Lloh17:
	adrp	x3, l_.str.6@PAGE
Lloh18:
	add	x3, x3, l_.str.6@PAGEOFF
	b	LBB0_30
LBB0_17:
Lloh19:
	adrp	x3, l_.str.3@PAGE
Lloh20:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_30
LBB0_18:
	ldr	w9, [x9]
	orr	w10, w9, #0x2
	cmp	w10, #131
	b.ne	LBB0_23
; %bb.19:
Lloh21:
	adrp	x3, l_.str.4@PAGE
Lloh22:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_30
LBB0_20:
	ldr	w8, [x8, #4]
	mov	w9, #26128
	cmp	w8, w9
	b.eq	LBB0_16
LBB0_21:
Lloh23:
	adrp	x3, l_.str.7@PAGE
Lloh24:
	add	x3, x3, l_.str.7@PAGEOFF
	b	LBB0_30
LBB0_22:
	ldr	w9, [x9]
LBB0_23:
Lloh25:
	adrp	x3, l_.str.5@PAGE
Lloh26:
	add	x3, x3, l_.str.5@PAGEOFF
	cmp	w9, #135
	b.ne	LBB0_30
; %bb.24:
	mov	w9, #-26659
	add	w8, w8, w9
Lloh27:
	adrp	x9, l_.str.4@PAGE
Lloh28:
	add	x9, x9, l_.str.4@PAGEOFF
	tst	w8, #0xfffffff7
	csel	x3, x9, x3, eq
	b	LBB0_30
LBB0_25:
	ldr	w8, [x8, #4]
	mov	w9, #26213
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.26:
Lloh29:
	adrp	x3, l_.str.9@PAGE
Lloh30:
	add	x3, x3, l_.str.9@PAGEOFF
	b	LBB0_30
LBB0_27:
	ldr	w8, [x8, #4]
	mov	w9, #-26208
	add	w8, w8, w9
	cmp	w8, #8
	b.hs	LBB0_29
; %bb.28:
Lloh31:
	adrp	x9, l_switch.table.si_dpm_init_microcode@PAGE
Lloh32:
	add	x9, x9, l_switch.table.si_dpm_init_microcode@PAGEOFF
	ldr	x3, [x9, w8, sxtw #3]
	b	LBB0_30
LBB0_29:
Lloh33:
	adrp	x3, l_.str.10@PAGE
Lloh34:
	add	x3, x3, l_.str.10@PAGEOFF
LBB0_30:
Lloh35:
	adrp	x2, l_.str.11@PAGE
Lloh36:
	add	x2, x2, l_.str.11@PAGEOFF
	add	x0, sp, #10
	mov	w1, #30
	bl	_snprintf
	add	x20, x19, #8
	ldr	w2, [x19, #16]
	add	x1, sp, #10
	mov	x0, x20
	bl	_request_firmware
	mov	x19, x0
	cbnz	w0, LBB0_32
; %bb.31:
	ldr	x0, [x20]
	bl	_amdgpu_ucode_validate
	mov	x19, x0
	cbz	w0, LBB0_33
LBB0_32:
Lloh37:
	adrp	x0, l_.str.12@PAGE
Lloh38:
	add	x0, x0, l_.str.12@PAGEOFF
	add	x2, sp, #10
	mov	x1, x19
	bl	_DRM_ERROR
	ldr	x0, [x20]
	bl	_release_firmware
	str	xzr, [x20]
LBB0_33:
	ldur	x8, [x29, #-24]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_35:
	bl	___stack_chk_fail
LBB0_36:
	bl	_BUG
	brk	#0x1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- 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_k"

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"oland_k"

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

l_.str.8:                               ; @.str.8
	.asciz	"hainan_k"

l_.str.9:                               ; @.str.9
	.asciz	"banks_k_2"

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

l_.str.11:                              ; @.str.11
	.asciz	"amdgpu/%s_smc.bin"

l_.str.12:                              ; @.str.12
	.asciz	"si_smc: Failed to load firmware. err = %d\"%s\"\n"

	.no_dead_strip	_si_dpm_init_microcode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.si_dpm_init_microcode
l_switch.table.si_dpm_init_microcode:
	.quad	l_.str.8
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.8
	.quad	l_.str.10
	.quad	l_.str.8
	.quad	l_.str.10
	.quad	l_.str.8

.subsections_via_symbols
