	.file	"104826735.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n"
.LC1:
	.string	"tahiti"
.LC2:
	.string	"pitcairn_k"
.LC3:
	.string	"pitcairn"
.LC4:
	.string	"verde_k"
.LC5:
	.string	"verde"
.LC6:
	.string	"oland_k"
.LC7:
	.string	"oland"
.LC8:
	.string	"hainan_k"
.LC9:
	.string	"banks_k_2"
.LC10:
	.string	"hainan"
.LC11:
	.string	"amdgpu/%s_smc.bin"
	.align 8
.LC12:
	.string	"si_smc: Failed to load firmware. err = %d\"%s\"\n"
	.text
	.type	si_dpm_init_microcode, @function
si_dpm_init_microcode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, -128
	cmp	eax, 4
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L7:
	lea	rax, .LC1[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L6:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	jne	.L10
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26640
	je	.L11
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26641
	jne	.L10
.L11:
	lea	rax, .LC2[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L10:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26656
	jne	.L13
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	je	.L14
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 131
	je	.L14
.L13:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26657
	jne	.L15
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 131
	je	.L14
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 135
	je	.L14
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 135
	jne	.L16
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26659
	je	.L14
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26667
	jne	.L16
.L14:
	lea	rax, .LC4[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L16:
	lea	rax, .LC5[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L5:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	jne	.L18
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26112
	je	.L19
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26116
	je	.L19
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26117
	je	.L19
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26128
	je	.L19
.L18:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 131
	jne	.L20
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26128
	jne	.L20
.L19:
	lea	rax, .LC6[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L20:
	lea	rax, .LC7[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L3:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	jne	.L22
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26208
	je	.L23
.L22:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 131
	jne	.L24
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26208
	je	.L23
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26211
	je	.L23
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26213
	je	.L23
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26215
	jne	.L24
.L23:
	lea	rax, .LC8[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 195
	jne	.L26
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 26213
	jne	.L26
	lea	rax, .LC9[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L25
.L26:
	lea	rax, .LC10[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L25:
	jmp	.L9
.L2:
	mov	eax, 0
	call	BUG@PLT
.L9:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, .LC11[rip]
	mov	esi, 30
	mov	rdi, rax
	call	snprintf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, 8[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	request_firmware@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	amdgpu_ucode_validate@PLT
	mov	DWORD PTR -60[rbp], eax
	jmp	.L28
.L32:
	nop
.L28:
	cmp	DWORD PTR -60[rbp], 0
	je	.L29
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	call	DRM_ERROR@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	release_firmware@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 8[rax], 0
.L29:
	mov	eax, DWORD PTR -60[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	si_dpm_init_microcode, .-si_dpm_init_microcode
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"104826735.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"tahiti\000"
	.align	2
.LC2:
	.ascii	"pitcairn_k\000"
	.align	2
.LC3:
	.ascii	"pitcairn\000"
	.align	2
.LC4:
	.ascii	"verde_k\000"
	.align	2
.LC5:
	.ascii	"verde\000"
	.align	2
.LC6:
	.ascii	"oland_k\000"
	.align	2
.LC7:
	.ascii	"oland\000"
	.align	2
.LC8:
	.ascii	"hainan_k\000"
	.align	2
.LC9:
	.ascii	"banks_k_2\000"
	.align	2
.LC10:
	.ascii	"hainan\000"
	.align	2
.LC11:
	.ascii	"amdgpu/%s_smc.bin\000"
	.align	2
.LC12:
	.ascii	"si_smc: Failed to load firmware. err = %d\"%s\"\012"
	.ascii	"\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_dpm_init_microcode, %function
si_dpm_init_microcode:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L33+4
	bl	DRM_DEBUG
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	ldr	r3, .L33+8
	str	r3, [fp, #-48]
	b	.L9
.L6:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #129
	bne	.L10
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+12
	cmp	r3, r2
	beq	.L11
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+16
	cmp	r3, r2
	bne	.L10
.L11:
	ldr	r3, .L33+20
	str	r3, [fp, #-48]
	b	.L9
.L10:
	ldr	r3, .L33+24
	str	r3, [fp, #-48]
	b	.L9
.L8:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+28
	cmp	r3, r2
	bne	.L13
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #129
	beq	.L14
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #131
	beq	.L14
.L13:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+32
	cmp	r3, r2
	bne	.L15
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #131
	beq	.L14
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #135
	beq	.L14
.L15:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #135
	bne	.L16
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+36
	cmp	r3, r2
	beq	.L14
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+40
	cmp	r3, r2
	bne	.L16
.L14:
	ldr	r3, .L33+44
	str	r3, [fp, #-48]
	b	.L9
.L16:
	ldr	r3, .L33+48
	str	r3, [fp, #-48]
	b	.L9
.L5:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #129
	bne	.L18
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	cmp	r3, #26112
	beq	.L19
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+52
	cmp	r3, r2
	beq	.L19
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+56
	cmp	r3, r2
	beq	.L19
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+60
	cmp	r3, r2
	beq	.L19
.L18:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #131
	bne	.L20
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+60
	cmp	r3, r2
	bne	.L20
.L19:
	ldr	r3, .L33+64
	str	r3, [fp, #-48]
	b	.L9
.L20:
	ldr	r3, .L33+68
	str	r3, [fp, #-48]
	b	.L9
.L3:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #129
	bne	.L22
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+72
	cmp	r3, r2
	beq	.L23
.L22:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #131
	bne	.L24
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+72
	cmp	r3, r2
	beq	.L23
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+76
	cmp	r3, r2
	beq	.L23
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+80
	cmp	r3, r2
	beq	.L23
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+84
	cmp	r3, r2
	bne	.L24
.L23:
	ldr	r3, .L33+88
	str	r3, [fp, #-48]
	b	.L25
.L24:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #195
	bne	.L26
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+80
	cmp	r3, r2
	bne	.L26
	ldr	r3, .L33+92
	str	r3, [fp, #-48]
	b	.L25
.L26:
	ldr	r3, .L33+96
	str	r3, [fp, #-48]
	b	.L9
.L25:
	b	.L9
.L2:
	bl	BUG
.L9:
	sub	r0, fp, #40
	ldr	r3, [fp, #-48]
	ldr	r2, .L33+100
	mov	r1, #30
	bl	snprintf
	ldr	r3, [fp, #-56]
	add	r0, r3, #4
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #8]
	sub	r3, fp, #40
	mov	r1, r3
	bl	request_firmware
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	amdgpu_ucode_validate
	str	r0, [fp, #-44]
	b	.L28
.L32:
	nop
.L28:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, .L33+104
	bl	DRM_ERROR
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	release_firmware
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3, #4]
.L29:
	ldr	r3, [fp, #-44]
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	26640
	.word	26641
	.word	.LC2
	.word	.LC3
	.word	26656
	.word	26657
	.word	26659
	.word	26667
	.word	.LC4
	.word	.LC5
	.word	26116
	.word	26117
	.word	26128
	.word	.LC6
	.word	.LC7
	.word	26208
	.word	26211
	.word	26213
	.word	26215
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	si_dpm_init_microcode, .-si_dpm_init_microcode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
