	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_vmm_unref_ptes
_nvkm_vmm_unref_ptes:                   ## @nvkm_vmm_unref_ptes
	.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
	movl	%ecx, %r8d
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movq	16(%r15), %r14
	movl	(%r14), %eax
	movq	_SPT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	(%rdi), %r13
	testl	%esi, %esi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	cmpl	%ecx, %eax
	sete	%r12b
	movq	8(%r14), %rax
	movl	4(%r15), %edi
	movq	8(%r13), %rcx
	movl	(%rcx,%r12,4), %esi
	movl	%r8d, %ecx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_nvkm_vmm_flush_mark
	movq	%r15, %rdi
	callq	_nvkm_vmm_flush
	movq	8(%r14), %rax
	movl	4(%r15), %edi
	movq	8(%r13), %rcx
	movl	(%rcx,%r12,4), %esi
	movl	%ebx, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	*8(%rax)
	movl	%ebx, %r8d
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
	cmpl	%ecx, %eax
	sete	%r12b
	jmp	LBB0_6
LBB0_3:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_5:
	movq	_SPT@GOTPCREL(%rip), %rbx
LBB0_6:
	movslq	%r8d, %rdx
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rcx
	subq	%rdx, %rcx
	movq	%rcx, (%rax,%r12,8)
	movl	(%r14), %edx
	cmpl	(%rbx), %edx
	jne	LBB0_10
## %bb.7:
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	cmpq	$0, 8(%rax)
	je	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_nvkm_vmm_unref_sptes
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rcx
LBB0_10:
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.11:
	incl	(%r15)
	movq	%r14, %rdi
	callq	_nvkm_vmm_desc_type
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_TRA
	decl	(%r15)
	movq	%r15, %rdi
	callq	_nvkm_vmm_unref_pdes
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPT,4,2                        ## @SPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s empty"

	.no_dead_strip	_nvkm_vmm_unref_ptes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_vmm_unref_ptes
_nvkm_vmm_unref_ptes:                   ; @nvkm_vmm_unref_ptes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	ldp	x10, x20, [x0, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x25, _SPT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SPT@GOTPAGEOFF]
	ldr	w9, [x25]
	ldr	x23, [x10]
	cmp	w8, w9
	cset	w24, eq
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x19, #4]
	ldr	x9, [x23, #8]
	ldr	w1, [x9, w24, uxtw #2]
	mov	x2, x22
	mov	x3, x21
	blr	x8
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_nvkm_vmm_flush_mark
	mov	x0, x19
	bl	_nvkm_vmm_flush
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #4]
	ldr	x9, [x23, #8]
	ldr	w1, [x9, x24, lsl #2]
	mov	x2, x22
	mov	x3, x21
	blr	x8
LBB0_3:
	ldr	x9, [x23]
	lsl	x10, x24, #3
	ldr	x8, [x9, x10]
	sub	x8, x8, w21, sxtw
	str	x8, [x9, x10]
	ldr	w10, [x20]
	ldr	w11, [x25]
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.4:
	ldr	x10, [x9]
	cbnz	x10, LBB0_6
; %bb.5:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_nvkm_vmm_unref_sptes
	ldr	x8, [x23]
	ldr	x8, [x8, x24, lsl #3]
LBB0_7:
	cbz	x8, LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_nvkm_vmm_desc_type
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_TRA
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_nvkm_vmm_unref_pdes
	mov	w0, #0
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SPT,4,2                        ; @SPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s empty"

	.no_dead_strip	_nvkm_vmm_unref_ptes
.subsections_via_symbols
