	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g84_fifo_chan_ctor             ## -- Begin function g84_fifo_chan_ctor
	.p2align	4, 0x90
_g84_fifo_chan_ctor:                    ## @g84_fifo_chan_ctor
	.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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%r8, %r15
	movq	%rcx, %r11
	movl	%edx, %r10d
	movl	%esi, %r9d
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	_NVKM_ENGINE_CE0@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	movq	_NVKM_ENGINE_BSP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_CIPHER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_DMAOBJ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_GR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_ME@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_MPEG@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_MSPDEC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_MSPPP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_MSVLD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_SEC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_SW@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_VIC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_NVKM_ENGINE_VP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	leaq	4(%r8), %rbx
	subq	$8, %rsp
	movq	_g84_fifo_chan_func@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movl	$65536, %edx                    ## imm = 0x10000
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	pushq	%rbx
	pushq	%r11
	pushq	$8192                           ## imm = 0x2000
	pushq	$12582912                       ## imm = 0xC00000
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_nvkm_fifo_chan_ctor
	addq	$64, %rsp
	movq	%r12, 24(%r15)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	4(%r15), %r8d
	leaq	20(%r15), %r9
	movq	%r14, %rdi
	movl	$512, %esi                      ## imm = 0x200
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_nvkm_gpuobj_new
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	4(%r15), %r8d
	leaq	16(%r15), %r9
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_gpuobj_new
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	4(%r15), %r8d
	leaq	12(%r15), %r9
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	$1024, %edx                     ## imm = 0x400
	movl	$1, %ecx
	callq	_nvkm_gpuobj_new
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	4(%r15), %r8d
	leaq	8(%r15), %r9
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movl	$256, %edx                      ## imm = 0x100
	movl	$1, %ecx
	callq	_nvkm_gpuobj_new
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movl	4(%r15), %ecx
	movq	%r14, %rdi
	movl	$32768, %esi                    ## imm = 0x8000
	movl	$16, %edx
	movq	%r15, %r8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_ramht_new                 ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_g84_fifo_chan_func,4,2         ## @g84_fifo_chan_func
	.comm	_NVKM_ENGINE_BSP,8,3            ## @NVKM_ENGINE_BSP
	.comm	_NVKM_ENGINE_CE0,8,3            ## @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CIPHER,8,3         ## @NVKM_ENGINE_CIPHER
	.comm	_NVKM_ENGINE_DMAOBJ,8,3         ## @NVKM_ENGINE_DMAOBJ
	.comm	_NVKM_ENGINE_GR,8,3             ## @NVKM_ENGINE_GR
	.comm	_NVKM_ENGINE_ME,8,3             ## @NVKM_ENGINE_ME
	.comm	_NVKM_ENGINE_MPEG,8,3           ## @NVKM_ENGINE_MPEG
	.comm	_NVKM_ENGINE_MSPDEC,8,3         ## @NVKM_ENGINE_MSPDEC
	.comm	_NVKM_ENGINE_MSPPP,8,3          ## @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_MSVLD,8,3          ## @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_SEC,8,3            ## @NVKM_ENGINE_SEC
	.comm	_NVKM_ENGINE_SW,8,3             ## @NVKM_ENGINE_SW
	.comm	_NVKM_ENGINE_VIC,8,3            ## @NVKM_ENGINE_VIC
	.comm	_NVKM_ENGINE_VP,8,3             ## @NVKM_ENGINE_VP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g84_fifo_chan_ctor             ; -- Begin function g84_fifo_chan_ctor
	.p2align	2
_g84_fifo_chan_ctor:                    ; @g84_fifo_chan_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	cbz	w1, LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x6, x2
	mov	x5, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _NVKM_ENGINE_BSP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_ENGINE_BSP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #1
Lloh3:
	adrp	x10, _NVKM_ENGINE_CE0@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NVKM_ENGINE_CE0@GOTPAGEOFF]
	lsl	x8, x9, x8
Lloh5:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x10, x8
Lloh6:
	adrp	x10, _NVKM_ENGINE_CIPHER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NVKM_ENGINE_CIPHER@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh9:
	adrp	x10, _NVKM_ENGINE_DMAOBJ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NVKM_ENGINE_DMAOBJ@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh12:
	adrp	x10, _NVKM_ENGINE_GR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NVKM_ENGINE_GR@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh15:
	adrp	x10, _NVKM_ENGINE_ME@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NVKM_ENGINE_ME@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh18:
	adrp	x10, _NVKM_ENGINE_MPEG@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NVKM_ENGINE_MPEG@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	lsl	x10, x9, x10
