	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_mmu_oneinit
_nvkm_mmu_oneinit:                      ## @nvkm_mmu_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_nvkm_mmu
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_nvkm_mmu_vram
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_nvkm_mmu_host
LBB0_4:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rax
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_nvkm_vmm_new
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gart"

	.no_dead_strip	_nvkm_mmu_oneinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_mmu_oneinit
_nvkm_mmu_oneinit:                      ; @nvkm_mmu_oneinit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_nvkm_mmu
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_nvkm_mmu_vram
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_nvkm_mmu_host
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh0:
	adrp	x6, l_.str@PAGE
Lloh1:
	add	x6, x6, l_.str@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	mov	x7, x19
	bl	_nvkm_vmm_new
	cbnz	w0, LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gart"

	.no_dead_strip	_nvkm_mmu_oneinit
.subsections_via_symbols
