	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv84_fifo_chan_ctor_ind
_nv84_fifo_chan_ctor_ind:               ## @nv84_fifo_chan_ctor_ind
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_nouveau_bar
	cmpl	$11, %r15d
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %r10d
	movq	_NVDEV_ENGINE_DMAOBJ@GOTPCREL(%rip), %rax
	movb	(%rax), %dl
	movq	_NVDEV_ENGINE_SW@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	btsq	%rdx, %rax
	movq	_NVDEV_ENGINE_GR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_MPEG@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_ME@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_VP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_CRYPT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_BSP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_PPP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_COPY0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVDEV_ENGINE_UNK1C1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	subq	$8, %rsp
	leaq	-48(%rbp), %r11
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	$12582912, %r8d                 ## imm = 0xC00000
	movl	$8192, %r9d                     ## imm = 0x2000
	pushq	%r11
	pushq	%rax
	pushq	%r10
	callq	_nouveau_fifo_channel_create
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_object
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.3:
	movq	-48(%rbp), %r8
	movq	%r13, %rdi
	movq	%r13, %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$16, %ecx
	callq	_nouveau_ramht_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_nv84_fifo_context_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_parent
	movl	%ebx, 12(%rax)
	movq	_nv84_fifo_context_detach@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_parent
	movl	%ebx, 8(%rax)
	movq	_nv84_fifo_object_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_parent
	movl	%ebx, 4(%rax)
	movq	_nv50_fifo_object_detach@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_parent
	movl	%ebx, (%rax)
	movl	(%r12), %r14d
	movl	4(%r12), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	callq	_log2i
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	$60, %esi
	movl	$1077895288, %edx               ## imm = 0x403F6078
	callq	_nv_wo32
	movl	(%r13), %edi
	movl	$68, %esi
	movl	$16793599, %edx                 ## imm = 0x1003FFF
	callq	_nv_wo32
	movl	(%r13), %edi
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	sarl	$4, %edx
	movl	$72, %esi
	callq	_nv_wo32
	movl	(%r13), %r15d
	movl	%r14d, %edi
	callq	_lower_32_bits
	movl	%r15d, %edi
	movl	$80, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movl	(%r13), %r15d
	movl	%r14d, %edi
	callq	_upper_32_bits
	shll	$16, %ebx
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	$84, %esi
	movl	%ebx, %edx
	callq	_nv_wo32
	movl	(%r13), %edi
	movl	$96, %esi
	movl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	callq	_nv_wo32
	movl	(%r13), %edi
	xorl	%ebx, %ebx
	movl	$120, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movl	(%r13), %edi
	movl	$124, %esi
	movl	$805306369, %edx                ## imm = 0x30000001
	callq	_nv_wo32
	movl	(%r13), %edi
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	shll	$27, %ecx
	addl	$-1207959552, %ecx              ## imm = 0xB8000000
	movq	8(%rax), %rax
	movl	(%rax), %edx
	sarl	$4, %edx
	orl	%ecx, %edx
	orl	$67108864, %edx                 ## imm = 0x4000000
	movl	$128, %esi
	callq	_nv_wo32
	movl	(%r13), %edi
	movq	8(%r13), %rax
	movl	(%rax), %edx
	sarl	$10, %edx
	movl	$136, %esi
	callq	_nv_wo32
	movl	(%r13), %r14d
	movq	%r13, %rdi
	callq	_nv_gpuobj
	movl	(%rax), %edx
	sarl	$12, %edx
	movl	%r14d, %edi
	movl	$152, %esi
	callq	_nv_wo32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NVDEV_ENGINE_DMAOBJ,8,3        ## @NVDEV_ENGINE_DMAOBJ
	.comm	_NVDEV_ENGINE_SW,8,3            ## @NVDEV_ENGINE_SW
	.comm	_NVDEV_ENGINE_GR,8,3            ## @NVDEV_ENGINE_GR
	.comm	_NVDEV_ENGINE_MPEG,8,3          ## @NVDEV_ENGINE_MPEG
	.comm	_NVDEV_ENGINE_ME,8,3            ## @NVDEV_ENGINE_ME
	.comm	_NVDEV_ENGINE_VP,8,3            ## @NVDEV_ENGINE_VP
	.comm	_NVDEV_ENGINE_CRYPT,8,3         ## @NVDEV_ENGINE_CRYPT
	.comm	_NVDEV_ENGINE_BSP,8,3           ## @NVDEV_ENGINE_BSP
	.comm	_NVDEV_ENGINE_PPP,8,3           ## @NVDEV_ENGINE_PPP
	.comm	_NVDEV_ENGINE_COPY0,8,3         ## @NVDEV_ENGINE_COPY0
	.comm	_NVDEV_ENGINE_UNK1C1,8,3        ## @NVDEV_ENGINE_UNK1C1
	.comm	_nv84_fifo_context_attach,4,2   ## @nv84_fifo_context_attach
	.comm	_nv84_fifo_context_detach,4,2   ## @nv84_fifo_context_detach
	.comm	_nv84_fifo_object_attach,4,2    ## @nv84_fifo_object_attach
	.comm	_nv50_fifo_object_detach,4,2    ## @nv50_fifo_object_detach
	.no_dead_strip	_nv84_fifo_chan_ctor_ind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv84_fifo_chan_ctor_ind
