	.file	"extr_hwsq.c_nvkm_hwsq_fini.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hwsq exec failed: %d\n"
.LC1:
	.string	"hwsq ucode too large\n"
.LC2:
	.string	"\t%08x\n"
	.text
	.p2align 4
	.globl	nvkm_hwsq_fini
	.type	nvkm_hwsq_fini, @function
nvkm_hwsq_fini:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	test	rbp, rbp
	je	.L1
	mov	r12, QWORD PTR 16[rbp]
	mov	r14, rdi
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR [rax]
	mov	eax, DWORD PTR 0[rbp]
	lea	edx, 7[rax]
	add	eax, 4
	cmovns	edx, eax
	mov	rax, QWORD PTR [rdi]
	sar	edx, 2
	mov	DWORD PTR 0[rbp], edx
	cmp	edx, DWORD PTR [rax]
	jg	.L3
	test	esi, esi
	je	.L6
	mov	rsi, QWORD PTR 8[rbp]
	call	[QWORD PTR 8[rax]]
	mov	r15d, eax
	test	eax, eax
	jne	.L18
.L6:
	xor	r15d, r15d
.L5:
	mov	QWORD PTR [r14], 0
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	nvkm_error@PLT
	mov	eax, DWORD PTR ENOSPC[rip]
	mov	r15d, eax
	neg	r15d
	test	eax, eax
	je	.L6
.L7:
	xor	ebx, ebx
	lea	r13, .LC2[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, r13
	mov	rdi, r12
	mov	edx, DWORD PTR [rax+rbx*4]
	xor	eax, eax
	add	rbx, 1
	call	nvkm_error@PLT
.L8:
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	nvkm_error@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	nvkm_hwsq_fini, .-nvkm_hwsq_fini
	.comm	ENOSPC,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_hwsq.c_nvkm_hwsq_fini.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hwsq exec failed: %d\012\000"
	.align	2
.LC1:
	.ascii	"hwsq ucode too large\012\000"
	.align	2
.LC2:
	.ascii	"\011%08x\012\000"
	.text
	.align	2
	.global	nvkm_hwsq_fini
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvkm_hwsq_fini, %function
nvkm_hwsq_fini:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0]
	cmp	r5, #0
	moveq	r9, r5
	beq	.L1
	ldr	r3, [r5]
	ldr	r6, [r5, #8]
	adds	r2, r3, #4
	addmi	r2, r3, #7
	ldr	r3, [r6]
	mov	r8, r0
	ldr	r0, [r3]
	asr	r2, r2, #2
	ldr	r3, [r0]
	str	r2, [r5]
	ldr	ip, [r3]
	cmp	r2, ip
	bgt	.L3
	cmp	r1, #0
	beq	.L6
	ldr	r3, [r3, #4]
	ldr	r1, [r5, #4]
	blx	r3
	subs	r9, r0, #0
	bne	.L16
.L6:
	mov	r9, #0
.L5:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r8]
	bl	kfree
.L1:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r6
	ldr	r1, .L17
	bl	nvkm_error
	ldr	r3, .L17+4
	ldr	r9, [r3]
	cmp	r9, #0
	rsb	r9, r9, #0
	beq	.L6
.L7:
	mov	r4, #0
	ldr	r7, .L17+8
	b	.L8
.L9:
	ldr	r3, [r5, #4]
	mov	r1, r7
	ldr	r2, [r3, r4, lsl #2]
	mov	r0, r6
	add	r4, r4, #1
	bl	nvkm_error
.L8:
	ldr	r3, [r5]
	cmp	r3, r4
	bgt	.L9
	b	.L5
.L16:
	mov	r2, r9
	mov	r0, r6
	ldr	r1, .L17+12
	bl	nvkm_error
	b	.L7
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	ENOSPC
	.word	.LC2
	.word	.LC0
	.size	nvkm_hwsq_fini, .-nvkm_hwsq_fini
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
