	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_fifo_oneinit
_gf100_fifo_oneinit:                    ## @gf100_fifo_oneinit
	.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
	callq	_gf100_fifo
	movq	%rax, %r15
	leaq	32(%rax), %r12
	movq	32(%rax), %rbx
	movq	%rbx, %rdi
	callq	_nvkm_bar_bar1_vmm
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$8708, %esi                     ## imm = 0x2204
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$8708, %esi                     ## imm = 0x2204
	callq	_nvkm_rd32
	movl	%eax, %edi
	callq	_hweight32
	movl	%eax, 24(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_nvkm_debug
	movq	_NVKM_MEM_TARGET_INST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	16(%r15), %r9
	movq	%rbx, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	callq	_nvkm_memory_new
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r12), %esi
	movq	16(%r15), %r9
	addq	$4, %r9
	movq	%rbx, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	callq	_nvkm_memory_new
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	8(%r15), %rdi
	callq	_init_waitqueue_head
	movl	(%r12), %esi
	movq	%r15, %r9
	addq	$4, %r9
	movq	%rbx, %rdi
	movl	$524288, %edx                   ## imm = 0x80000
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	callq	_nvkm_memory_new
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%r15), %edi
	callq	_nvkm_memory_size
	movq	%r14, %rdi
	movl	$12, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_nvkm_vmm_get
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %ecx
	movl	4(%r15), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_memory_map                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d PBDMA(s)\n"

	.comm	_NVKM_MEM_TARGET_INST,4,2       ## @NVKM_MEM_TARGET_INST
	.no_dead_strip	_gf100_fifo_oneinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_fifo_oneinit
_gf100_fifo_oneinit:                    ; @gf100_fifo_oneinit
	.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
	bl	_gf100_fifo
	mov	x19, x0
	mov	x22, x0
	ldr	x21, [x22, #32]!
	mov	x0, x21
	bl	_nvkm_bar_bar1_vmm
	mov	x20, x0
	mov	x0, x21
	mov	w1, #8708
	mov	w2, #-1
	bl	_nvkm_wr32
	mov	x0, x21
	mov	w1, #8708
	bl	_nvkm_rd32
	bl	_hweight32
	mov	x2, x0
	str	w0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_nvkm_debug
Lloh2:
	adrp	x22, _NVKM_MEM_TARGET_INST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NVKM_MEM_TARGET_INST@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x5, [x19, #16]
	mov	x0, x21
	mov	w2, #4096
	mov	w3, #4096
	mov	w4, #0
	bl	_nvkm_memory_new
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w1, [x22]
	ldr	x8, [x19, #16]
	add	x5, x8, #4
	mov	x0, x21
	mov	w2, #4096
	mov	w3, #4096
	mov	w4, #0
	bl	_nvkm_memory_new
	cbnz	w0, LBB0_4
; %bb.2:
	add	x0, x19, #8
	bl	_init_waitqueue_head
	ldr	w1, [x22]
	add	x5, x19, #4
	mov	x0, x21
	mov	w2, #524288
	mov	w3, #4096
	mov	w4, #0
	bl	_nvkm_memory_new
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_nvkm_memory_size
	mov	x2, x0
	mov	x0, x20
	mov	w1, #12
	mov	x3, x19
	bl	_nvkm_vmm_get
	cbz	w0, LBB0_5
LBB0_4:
	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_5:
	ldp	w3, w0, [x19]
	mov	w1, #0
	mov	x2, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d PBDMA(s)\n"

	.comm	_NVKM_MEM_TARGET_INST,4,2       ; @NVKM_MEM_TARGET_INST
	.no_dead_strip	_gf100_fifo_oneinit
.subsections_via_symbols
