	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv44_vmm_pgt_unmap
_nv44_vmm_pgt_unmap:                    ## @nv44_vmm_pgt_unmap
	.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, %r14d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rsi), %edi
	callq	_nvkm_kmap
	movl	%r13d, %eax
	andl	$3, %eax
	je	LBB0_2
## %bb.1:
	movl	$4, %esi
	subl	%eax, %esi
	movl	%r14d, %edi
	callq	_min
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_nv44_vmm_pgt_fill
	addl	%ebx, %r13d
	subl	%ebx, %r14d
LBB0_2:
	movl	%r14d, %r8d
	cmpl	$5, %r14d
	jl	LBB0_5
## %bb.3:
	leal	(,%r13,4), %ebx
	movl	%r8d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_VMM_WO032
	leal	4(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_VMM_WO032
	leal	8(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_VMM_WO032
	addl	$4, %r13d
	leal	12(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_VMM_WO032
	leal	-4(%r14), %r8d
	addl	$16, %ebx
	cmpl	$8, %r14d
	movl	%r8d, %r14d
	ja	LBB0_4
	jmp	LBB0_6
LBB0_5:
	testl	%r8d, %r8d
	je	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_nv44_vmm_pgt_fill
LBB0_7:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_done                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv44_vmm_pgt_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv44_vmm_pgt_unmap
_nv44_vmm_pgt_unmap:                    ; @nv44_vmm_pgt_unmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x1]
	bl	_nvkm_kmap
	ands	w8, w20, #0x3
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #4
	sub	w1, w9, w8
	mov	x0, x22
	bl	_min
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x3, x20
	mov	x4, x23
	bl	_nv44_vmm_pgt_fill
	add	w20, w23, w20
	sub	w22, w22, w23
LBB0_2:
	cmp	w22, #5
	b.lt	LBB0_5
; %bb.3:
	lsl	w23, w20, #2
	mov	x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	w3, #0
	bl	_VMM_WO032
	add	w2, w23, #4
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_VMM_WO032
	add	w2, w23, #8
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_VMM_WO032
	add	w20, w20, #4
	add	w2, w23, #12
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_VMM_WO032
	sub	w22, w24, #4
	add	w23, w23, #16
	cmp	w24, #8
	mov	x24, x22
	b.hi	LBB0_4
	b	LBB0_6
LBB0_5:
	cbz	w22, LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x3, x20
	mov	x4, x22
	bl	_nv44_vmm_pgt_fill
LBB0_7:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvkm_done
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv44_vmm_pgt_unmap
.subsections_via_symbols
