	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gv100_fifo_gpfifo_engine_init  ## -- Begin function gv100_fifo_gpfifo_engine_init
	.p2align	4, 0x90
_gv100_fifo_gpfifo_engine_init:         ## @gv100_fifo_gpfifo_engine_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	%rsi, %rbx
	callq	_gk104_fifo_chan
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_NVKM_ENGINE_CE0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_3
## %bb.1:
	movq	_NVKM_ENGINE_CE_LAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rcx
	movq	8(%r14), %rbx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_nvkm_kmap
	movl	%r15d, %edi
	callq	_lower_32_bits
	orl	$4, %eax
	movq	%rbx, %rdi
	movl	$528, %esi                      ## imm = 0x210
	movl	%eax, %edx
	callq	_nvkm_wo32
	movl	%r15d, %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	$532, %esi                      ## imm = 0x214
	movl	%eax, %edx
	callq	_nvkm_wo32
	movq	%rbx, %rdi
	callq	_nvkm_done
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gv100_fifo_gpfifo_engine_valid ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_ENGINE_CE0,8,3            ## @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CE_LAST,8,3        ## @NVKM_ENGINE_CE_LAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gv100_fifo_gpfifo_engine_init  ; -- Begin function gv100_fifo_gpfifo_engine_init
	.p2align	2
_gv100_fifo_gpfifo_engine_init:         ; @gv100_fifo_gpfifo_engine_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, x1
	bl	_gk104_fifo_chan
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NVKM_ENGINE_CE0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVKM_ENGINE_CE0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NVKM_ENGINE_CE_LAST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NVKM_ENGINE_CE_LAST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #2, hs
	b.ls	LBB0_2
; %bb.1:
	mov	x19, x0
	ldp	x9, x20, [x0]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_nvkm_kmap
	mov	x0, x21
	bl	_lower_32_bits
	orr	w2, w0, #0x4
	mov	x0, x20
	mov	w1, #528
	bl	_nvkm_wo32
	mov	x0, x21
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x20
	mov	w1, #532
	bl	_nvkm_wo32
	mov	x0, x20
	bl	_nvkm_done
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	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	_gv100_fifo_gpfifo_engine_valid
LBB0_2:
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_CE0,8,3            ; @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CE_LAST,8,3        ; @NVKM_ENGINE_CE_LAST
.subsections_via_symbols
