	.file	"extr_nvc0.c_nvc0_fifo_playlist_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"playlist update failed\n"
	.text
	.p2align 4
	.type	nvc0_fifo_playlist_update, @function
nvc0_fifo_playlist_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nouveau_bar@PLT
	mov	rdx, QWORD PTR 8[r12]
	mov	r14, rax
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	mov	r13, QWORD PTR [rdx+rax*8]
	sete	al
	xor	ebp, ebp
	xor	ebx, ebx
	movzx	eax, al
	mov	QWORD PTR [r12], rax
	.p2align 4,,10
	.p2align 3
.L3:
	lea	esi, 12292[0+rbx*8]
	mov	rdi, r12
	call	nv_rd32@PLT
	test	al, 1
	je	.L2
	mov	esi, ebp
	mov	edx, ebx
	mov	rdi, r13
	call	nv_wo32@PLT
	lea	esi, 4[rbp]
	mov	edx, 4
	mov	rdi, r13
	call	nv_wo32@PLT
	add	ebp, 8
.L2:
	add	ebx, 1
	cmp	ebx, 128
	jne	.L3
	mov	rdi, r14
	call	[QWORD PTR [r14]]
	mov	edx, DWORD PTR 0[r13]
	mov	esi, 8816
	mov	rdi, r12
	sar	edx, 12
	call	nv_wr32@PLT
	mov	edx, ebp
	mov	esi, 8820
	mov	rdi, r12
	sar	edx, 3
	or	edx, 32505856
	call	nv_wr32@PLT
	xor	ecx, ecx
	mov	edx, 1048576
	mov	rdi, r12
	mov	esi, 8828
	call	nv_wait@PLT
	test	eax, eax
	je	.L11
	pop	rbx
	.cfi_remember_state
	.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
.L11:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	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
	jmp	nv_error@PLT
	.cfi_endproc
.LFE0:
	.size	nvc0_fifo_playlist_update, .-nvc0_fifo_playlist_update
	.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_nvc0.c_nvc0_fifo_playlist_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"playlist update failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvc0_fifo_playlist_update, %function
nvc0_fifo_playlist_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, #0
	bl	nouveau_bar
	ldr	r2, [r6]
	mov	r8, r0
	clz	r3, r2
	mov	r4, r5
	ldr	r1, [r6, #4]
	lsr	r3, r3, #5
	ldr	r7, [r1, r2, lsl #2]
	str	r3, [r6]
.L3:
	lsl	r1, r4, #3
	add	r1, r1, #12288
	mov	r0, r6
	add	r1, r1, #4
	bl	nv_rd32
	tst	r0, #1
	beq	.L2
	mov	r1, r5
	mov	r2, r4
	mov	r0, r7
	bl	nv_wo32
	mov	r2, #4
	mov	r0, r7
	add	r1, r5, r2
	bl	nv_wo32
	add	r5, r5, #8
.L2:
	add	r4, r4, #1
	cmp	r4, #128
	bne	.L3
	ldr	r3, [r8]
	mov	r0, r8
	blx	r3
	ldr	r2, [r7]
	ldr	r1, .L11
	asr	r2, r2, #12
	mov	r0, r6
	bl	nv_wr32
	asr	r2, r5, #3
	ldr	r1, .L11+4
	orr	r2, r2, #32505856
	mov	r0, r6
	bl	nv_wr32
	mov	r3, #0
	mov	r2, #1048576
	mov	r0, r6
	ldr	r1, .L11+8
	bl	nv_wait
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L11+12
	b	nv_error
.L12:
	.align	2
.L11:
	.word	8816
	.word	8820
	.word	8828
	.word	.LC0
	.size	nvc0_fifo_playlist_update, .-nvc0_fifo_playlist_update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
