	.file	"351265.c"
	.intel_syntax noprefix
	.text
	.globl	ARUBA_RLC_UCODE_SIZE
	.bss
	.align 4
	.type	ARUBA_RLC_UCODE_SIZE, @object
	.size	ARUBA_RLC_UCODE_SIZE, 4
ARUBA_RLC_UCODE_SIZE:
	.zero	4
	.globl	BARTS_SMC_UCODE_SIZE
	.align 4
	.type	BARTS_SMC_UCODE_SIZE, @object
	.size	BARTS_SMC_UCODE_SIZE, 4
BARTS_SMC_UCODE_SIZE:
	.zero	4
	.globl	BTC_MC_UCODE_SIZE
	.align 4
	.type	BTC_MC_UCODE_SIZE, @object
	.size	BTC_MC_UCODE_SIZE, 4
BTC_MC_UCODE_SIZE:
	.zero	4
	.globl	CAICOS_SMC_UCODE_SIZE
	.align 4
	.type	CAICOS_SMC_UCODE_SIZE, @object
	.size	CAICOS_SMC_UCODE_SIZE, 4
CAICOS_SMC_UCODE_SIZE:
	.zero	4
	.globl	CAYMAN_MC_UCODE_SIZE
	.align 4
	.type	CAYMAN_MC_UCODE_SIZE, @object
	.size	CAYMAN_MC_UCODE_SIZE, 4
CAYMAN_MC_UCODE_SIZE:
	.zero	4
	.globl	CAYMAN_PFP_UCODE_SIZE
	.align 4
	.type	CAYMAN_PFP_UCODE_SIZE, @object
	.size	CAYMAN_PFP_UCODE_SIZE, 4
CAYMAN_PFP_UCODE_SIZE:
	.zero	4
	.globl	CAYMAN_PM4_UCODE_SIZE
	.align 4
	.type	CAYMAN_PM4_UCODE_SIZE, @object
	.size	CAYMAN_PM4_UCODE_SIZE, 4
CAYMAN_PM4_UCODE_SIZE:
	.zero	4
	.globl	CAYMAN_RLC_UCODE_SIZE
	.align 4
	.type	CAYMAN_RLC_UCODE_SIZE, @object
	.size	CAYMAN_RLC_UCODE_SIZE, 4
CAYMAN_RLC_UCODE_SIZE:
	.zero	4
	.globl	CAYMAN_SMC_UCODE_SIZE
	.align 4
	.type	CAYMAN_SMC_UCODE_SIZE, @object
	.size	CAYMAN_SMC_UCODE_SIZE, 4
CAYMAN_SMC_UCODE_SIZE:
	.zero	4
	.globl	EINVAL
	.align 4
	.type	EINVAL, @object
	.size	EINVAL, 4
EINVAL:
	.zero	4
	.globl	EVERGREEN_PFP_UCODE_SIZE
	.align 4
	.type	EVERGREEN_PFP_UCODE_SIZE, @object
	.size	EVERGREEN_PFP_UCODE_SIZE, 4
EVERGREEN_PFP_UCODE_SIZE:
	.zero	4
	.globl	EVERGREEN_PM4_UCODE_SIZE
	.align 4
	.type	EVERGREEN_PM4_UCODE_SIZE, @object
	.size	EVERGREEN_PM4_UCODE_SIZE, 4
EVERGREEN_PM4_UCODE_SIZE:
	.zero	4
	.globl	EVERGREEN_RLC_UCODE_SIZE
	.align 4
	.type	EVERGREEN_RLC_UCODE_SIZE, @object
	.size	EVERGREEN_RLC_UCODE_SIZE, 4
EVERGREEN_RLC_UCODE_SIZE:
	.zero	4
	.globl	RADEON_IS_IGP
	.align 4
	.type	RADEON_IS_IGP, @object
	.size	RADEON_IS_IGP, 4
RADEON_IS_IGP:
	.zero	4
	.globl	TURKS_SMC_UCODE_SIZE
	.align 4
	.type	TURKS_SMC_UCODE_SIZE, @object
	.size	TURKS_SMC_UCODE_SIZE, 4
TURKS_SMC_UCODE_SIZE:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\n"
.LC1:
	.string	"BARTS"
.LC2:
	.string	"BTC"
.LC3:
	.string	"TURKS"
.LC4:
	.string	"CAICOS"
.LC5:
	.string	"CAYMAN"
