	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk104_fifo_gpfifo_engine_ctor  ## -- Begin function gk104_fifo_gpfifo_engine_ctor
	.p2align	4, 0x90
_gk104_fifo_gpfifo_engine_ctor:         ## @gk104_fifo_gpfifo_engine_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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_gk104_fifo_chan
	movq	%rax, %r14
	movslq	(%rbx), %r12
	movq	%rbx, %rdi
	callq	_gk104_fifo_gpfifo_engine_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	shlq	$4, %r12
	leaq	(%rax,%r12), %rcx
	addq	$8, %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_nvkm_object_bind
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	movq	(%r14), %rcx
	movq	8(%rcx,%r12), %rax
	addq	%r12, %rcx
	movl	(%rax), %edx
	movl	$12, %esi
	callq	_nvkm_vmm_get
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	(%r14), %rax
	movq	8(%rax,%r12), %rdi
	movl	8(%r14), %edx
	movl	(%rax,%r12), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_memory_map                ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_engine_ctor  ; -- Begin function gk104_fifo_gpfifo_engine_ctor
	.p2align	2
_gk104_fifo_gpfifo_engine_ctor:         ; @gk104_fifo_gpfifo_engine_ctor
	.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, x2
	mov	x21, x1
	bl	_gk104_fifo_chan
	mov	x19, x0
	ldrsw	x22, [x21]
	mov	x0, x21
	bl	_gk104_fifo_gpfifo_engine_addr
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	add	x8, x8, x22, lsl #4
	add	x3, x8, #8
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_nvkm_object_bind
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	add	x3, x8, x22, lsl #4
	ldr	x8, [x3, #8]
	ldr	w2, [x8]
	mov	w1, #12
	bl	_nvkm_vmm_get
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x19]
	add	x8, x8, x22, lsl #4
	ldr	x0, [x8, #8]
	ldr	w2, [x19, #8]
	ldr	w3, [x8]
	mov	w1, #0
	mov	x4, #0
	mov	w5, #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_memory_map
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
