	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_fb_oneinit               ## -- Begin function gf100_fb_oneinit
	.p2align	4, 0x90
_gf100_fb_oneinit:                      ## @gf100_fb_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_gf100_fb
	movq	%rax, %r15
	movq	32(%rax), %r14
	movl	16(%rax), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	testl	%ecx, %ecx
	movl	$131072, %edx                   ## imm = 0x20000
	cmovnel	%eax, %edx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nvkm_longopt
	movl	%eax, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_max
	movl	%eax, %r12d
	movq	_NVKM_MEM_TARGET_INST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	24(%r15), %r9
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	$4096, %ecx                     ## imm = 0x1000
	movl	$1, %r8d
	callq	_nvkm_memory_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	(%r13), %esi
	leaq	20(%r15), %r9
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	$4096, %ecx                     ## imm = 0x1000
	movl	$1, %r8d
	callq	_nvkm_memory_new
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_dma_map_page
	movl	%eax, (%r15)
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MmuDebugBufferSize"

	.comm	_NVKM_MEM_TARGET_INST,4,2       ## @NVKM_MEM_TARGET_INST
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_fb_oneinit               ; -- Begin function gf100_fb_oneinit
	.p2align	2
_gf100_fb_oneinit:                      ; @gf100_fb_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_fb
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w8, [x0, #16]
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #131072
	cmp	w8, #0
	csel	w2, w10, w9, eq
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvkm_longopt
	mov	w1, #4096
	bl	_max
	mov	x21, x0
Lloh2:
	adrp	x22, _NVKM_MEM_TARGET_INST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NVKM_MEM_TARGET_INST@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x5, x19, #24
	mov	x0, x20
	mov	x2, x21
	mov	w3, #4096
	mov	w4, #1
	bl	_nvkm_memory_new
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w1, [x22]
	add	x5, x19, #20
	mov	x0, x20
	mov	x2, x21
	mov	w3, #4096
	mov	w4, #1
	bl	_nvkm_memory_new
	cbnz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	w2, #0
	bl	_dma_map_page
	mov	x1, x0
	str	w0, [x19]
	ldr	w0, [x20]
	bl	_dma_mapping_error
	cbz	x0, LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _EFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MmuDebugBufferSize"

	.comm	_NVKM_MEM_TARGET_INST,4,2       ; @NVKM_MEM_TARGET_INST
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
