	.file	"extr_psp_v10_0.c_psp_v10_0_init_microcode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"picasso"
.LC1:
	.string	"raven2"
.LC2:
	.string	"raven"
.LC3:
	.string	"\n"
.LC4:
	.string	"amdgpu/%s_asd.bin"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"psp v10.0: Failed to load firmware \"%s\"\n"
	.text
	.p2align 4
	.type	psp_v10_0_init_microcode, @function
psp_v10_0_init_microcode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR [rdi]
	lea	rdi, .LC3[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	DRM_DEBUG@PLT
	cmp	DWORD PTR [rbx], 128
	jne	.L2
	cmp	DWORD PTR 4[rbx], 7
	lea	r12, .LC1[rip]
	jle	.L11
.L3:
	mov	r13, rsp
	mov	rcx, r12
	mov	esi, 30
	lea	rdx, .LC4[rip]
	mov	rdi, r13
	call	snprintf@PLT
	mov	edx, DWORD PTR 40[rbx]
	lea	rdi, 24[rbx]
	mov	rsi, r13
	call	request_firmware@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L4:
	mov	edi, DWORD PTR 40[rbx]
	mov	rdx, r13
	lea	rsi, .LC5[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	release_firmware@PLT
	mov	QWORD PTR 24[rbx], 0
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 48[rbx]
	lea	r12, .LC0[rip]
	cmp	DWORD PTR [rax], 5592
	lea	rax, .LC2[rip]
	cmovne	r12, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	call	BUG@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 24[rbx]
	call	amdgpu_ucode_validate@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR 24[rbx]
	mov	r13, QWORD PTR [rax]
	mov	edi, DWORD PTR 8[r13]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 12[r13]
	mov	DWORD PTR 8[rbx], eax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	DWORD PTR 12[rbx], eax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	DWORD PTR 16[rbx], eax
	call	le32_to_cpu@PLT
	cdqe
	lea	rax, 0[r13+rax*4]
	mov	QWORD PTR 32[rbx], rax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	psp_v10_0_init_microcode, .-psp_v10_0_init_microcode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_psp_v10_0.c_psp_v10_0_init_microcode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"picasso\000"
	.align	2
.LC1:
	.ascii	"raven2\000"
	.align	2
.LC2:
	.ascii	"raven\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"amdgpu/%s_asd.bin\000"
	.align	2
.LC5:
	.ascii	"psp v10.0: Failed to load firmware \"%s\"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	psp_v10_0_init_microcode, %function
psp_v10_0_init_microcode:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	ldr	r4, [r0]
	sub	sp, sp, #40
	ldr	r0, .L13+4
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	DRM_DEBUG
	ldr	r3, [r4]
	cmp	r3, #128
	bne	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #7
	bgt	.L7
	ldr	r3, [r4, #32]
	ldr	r2, .L13+8
	ldr	r1, [r3]
	ldr	r3, .L13+12
	cmp	r1, r2
	ldr	r5, .L13+16
	movne	r5, r3
.L3:
	mov	r3, r5
	mov	r1, #30
	ldr	r2, .L13+20
	add	r0, sp, #4
	bl	snprintf
	ldr	r2, [r4, #28]
	add	r1, sp, #4
	add	r0, r4, #20
	bl	request_firmware
	subs	r5, r0, #0
	beq	.L11
.L4:
	ldr	r1, .L13+24
	add	r2, sp, #4
	ldr	r0, [r4, #28]
	bl	dev_err
	ldr	r0, [r4, #20]
	bl	release_firmware
	mov	r3, #0
	str	r3, [r4, #20]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r5, .L13+28
	b	.L3
.L2:
	bl	BUG
	b	.L3
.L11:
	ldr	r0, [r4, #20]
	bl	amdgpu_ucode_validate
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, [r4, #20]
	ldr	r6, [r3]
	ldr	r0, [r6, #8]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r6, #12]
	str	r3, [r4, #8]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r6, #4]
	str	r3, [r4, #12]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r6]
	str	r3, [r4, #16]
	bl	le32_to_cpu
	add	r6, r6, r0, lsl #2
	str	r6, [r4, #24]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC3
	.word	5592
	.word	.LC2
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC1
	.size	psp_v10_0_init_microcode, .-psp_v10_0_init_microcode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
