	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_vmm_new                   ## -- Begin function nv04_vmm_new
	.p2align	4, 0x90
_nv04_vmm_new:                          ## @nv04_vmm_new
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %eax
	movl	%edx, %ebx
	movl	%esi, %ecx
	movq	%rdi, %rsi
	movq	32(%rbp), %r14
	movaps	16(%rbp), %xmm0
	leaq	-24(%rbp), %rdx
	movq	%rdx, 32(%rsp)
	movups	%xmm0, 16(%rsp)
	movl	%r9d, 8(%rsp)
	movq	%r8, (%rsp)
	movq	_nv04_vmm@GOTPCREL(%rip), %rdi
	movl	$8, %edx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_nv04_vmm_new_
	movl	%eax, %ebx
	movq	-24(%rbp), %rax
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_nvkm_kmap
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$135229, %edx                   ## imm = 0x2103D
	callq	_nvkm_wo32
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_nvkm_wo32
	movq	%r14, %rdi
	callq	_nvkm_done
LBB0_2:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nv04_vmm,4,2                   ## @nv04_vmm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_vmm_new                   ; -- Begin function nv04_vmm_new
	.p2align	2
_nv04_vmm_new:                          ; @nv04_vmm_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x5
	mov	x9, x4
	mov	x5, x3
	mov	x4, x2
	mov	x3, x1
	mov	x1, x0
	ldr	x20, [x29, #16]
	add	x10, sp, #24
	stp	x7, x10, [sp, #8]
	str	x6, [sp]
Lloh0:
	adrp	x0, _nv04_vmm@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nv04_vmm@GOTPAGEOFF]
	mov	w2, #8
	mov	x6, x9
	mov	x7, x8
	bl	_nv04_vmm_new_
	mov	x19, x0
	ldr	x8, [sp, #24]
	str	x8, [x20]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_nvkm_kmap
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4157
	movk	w2, #2, lsl #16
	bl	_nvkm_wo32
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #4
	bl	_nvkm_wo32
	mov	x0, x20
	bl	_nvkm_done
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_nv04_vmm,4,2                   ; @nv04_vmm
.subsections_via_symbols