.LC6:
	.string	"ARUBA"
.LC7:
	.string	"Loading %s Microcode\n"
.LC8:
	.string	"radeon/%s_pfp.bin"
	.align 8
.LC9:
	.string	"ni_cp: Bogus length %zu in firmware \"%s\"\n"
.LC10:
	.string	"radeon/%s_me.bin"
.LC11:
	.string	"radeon/%s_rlc.bin"
	.align 8
.LC12:
	.string	"ni_rlc: Bogus length %zu in firmware \"%s\"\n"
.LC13:
	.string	"radeon/%s_mc.bin"
	.align 8
.LC14:
	.string	"ni_mc: Bogus length %zu in firmware \"%s\"\n"
.LC15:
	.string	"radeon/%s_smc.bin"
	.align 8
.LC16:
	.string	"smc: error loading firmware \"%s\"\n"
	.align 8
.LC17:
	.string	"ni_cp: Failed to load firmware \"%s\"\n"
	.text
	.globl	ni_init_microcode
	.type	ni_init_microcode, @function
ni_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
	add	rsp, -128
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG@PLT
	mov	rax, QWORD PTR -120[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
.L5:
	lea	rax, .LC1[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_PFP_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_PM4_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_RLC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR BTC_MC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR BARTS_SMC_UCODE_SIZE[rip]
	mov	esi, 4
	mov	edi, eax
	call	ALIGN@PLT
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L8:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_PFP_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_PM4_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_RLC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR BTC_MC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR TURKS_SMC_UCODE_SIZE[rip]
	mov	esi, 4
	mov	edi, eax
	call	ALIGN@PLT
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L6:
	lea	rax, .LC4[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_PFP_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_PM4_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR EVERGREEN_RLC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR BTC_MC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR CAICOS_SMC_UCODE_SIZE[rip]
	mov	esi, 4
	mov	edi, eax
	call	ALIGN@PLT
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L7:
	lea	rax, .LC5[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR CAYMAN_PFP_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR CAYMAN_PM4_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR CAYMAN_RLC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR CAYMAN_MC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR CAYMAN_SMC_UCODE_SIZE[rip]
	mov	esi, 4
	mov	edi, eax
	call	ALIGN@PLT
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L3:
	lea	rax, .LC6[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR CAYMAN_PFP_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR CAYMAN_PM4_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR ARUBA_RLC_UCODE_SIZE[rip]
	sal	eax, 2
	cdqe
	mov	QWORD PTR -72[rbp], rax
	mov	QWORD PTR -64[rbp], 0
	jmp	.L9
.L2:
	mov	eax, 0
	call	BUG@PLT
.L9:
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	DRM_INFO@PLT
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	mov	esi, 30
	mov	rdi, rax
	call	snprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, 32[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	request_firmware@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	jne	.L24
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -88[rbp], rax
	je	.L12
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR -108[rbp], eax
	jmp	.L11
.L12:
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, .LC10[rip]
	mov	esi, 30
	mov	rdi, rax
	call	snprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, 24[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	request_firmware@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	jne	.L25
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -80[rbp], rax
	je	.L14
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR -108[rbp], eax
.L14:
	mov	rdx, QWORD PTR -96[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 -120[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, 16[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	request_firmware@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -72[rbp], rax
	je	.L16
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR -108[rbp], eax
.L16:
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR RADEON_IS_IGP[rip]
	and	eax, edx
	test	eax, eax
	jne	.L17
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, .LC13[rip]
	mov	esi, 30
	mov	rdi, rax
	call	snprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, 8[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	request_firmware@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -64[rbp], rax
	je	.L17
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR -108[rbp], eax
.L17:
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 130
	jle	.L28
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	jg	.L28
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, .LC15[rip]
	mov	esi, 30
	mov	rdi, rax
	call	snprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, 40[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	request_firmware@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L19
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	pr_err@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	release_firmware@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L11
.L19:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -56[rbp], rax
	je	.L28
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR -108[rbp], eax
	jmp	.L11
.L24:
	nop
	jmp	.L11
.L25:
	nop
	jmp	.L11
.L26:
	nop
	jmp	.L11
.L27:
	nop
	jmp	.L11
.L28:
	nop
.L11:
	cmp	DWORD PTR -108[rbp], 0
	je	.L20
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	DWORD PTR -108[rbp], eax
	je	.L21
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	pr_err@PLT
.L21:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	release_firmware@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	release_firmware@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	release_firmware@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	release_firmware@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 8[rax], 0
.L20:
	mov	eax, DWORD PTR -108[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ni_init_microcode, .-ni_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	"351265.c"
	.text
	.comm	ARUBA_RLC_UCODE_SIZE,4,4
	.comm	BARTS_SMC_UCODE_SIZE,4,4
	.comm	BTC_MC_UCODE_SIZE,4,4
	.comm	CAICOS_SMC_UCODE_SIZE,4,4
	.comm	CAYMAN_MC_UCODE_SIZE,4,4
	.comm	CAYMAN_PFP_UCODE_SIZE,4,4
	.comm	CAYMAN_PM4_UCODE_SIZE,4,4
	.comm	CAYMAN_RLC_UCODE_SIZE,4,4
	.comm	CAYMAN_SMC_UCODE_SIZE,4,4
	.comm	EINVAL,4,4
	.comm	EVERGREEN_PFP_UCODE_SIZE,4,4
	.comm	EVERGREEN_PM4_UCODE_SIZE,4,4
	.comm	EVERGREEN_RLC_UCODE_SIZE,4,4
	.comm	RADEON_IS_IGP,4,4
	.comm	TURKS_SMC_UCODE_SIZE,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"BARTS\000"
	.align	2
.LC2:
	.ascii	"BTC\000"
	.align	2
.LC3:
	.ascii	"TURKS\000"
	.align	2
.LC4:
	.ascii	"CAICOS\000"
	.align	2
.LC5:
	.ascii	"CAYMAN\000"
	.align	2
.LC6:
	.ascii	"ARUBA\000"
	.align	2
.LC7:
	.ascii	"Loading %s Microcode\012\000"
	.align	2
.LC8:
	.ascii	"radeon/%s_pfp.bin\000"
	.align	2
.LC9:
	.ascii	"ni_cp: Bogus length %zu in firmware \"%s\"\012\000"
	.align	2
.LC10:
	.ascii	"radeon/%s_me.bin\000"
	.align	2
.LC11:
	.ascii	"radeon/%s_rlc.bin\000"
	.align	2
.LC12:
	.ascii	"ni_rlc: Bogus length %zu in firmware \"%s\"\012\000"
	.align	2
.LC13:
	.ascii	"radeon/%s_mc.bin\000"
	.align	2
.LC14:
	.ascii	"ni_mc: Bogus length %zu in firmware \"%s\"\012\000"
	.align	2
.LC15:
	.ascii	"radeon/%s_smc.bin\000"
	.align	2
.LC16:
	.ascii	"smc: error loading firmware \"%s\"\012\000"
	.align	2
.LC17:
	.ascii	"ni_cp: Failed to load firmware \"%s\"\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ni_init_microcode
	.syntax unified
	.arm
	.fpu softvfp
	.type	ni_init_microcode, %function
ni_init_microcode:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r0, .L29+4
	bl	DRM_DEBUG
	ldr	r3, [fp, #-80]
	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
.L5:
	ldr	r3, .L29+8
	str	r3, [fp, #-72]
	ldr	r3, .L29+12
	str	r3, [fp, #-68]
	ldr	r3, .L29+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	r3, .L29+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	r3, .L29+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	r3, .L29+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	ALIGN
	str	r0, [fp, #-48]
	b	.L9
.L8:
	ldr	r3, .L29+36
	str	r3, [fp, #-72]
	ldr	r3, .L29+12
	str	r3, [fp, #-68]
	ldr	r3, .L29+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	r3, .L29+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	r3, .L29+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	r3, .L29+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, .L29+40
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	ALIGN
	str	r0, [fp, #-48]
	b	.L9
.L6:
	ldr	r3, .L29+44
	str	r3, [fp, #-72]
	ldr	r3, .L29+12
	str	r3, [fp, #-68]
	ldr	r3, .L29+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	r3, .L29+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	r3, .L29+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	r3, .L29+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, .L29+48
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	ALIGN
	str	r0, [fp, #-48]
	b	.L9
.L7:
	ldr	r3, .L29+52
	str	r3, [fp, #-72]
	ldr	r3, .L29+52
	str	r3, [fp, #-68]
	ldr	r3, .L29+56
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	r3, .L29+64
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	r3, .L29+68
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, .L29+72
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	ALIGN
	str	r0, [fp, #-48]
	b	.L9
.L3:
	ldr	r3, .L29+76
	str	r3, [fp, #-72]
	ldr	r3, .L29+76
	str	r3, [fp, #-68]
	ldr	r3, .L29+56
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	r3, .L29+60
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	r3, .L29+80
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L9
.L2:
	bl	BUG
.L9:
	ldr	r1, [fp, #-72]
	ldr	r0, .L29+84
	bl	DRM_INFO
	sub	r0, fp, #40
	ldr	r3, [fp, #-72]
	ldr	r2, .L29+88
	mov	r1, #30
	bl	snprintf
	ldr	r3, [fp, #-80]
	add	r0, r3, #20
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #28]
	sub	r3, fp, #40
	mov	r1, r3
	bl	request_firmware
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L12
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #20]
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r1, r3
	ldr	r0, .L29+92
	bl	pr_err
	ldr	r3, .L29+96
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L12:
	sub	r0, fp, #40
	ldr	r3, [fp, #-72]
	ldr	r2, .L29+100
	mov	r1, #30
	bl	snprintf
	ldr	r3, [fp, #-80]
	add	r0, r3, #16
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #28]
	sub	r3, fp, #40
	mov	r1, r3
	bl	request_firmware
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	beq	.L14
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r1, r3
	ldr	r0, .L29+92
	bl	pr_err
	ldr	r3, .L29+96
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-44]
.L14:
	sub	r0, fp, #40
	ldr	r3, [fp, #-68]
	ldr	r2, .L29+104
	mov	r1, #30
	bl	snprintf
	ldr	r3, [fp, #-80]
	add	r0, r3, #12
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #28]
	sub	r3, fp, #40
	mov	r1, r3
	bl	request_firmware
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	beq	.L16
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r1, r3
	ldr	r0, .L29+108
	bl	pr_err
	ldr	r3, .L29+96
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-44]
.L16:
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #4]
	ldr	r3, .L29+112
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L17
	sub	r0, fp, #40
	ldr	r3, [fp, #-72]
	ldr	r2, .L29+116
	mov	r1, #30
	bl	snprintf
	ldr	r3, [fp, #-80]
	add	r0, r3, #8
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #28]
	sub	r3, fp, #40
	mov	r1, r3
	bl	request_firmware
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	beq	.L17
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r1, r3
	ldr	r0, .L29+120
	bl	pr_err
	ldr	r3, .L29+96
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-44]
.L17:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	cmp	r3, #130
	ble	.L28
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	cmp	r3, #129
	bgt	.L28
	sub	r0, fp, #40
	ldr	r3, [fp, #-72]
	ldr	r2, .L29+124
	mov	r1, #30
	bl	snprintf
	ldr	r3, [fp, #-80]
	add	r0, r3, #24
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #28]
	sub	r3, fp, #40
	mov	r1, r3
	bl	request_firmware
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L29+128
	bl	pr_err
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	release_firmware
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3, #24]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L19:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	beq	.L28
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r1, r3
	ldr	r0, .L29+120
	bl	pr_err
	ldr	r3, .L29+96
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L24:
	nop
	b	.L11
.L25:
	nop
	b	.L11
.L26:
	nop
	b	.L11
.L27:
	nop
	b	.L11
.L28:
	nop
.L11:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L29+96
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	beq	.L21
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L29+132
	bl	pr_err
.L21:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	release_firmware
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	release_firmware
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	release_firmware
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	release_firmware
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3, #8]
.L20:
	ldr	r3, [fp, #-44]
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	EVERGREEN_PFP_UCODE_SIZE
	.word	EVERGREEN_PM4_UCODE_SIZE
	.word	EVERGREEN_RLC_UCODE_SIZE
	.word	BTC_MC_UCODE_SIZE
	.word	BARTS_SMC_UCODE_SIZE
	.word	.LC3
	.word	TURKS_SMC_UCODE_SIZE
	.word	.LC4
	.word	CAICOS_SMC_UCODE_SIZE
	.word	.LC5
	.word	CAYMAN_PFP_UCODE_SIZE
	.word	CAYMAN_PM4_UCODE_SIZE
	.word	CAYMAN_RLC_UCODE_SIZE
	.word	CAYMAN_MC_UCODE_SIZE
	.word	CAYMAN_SMC_UCODE_SIZE
	.word	.LC6
	.word	ARUBA_RLC_UCODE_SIZE
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	EINVAL
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	RADEON_IS_IGP
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	ni_init_microcode, .-ni_init_microcode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
