	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_vmm_ptes_get
_nvkm_vmm_ptes_get:                     ## @nvkm_vmm_ptes_get
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_nvkm_vmm_ref_ptes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movl	%eax, 8(%rsp)
	movq	$0, 32(%rsp)
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %r8
	movl	$1, %r9d
	callq	_nvkm_vmm_iter
	cmpq	$-1, %rax
	je	LBB0_1
## %bb.2:
	subq	%rbx, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_nvkm_vmm_ptes_put
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ref"

	.comm	_nvkm_vmm_ref_ptes,4,2          ## @nvkm_vmm_ref_ptes
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nvkm_vmm_ptes_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_vmm_ptes_get
_nvkm_vmm_ptes_get:                     ; @nvkm_vmm_ptes_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _nvkm_vmm_ref_ptes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvkm_vmm_ref_ptes@GOTPAGEOFF]
Lloh2:
	ldr	w7, [x8]
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x4, l_.str@PAGE
Lloh4:
	add	x4, x4, l_.str@PAGEOFF
	mov	w5, #1
	mov	w6, #0
	bl	_nvkm_vmm_iter
	cmn	x0, #1
	b.eq	LBB0_4
; %bb.1:
	subs	x3, x0, x19
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_nvkm_vmm_ptes_put
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ref"

	.comm	_nvkm_vmm_ref_ptes,4,2          ; @nvkm_vmm_ref_ptes
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nvkm_vmm_ptes_get
.subsections_via_symbols