Lloh21:
	adrp	x11, _NVKM_ENGINE_MSPDEC@GOTPAGE
Lloh22:
	ldr	x11, [x11, _NVKM_ENGINE_MSPDEC@GOTPAGEOFF]
	orr	x8, x8, x10
Lloh23:
	ldr	x10, [x11]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh24:
	adrp	x10, _NVKM_ENGINE_MSPPP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _NVKM_ENGINE_MSPPP@GOTPAGEOFF]
	ldr	x20, [x0]
Lloh26:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh27:
	adrp	x10, _NVKM_ENGINE_MSVLD@GOTPAGE
Lloh28:
	ldr	x10, [x10, _NVKM_ENGINE_MSVLD@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh30:
	adrp	x10, _NVKM_ENGINE_SEC@GOTPAGE
Lloh31:
	ldr	x10, [x10, _NVKM_ENGINE_SEC@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh33:
	adrp	x10, _NVKM_ENGINE_SW@GOTPAGE
Lloh34:
	ldr	x10, [x10, _NVKM_ENGINE_SW@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh36:
	adrp	x10, _NVKM_ENGINE_VIC@GOTPAGE
Lloh37:
	ldr	x10, [x10, _NVKM_ENGINE_VIC@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh39:
	adrp	x10, _NVKM_ENGINE_VP@GOTPAGE
Lloh40:
	ldr	x10, [x10, _NVKM_ENGINE_VP@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x7, x8, x9
	add	x8, x4, #4
	stp	x3, x8, [sp, #16]
	mov	w8, #8192
	str	w8, [sp, #8]
	mov	x8, #54043195528445952
	str	x8, [sp]
Lloh42:
	adrp	x0, _g84_fifo_chan_func@GOTPAGE
Lloh43:
	ldr	x0, [x0, _g84_fifo_chan_func@GOTPAGEOFF]
	mov	x1, x21
	mov	w2, #65536
	mov	w3, #4096
	mov	w4, #0
	bl	_nvkm_fifo_chan_ctor
	str	x21, [x19, #24]
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w4, [x19, #4]
	add	x5, x19, #20
	mov	x0, x20
	mov	w1, #512
	mov	w2, #0
	mov	w3, #1
	bl	_nvkm_gpuobj_new
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w4, [x19, #4]
	add	x5, x19, #16
	mov	x0, x20
	mov	w1, #16384
	mov	w2, #0
	mov	w3, #0
	bl	_nvkm_gpuobj_new
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w4, [x19, #4]
	add	x5, x19, #12
	mov	x0, x20
	mov	w1, #4096
	mov	w2, #1024
	mov	w3, #1
	bl	_nvkm_gpuobj_new
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w4, [x19, #4]
	add	x5, x19, #8
	mov	x0, x20
	mov	w1, #256
	mov	w2, #256
	mov	w3, #1
	bl	_nvkm_gpuobj_new
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w3, [x19, #4]
	mov	x0, x20
	mov	w1, #32768
	mov	w2, #16
	mov	x4, x19
	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
	add	sp, sp, #80
	b	_nvkm_ramht_new
LBB0_7:
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_g84_fifo_chan_func,4,2         ; @g84_fifo_chan_func
	.comm	_NVKM_ENGINE_BSP,8,3            ; @NVKM_ENGINE_BSP
	.comm	_NVKM_ENGINE_CE0,8,3            ; @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CIPHER,8,3         ; @NVKM_ENGINE_CIPHER
	.comm	_NVKM_ENGINE_DMAOBJ,8,3         ; @NVKM_ENGINE_DMAOBJ
	.comm	_NVKM_ENGINE_GR,8,3             ; @NVKM_ENGINE_GR
	.comm	_NVKM_ENGINE_ME,8,3             ; @NVKM_ENGINE_ME
	.comm	_NVKM_ENGINE_MPEG,8,3           ; @NVKM_ENGINE_MPEG
	.comm	_NVKM_ENGINE_MSPDEC,8,3         ; @NVKM_ENGINE_MSPDEC
	.comm	_NVKM_ENGINE_MSPPP,8,3          ; @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_MSVLD,8,3          ; @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_SEC,8,3            ; @NVKM_ENGINE_SEC
	.comm	_NVKM_ENGINE_SW,8,3             ; @NVKM_ENGINE_SW
	.comm	_NVKM_ENGINE_VIC,8,3            ; @NVKM_ENGINE_VIC
	.comm	_NVKM_ENGINE_VP,8,3             ; @NVKM_ENGINE_VP
.subsections_via_symbols