_nv84_fifo_chan_ctor_ind:               ; @nv84_fifo_chan_ctor_ind
	.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	x22, x5
	mov	x25, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	bl	_nouveau_bar
	cmp	w25, #11
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_5
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x8, _NVDEV_ENGINE_DMAOBJ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVDEV_ENGINE_DMAOBJ@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
Lloh6:
	adrp	x10, _NVDEV_ENGINE_SW@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NVDEV_ENGINE_SW@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x10, x8
Lloh9:
	adrp	x10, _NVDEV_ENGINE_GR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NVDEV_ENGINE_GR@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh12:
	adrp	x10, _NVDEV_ENGINE_MPEG@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NVDEV_ENGINE_MPEG@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh15:
	adrp	x10, _NVDEV_ENGINE_ME@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NVDEV_ENGINE_ME@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	lsl	x10, x9, x10
Lloh18:
	adrp	x11, _NVDEV_ENGINE_VP@GOTPAGE
Lloh19:
	ldr	x11, [x11, _NVDEV_ENGINE_VP@GOTPAGEOFF]
	orr	x8, x8, x10
Lloh20:
	ldr	x10, [x11]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh21:
	adrp	x10, _NVDEV_ENGINE_CRYPT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _NVDEV_ENGINE_CRYPT@GOTPAGEOFF]
	ldr	w6, [x21, #8]
Lloh23:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh24:
	adrp	x10, _NVDEV_ENGINE_BSP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _NVDEV_ENGINE_BSP@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh27:
	adrp	x10, _NVDEV_ENGINE_PPP@GOTPAGE
Lloh28:
	ldr	x10, [x10, _NVDEV_ENGINE_PPP@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh30:
	adrp	x10, _NVDEV_ENGINE_COPY0@GOTPAGE
Lloh31:
	ldr	x10, [x10, _NVDEV_ENGINE_COPY0@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh33:
	adrp	x10, _NVDEV_ENGINE_UNK1C1@GOTPAGE
Lloh34:
	ldr	x10, [x10, _NVDEV_ENGINE_UNK1C1@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x7, x8, x9
	add	x8, sp, #8
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	w3, #0
	mov	w4, #12582912
	mov	w5, #8192
	bl	_nouveau_fifo_channel_create
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x22]
	cbnz	w23, LBB0_5
; %bb.3:
	ldr	x4, [sp, #8]
	mov	x0, x20
	mov	x1, x20
	mov	w2, #32768
	mov	w3, #16
	bl	_nouveau_ramht_new
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh36:
	adrp	x8, _nv84_fifo_context_attach@GOTPAGE
Lloh37:
	ldr	x8, [x8, _nv84_fifo_context_attach@GOTPAGEOFF]
Lloh38:
	ldr	w22, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_parent
	str	w22, [x0, #12]
Lloh39:
	adrp	x8, _nv84_fifo_context_detach@GOTPAGE
Lloh40:
	ldr	x8, [x8, _nv84_fifo_context_detach@GOTPAGEOFF]
Lloh41:
	ldr	w22, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_parent
	str	w22, [x0, #8]
Lloh42:
	adrp	x8, _nv84_fifo_object_attach@GOTPAGE
Lloh43:
	ldr	x8, [x8, _nv84_fifo_object_attach@GOTPAGEOFF]
Lloh44:
	ldr	w22, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_parent
	str	w22, [x0, #4]
Lloh45:
	adrp	x8, _nv50_fifo_object_detach@GOTPAGE
Lloh46:
	ldr	x8, [x8, _nv50_fifo_object_detach@GOTPAGEOFF]
Lloh47:
	ldr	w22, [x8]
	ldr	x0, [sp, #8]
	bl	_nv_parent
	str	w22, [x0]
	ldp	w22, w8, [x21]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	bl	_log2i
	mov	x21, x0
	ldr	w0, [x20]
	mov	w1, #60
	mov	w2, #24696
	movk	w2, #16447, lsl #16
	bl	_nv_wo32
	ldr	w0, [x20]
	mov	w1, #68
	mov	w2, #16383
	movk	w2, #256, lsl #16
	bl	_nv_wo32
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	asr	w2, w8, #4
	mov	w1, #72
	bl	_nv_wo32
	ldr	w23, [x20]
	mov	x0, x22
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x23
	mov	w1, #80
	bl	_nv_wo32
	ldr	w23, [x20]
	mov	x0, x22
	bl	_upper_32_bits
	orr	w2, w0, w21, lsl #16
	mov	x0, x23
	mov	w1, #84
	bl	_nv_wo32
	ldr	w0, [x20]
	mov	w1, #96
	mov	w2, #2147483647
	bl	_nv_wo32
	ldr	w0, [x20]
	mov	w1, #120
	mov	w2, #0
	bl	_nv_wo32
	ldr	w0, [x20]
	mov	w1, #124
	mov	w2, #1
	movk	w2, #12288, lsl #16
	bl	_nv_wo32
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	mov	w10, #-1207959552
	add	w9, w10, w9, lsl #27
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	orr	w8, w9, w8, asr #4
	orr	w2, w8, #0x4000000
	mov	w1, #128
	bl	_nv_wo32
	ldr	w0, [x20]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	asr	w2, w8, #10
	mov	w1, #136
	bl	_nv_wo32
	ldr	w21, [x20]
	mov	x0, x20
	bl	_nv_gpuobj
	ldr	w8, [x0]
	asr	w2, w8, #12
	mov	x0, x21
	mov	w1, #152
	bl	_nv_wo32
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	mov	w23, #0
LBB0_5:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NVDEV_ENGINE_DMAOBJ,8,3        ; @NVDEV_ENGINE_DMAOBJ
	.comm	_NVDEV_ENGINE_SW,8,3            ; @NVDEV_ENGINE_SW
	.comm	_NVDEV_ENGINE_GR,8,3            ; @NVDEV_ENGINE_GR
	.comm	_NVDEV_ENGINE_MPEG,8,3          ; @NVDEV_ENGINE_MPEG
	.comm	_NVDEV_ENGINE_ME,8,3            ; @NVDEV_ENGINE_ME
	.comm	_NVDEV_ENGINE_VP,8,3            ; @NVDEV_ENGINE_VP
	.comm	_NVDEV_ENGINE_CRYPT,8,3         ; @NVDEV_ENGINE_CRYPT
	.comm	_NVDEV_ENGINE_BSP,8,3           ; @NVDEV_ENGINE_BSP
	.comm	_NVDEV_ENGINE_PPP,8,3           ; @NVDEV_ENGINE_PPP
	.comm	_NVDEV_ENGINE_COPY0,8,3         ; @NVDEV_ENGINE_COPY0
	.comm	_NVDEV_ENGINE_UNK1C1,8,3        ; @NVDEV_ENGINE_UNK1C1
	.comm	_nv84_fifo_context_attach,4,2   ; @nv84_fifo_context_attach
	.comm	_nv84_fifo_context_detach,4,2   ; @nv84_fifo_context_detach
	.comm	_nv84_fifo_object_attach,4,2    ; @nv84_fifo_object_attach
	.comm	_nv50_fifo_object_detach,4,2    ; @nv50_fifo_object_detach
	.no_dead_strip	_nv84_fifo_chan_ctor_ind
.subsections_via_symbols
