	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_fifo_playlist_update      ## -- Begin function nv50_fifo_playlist_update
	.p2align	4, 0x90
_nv50_fifo_playlist_update:             ## @nv50_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_nouveau_bar
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	movq	%rax, (%r12)
	movl	8(%r12), %ebx
	xorl	%r13d, %r13d
	cmpl	12(%r12), %ebx
	jge	LBB0_5
## %bb.1:
	leal	9728(,%rbx,4), %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	addl	$4, %r14d
	cmpl	12(%r12), %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_nv_rd32
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r13), %r15d
	shll	$2, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_nv_wo32
	movl	%r15d, %r13d
	jmp	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	sarl	$12, %edx
	movq	%r12, %rdi
	movl	$13044, %esi                    ## imm = 0x32F4
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$13036, %esi                    ## imm = 0x32EC
	movl	%r13d, %edx
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$9472, %esi                     ## imm = 0x2500
	movl	$257, %edx                      ## imm = 0x101
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_fifo_playlist_update      ; -- Begin function nv50_fifo_playlist_update
	.p2align	2
_nv50_fifo_playlist_update:             ; @nv50_fifo_playlist_update
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_nouveau_bar
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	x21, [x8, x9, lsl #3]
	cmp	x9, #0
	cset	w8, eq
	str	x8, [x19]
	ldp	w23, w8, [x19, #8]
	cmp	w23, w8
	b.ge	LBB0_5
; %bb.1:
	mov	w22, #0
	mov	w8, #9728
	add	w24, w8, w23, lsl #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldr	w8, [x19, #12]
	add	w24, w24, #4
	cmp	w23, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_nv_rd32
	tbz	w0, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w22, #1
	lsl	w1, w22, #2
	mov	x0, x21
	mov	x2, x23
	bl	_nv_wo32
	mov	x22, x25
	b	LBB0_2
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	x8, [x20]
	mov	x0, x20
	blr	x8
	ldr	w8, [x21]
	asr	w2, w8, #12
	mov	x0, x19
	mov	w1, #13044
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #13036
	mov	x2, x22
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #9472
	mov	w2, #257
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nv_wr32
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
