	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_fifo_runlist_update_locked
_nv50_fifo_runlist_update_locked:       ## @nv50_fifo_runlist_update_locked
	.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
	movq	(%rdi), %rax
	movq	16(%rdi), %r15
	movq	24(%rdi), %rcx
	movq	(%rcx,%rax,8), %rdi
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	%rcx, (%r12)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_nvkm_kmap
	cmpl	$0, 8(%r12)
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movl	$9728, %ebx                     ## imm = 0x2600
	xorl	%r14d, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	addl	$4, %ebx
	cmpl	8(%r12), %r14d
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nvkm_rd32
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r12
	leal	1(%r13), %r15d
	shll	$2, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_nvkm_wo32
	movl	%r15d, %r13d
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nvkm_done
	movq	%rbx, %rdi
	callq	_nvkm_memory_addr
	sarl	$12, %eax
	movq	%r15, %rdi
	movl	$13044, %esi                    ## imm = 0x32F4
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$13036, %esi                    ## imm = 0x32EC
	movl	%r13d, %edx
	callq	_nvkm_wr32
	movq	%r15, %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	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_fifo_runlist_update_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_fifo_runlist_update_locked
_nv50_fifo_runlist_update_locked:       ; @nv50_fifo_runlist_update_locked
	.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	x21, x0
	ldp	x19, x8, [x0, #16]
	ldr	x9, [x0]
	ldr	x20, [x8, x9, lsl #3]
	cmp	x9, #0
	cset	w8, eq
	str	x8, [x0]
	mov	x0, x20
	bl	_nvkm_kmap
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w22, #0
	mov	w23, #0
	mov	w24, #9728
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldr	w8, [x21, #8]
	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	_nvkm_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, x20
	mov	x2, x23
	bl	_nvkm_wo32
	mov	x22, x25
	b	LBB0_2
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	x0, x20
	bl	_nvkm_done
	mov	x0, x20
	bl	_nvkm_memory_addr
	asr	w2, w0, #12
	mov	x0, x19
	mov	w1, #13044
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #13036
	mov	x2, x22
	bl	_nvkm_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	_nvkm_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_fifo_runlist_update_locked
.subsections_via_symbols
