	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nve0_fifo_playlist_update
_nve0_fifo_playlist_update:             ## @nve0_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	%rsi, %r13
	movq	%rdi, %r12
	callq	_nouveau_bar
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r15
	movq	%r13, %rbx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r14
	movq	(%r15,%rbx), %rax
	movq	8(%r15,%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_nv_object
	movl	(%rax), %edi
	leaq	-48(%rbp), %r9
	xorl	%esi, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	testl	%eax, %eax
	je	LBB0_3
## %bb.13:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_error
	jmp	LBB0_12
LBB0_1:
	movq	(%r14), %rax
	jmp	LBB0_4
LBB0_3:
	leaq	(%r15,%rbx), %rax
	addq	$8, %rax
	movq	-48(%rbp), %rcx
	movq	(%rax), %rdx
	movq	(%r14), %rax
	movq	%rcx, (%rdx,%rax,8)
LBB0_4:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	%rcx, (%r14)
	cmpl	$0, (%r12)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.6:
	movq	%r13, %r14
	shlq	$16, %r14
	orq	$1, %r14
	xorl	%ebx, %ebx
	movl	$8388612, %r15d                 ## imm = 0x800004
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	addl	$8, %r15d
	cmpl	(%r12), %ebx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	andl	$2031617, %eax                  ## imm = 0x1F0001
	cmpq	%rax, %r14
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_nv_wo32
	movq	-48(%rbp), %rdi
	leal	4(%r13), %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	addl	$8, %r13d
	jmp	LBB0_9
LBB0_5:
	xorl	%r13d, %r13d
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	sarl	$12, %eax
	movslq	%eax, %rdx
	movq	%r12, %rdi
	movl	$8816, %esi                     ## imm = 0x2270
	callq	_nv_wr32
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	shlq	$20, %rax
	sarl	$3, %r13d
	movslq	%r13d, %rdx
	orq	%rax, %rdx
	movq	%r12, %rdi
	movl	$8820, %esi                     ## imm = 0x2274
	callq	_nv_wr32
	leal	8836(,%rbx,4), %esi
	movq	%r12, %rdi
	movl	$1048576, %edx                  ## imm = 0x100000
	xorl	%ecx, %ecx
	callq	_nv_wait
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_nv_error
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"playlist alloc failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"playlist %d update timeout\n"

	.no_dead_strip	_nve0_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 nve0_fifo_playlist_update
_nve0_fifo_playlist_update:             ; @nve0_fifo_playlist_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	bl	_nouveau_bar
	mov	x21, x0
	ldr	x8, [x19, #8]
	add	x22, x8, x20, lsl #4
	mov	x23, x22
	ldr	x8, [x23, #8]!
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_nv_object
	ldr	w0, [x0]
	add	x5, sp, #8
	mov	x1, #0
	mov	w2, #32768
	mov	w3, #4096
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_3:
	ldr	x8, [x22]
	b	LBB0_5
LBB0_4:
	ldr	x9, [sp, #8]
	ldr	x10, [x23]
	ldr	x8, [x22]
	str	x9, [x10, x8, lsl #3]
LBB0_5:
	cmp	x8, #0
	cset	w8, eq
	str	x8, [x22]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w23, #0
	mov	w22, #0
	mov	w25, #1
	bfi	x25, x20, #16, #48
	mov	w24, #4
	movk	w24, #128, lsl #16
	mov	w26, #1
	movk	w26, #31, lsl #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w23, w23, #1
	ldr	w8, [x19]
	add	w24, w24, #8
	cmp	w23, w8
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_nv_rd32
	and	w8, w0, w26
	cmp	x25, x8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x22
	mov	x2, x23
	bl	_nv_wo32
	ldr	x0, [sp, #8]
	add	w1, w22, #4
	mov	w2, #0
	bl	_nv_wo32
	add	w22, w22, #8
	b	LBB0_7
LBB0_10:
	mov	w22, #0
LBB0_11:
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	sbfx	x2, x8, #12, #20
	mov	x0, x19
	mov	w1, #8816
	bl	_nv_wr32
	sbfx	x8, x22, #3, #29
	orr	x2, x8, x20, lsl #20
	mov	x0, x19
	mov	w1, #8820
	bl	_nv_wr32
	mov	w8, #8836
	add	w1, w8, w20, lsl #2
	mov	x0, x19
	mov	w2, #1048576
	mov	w3, #0
	bl	_nv_wait
	cbnz	w0, LBB0_14
; %bb.12:
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_nv_error
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"playlist alloc failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"playlist %d update timeout\n"

	.no_dead_strip	_nve0_fifo_playlist_update
.subsections_via_symbols
