	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_vmm_ref_swpt
_nvkm_vmm_ref_swpt:                     ## @nvkm_vmm_ref_swpt
	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movslq	(%rdi), %rcx
	leaq	(%rax,%rcx,4), %r12
	addq	$-4, %r12
	movq	(%rsi), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_NVKM_VMM_PDE_SPARSED
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nvkm_vmm_pt_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_1:
	movq	8(%r15), %rax
	xorl	%r14d, %r14d
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_nvkm_vmm_unref_pdes
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_vmm_ref_swpt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_vmm_ref_swpt
_nvkm_vmm_ref_swpt:                     ; @nvkm_vmm_ref_swpt
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #2
	sub	x22, x8, #4
	ldr	x8, [x1]
	ldr	x0, [x8, x2, lsl #3]
	bl	_NVKM_VMM_PDE_SPARSED
	mov	x1, x0
	ldr	w2, [x19, #4]
	mov	x0, x22
	bl	_nvkm_vmm_pt_new
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	str	x0, [x8, x20, lsl #3]
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_nvkm_vmm_unref_pdes
LBB0_4:
	mov	w0, #0
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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvkm_vmm_ref_swpt
.subsections_via_symbols
