	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_fifo_playlist_update
_nvc0_fifo_playlist_update:             ## @nvc0_fifo_playlist_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_nouveau_bar
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx,%rax,8), %r12
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	%rcx, (%r14)
	xorl	%r13d, %r13d
	movl	$12292, %ebx                    ## imm = 0x3004
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	addl	$8, %ebx
	cmpl	$13316, %ebx                    ## imm = 0x3404
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	testb	$1, %al
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_nv_wo32
	leal	4(%r13), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_nv_wo32
	addl	$8, %r13d
	jmp	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
	movl	(%r12), %edx
	sarl	$12, %edx
	movq	%r14, %rdi
	movl	$8816, %esi                     ## imm = 0x2270
	callq	_nv_wr32
	sarl	$3, %r13d
	orl	$32505856, %r13d                ## imm = 0x1F00000
	movq	%r14, %rdi
	movl	$8820, %esi                     ## imm = 0x2274
	movl	%r13d, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$8828, %esi                     ## imm = 0x227C
	movl	$1048576, %edx                  ## imm = 0x100000
	xorl	%ecx, %ecx
	callq	_nv_wait
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_error                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"playlist update failed\n"

	.no_dead_strip	_nvc0_fifo_playlist_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_fifo_playlist_update
_nvc0_fifo_playlist_update:             ; @nvc0_fifo_playlist_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_nouveau_bar
	mov	x21, x0
	mov	w20, #0
	mov	w23, #0
	ldp	x9, x8, [x19]
	ldr	x22, [x8, x9, lsl #3]
	cmp	x9, #0
	cset	w8, eq
	str	x8, [x19]
	mov	w24, #12292
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	add	w24, w24, #8
	cmp	w23, #128
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_nv_rd32
	tbz	w0, #0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_nv_wo32
	add	w1, w20, #4
	mov	x0, x22
	mov	w2, #4
	bl	_nv_wo32
	add	w20, w20, #8
	b	LBB0_1
LBB0_4:
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	ldr	w8, [x22]
	asr	w2, w8, #12
	mov	x0, x19
	mov	w1, #8816
	bl	_nv_wr32
	asr	w8, w20, #3
	orr	w2, w8, #0x1f00000
	mov	x0, x19
	mov	w1, #8820
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #8828
	mov	w2, #1048576
	mov	w3, #0
	bl	_nv_wait
	cbz	w0, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nv_error
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"playlist update failed\n"

	.no_dead_strip	_nvc0_fifo_playlist_update
.subsections_via_symbols
