	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_fifo_chan_init
_nvc0_fifo_chan_init:                   ## @nvc0_fifo_chan_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_nv_gpuobj
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_nouveau_fifo_channel_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leal	12288(,%r14,8), %esi
	movl	(%r15), %edx
	sarl	$12, %edx
	orl	$-1073741824, %edx              ## imm = 0xC0000000
	movq	%r14, %rdi
	callq	_nv_wr32
	leal	12292(,%r14,8), %esi
	movq	%r14, %rdi
	movl	$2031617, %edx                  ## imm = 0x1F0001
	callq	_nv_wr32
	movq	%r14, %rdi
	callq	_nvc0_fifo_playlist_update
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvc0_fifo_chan_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_fifo_chan_init
_nvc0_fifo_chan_init:                   ; @nvc0_fifo_chan_init
	.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
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_nv_gpuobj
	mov	x21, x0
	ldr	x19, [x20]
	mov	x0, x20
	bl	_nouveau_fifo_channel_init
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	lsl	w22, w19, #3
	add	w1, w22, #3, lsl #12            ; =12288
	ldr	w8, [x21]
	asr	w8, w8, #12
	orr	w2, w8, #0xc0000000
	mov	x0, x19
	bl	_nv_wr32
	mov	w8, #12292
	add	w1, w22, w8
	mov	x0, x19
	mov	w2, #1
	movk	w2, #31, lsl #16
	bl	_nv_wr32
	mov	x0, x19
	bl	_nvc0_fifo_playlist_update
LBB0_2:
	mov	x0, x20
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvc0_fifo_chan_init
.subsections_via_symbols
