	.file	"extr_ls_ucode_gr.c_ls_ucode_img_load_gr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gr/%s_bl"
.LC1:
	.string	"gr/%s_inst"
.LC2:
	.string	"gr/%s_data"
.LC3:
	.string	"gr/%s_sig"
	.text
	.p2align 4
	.type	ls_ucode_img_load_gr, @function
ls_ucode_img_load_gr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 64
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	lea	rdx, .LC0[rip]
	sub	rsp, 112
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	lea	r14, 32[rsp]
	mov	rdi, r14
	call	snprintf@PLT
	mov	rdx, rsp
	mov	rsi, r14
	mov	rdi, rbp
	call	nvkm_firmware_get@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 112
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rcx, r13
	lea	rdx, .LC1[rip]
	mov	esi, 64
	mov	rdi, r14
	call	snprintf@PLT
	lea	rdx, 8[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	nvkm_firmware_get@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	rcx, r13
	lea	rdx, .LC2[rip]
	mov	esi, 64
	mov	rdi, r14
	call	snprintf@PLT
	lea	rdx, 16[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	nvkm_firmware_get@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	call	nvkm_firmware_put@PLT
.L3:
.L2:
	endbr64
	mov	rdi, QWORD PTR [rsp]
	call	nvkm_firmware_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rcx, r13
	lea	rdx, .LC3[rip]
	mov	esi, 64
	mov	rdi, r14
	call	snprintf@PLT
	lea	rdx, 24[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	nvkm_firmware_get@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	call	kmemdup@PLT
	mov	DWORD PTR 12[rbx], eax
	test	eax, eax
	jne	.L6
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L7:
	mov	rdi, QWORD PTR 24[rsp]
	call	nvkm_firmware_put@PLT
.L5:
	mov	rdi, QWORD PTR 16[rsp]
	call	nvkm_firmware_put@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	rcx, rbx
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 16[rbx], eax
	call	ls_ucode_img_build@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbx], eax
	jmp	.L7
.L16:
	mov	edi, DWORD PTR 12[rbx]
	call	kfree@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L7
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ls_ucode_img_load_gr, .-ls_ucode_img_load_gr
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.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_ls_ucode_gr.c_ls_ucode_img_load_gr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gr/%s_bl\000"
	.align	2
.LC1:
	.ascii	"gr/%s_inst\000"
	.align	2
.LC2:
	.ascii	"gr/%s_data\000"
	.align	2
.LC3:
	.ascii	"gr/%s_sig\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ls_ucode_img_load_gr, %function
ls_ucode_img_load_gr:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	sub	sp, sp, #92
	ldr	ip, .L16
	mov	r1, #64
	mov	r6, r2
	add	r0, sp, #20
	ldr	r2, .L16+4
	ldr	ip, [ip]
	str	ip, [sp, #84]
	mov	ip,#0
	mov	r7, r3
	bl	snprintf
	mov	r0, r5
	add	r1, sp, #20
	add	r2, sp, #4
	bl	nvkm_firmware_get
	subs	r4, r0, #0
	beq	.L12
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r3, r7
	mov	r1, #64
	ldr	r2, .L16+8
	add	r0, sp, #20
	bl	snprintf
	mov	r0, r5
	add	r2, sp, #8
	add	r1, sp, #20
	bl	nvkm_firmware_get
	subs	r4, r0, #0
	bne	.L3
	mov	r3, r7
	mov	r1, #64
	ldr	r2, .L16+12
	add	r0, sp, #20
	bl	snprintf
	mov	r0, r5
	add	r2, sp, #12
	add	r1, sp, #20
	bl	nvkm_firmware_get
	subs	r4, r0, #0
	beq	.L14
.L4:
	ldr	r0, [sp, #8]
	bl	nvkm_firmware_put
.L3:
.L2:
	ldr	r0, [sp, #4]
	bl	nvkm_firmware_put
	b	.L1
.L14:
	mov	r3, r7
	mov	r1, #64
	ldr	r2, .L16+16
	add	r0, sp, #20
	bl	snprintf
	mov	r0, r5
	add	r1, sp, #20
	add	r2, sp, #16
	bl	nvkm_firmware_get
	subs	r4, r0, #0
	bne	.L5
	ldr	r3, [sp, #16]
	ldr	r2, .L16+20
	ldr	r1, [r3]
	ldr	r0, [r3, #4]
	ldr	r2, [r2]
	bl	kmemdup
	cmp	r0, #0
	str	r0, [r6, #12]
	bne	.L6
	ldr	r3, .L16+24
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L7:
	ldr	r0, [sp, #16]
	bl	nvkm_firmware_put
.L5:
	ldr	r0, [sp, #12]
	bl	nvkm_firmware_put
	b	.L4
.L6:
	ldr	r2, [sp, #16]
	mov	r3, r6
	ldr	r1, [r2]
	ldr	r2, [sp, #12]
	str	r1, [r6, #16]
	ldmib	sp, {r0, r1}
	bl	ls_ucode_img_build
	str	r0, [r6, #8]
	bl	IS_ERR
	subs	r4, r0, #0
	ldreq	r3, [r6]
	streq	r3, [r6, #4]
	beq	.L7
.L15:
	ldr	r0, [r6, #12]
	bl	kfree
	ldr	r0, [r6, #8]
	bl	PTR_ERR
	mov	r4, r0
	b	.L7
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	ls_ucode_img_load_gr, .-ls_ucode_img_load_gr
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
