	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk104_fifo_gpfifo_fini         ## -- Begin function gk104_fifo_gpfifo_fini
	.p2align	4, 0x90
_gk104_fifo_gpfifo_fini:                ## @gk104_fifo_gpfifo_fini
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_gk104_fifo_chan
	movq	%rax, %r12
	movq	16(%rax), %r15
	movq	(%r15), %r14
	movl	8(%rax), %ebx
	shll	$3, %ebx
	leaq	4(%rax), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gk104_fifo_runlist_remove
	leal	8388612(%rbx), %esi
	movq	%r14, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_nvkm_mask
	movq	%r12, %rdi
	callq	_gk104_fifo_gpfifo_kick
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_gk104_fifo_runlist_update
LBB0_2:
	addl	$8388608, %ebx                  ## imm = 0x800000
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_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	_gk104_fifo_gpfifo_fini         ; -- Begin function gk104_fifo_gpfifo_fini
	.p2align	2
_gk104_fifo_gpfifo_fini:                ; @gk104_fifo_gpfifo_fini
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_gk104_fifo_chan
	mov	x21, x0
	ldr	x20, [x0, #16]
	ldr	x19, [x20]
	ldr	w8, [x0, #8]
	lsl	w22, w8, #3
	add	x0, x0, #4
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_gk104_fifo_runlist_remove
	add	w8, w22, #2048, lsl #12         ; =8388608
	add	w1, w8, #4
	mov	x0, x19
	mov	w2, #2048
	mov	w3, #2048
	bl	_nvkm_mask
	mov	x0, x21
	bl	_gk104_fifo_gpfifo_kick
	ldr	w1, [x21]
	mov	x0, x20
	bl	_gk104_fifo_runlist_update
LBB0_2:
	add	w1, w22, #2048, lsl #12         ; =8388608
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nvkm_wr32
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
