	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_vmm_sparse_ptes
_nvkm_vmm_sparse_ptes:                  ## @nvkm_vmm_sparse_ptes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_PGD@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_20
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.2:
	movq	8(%rsi), %r10
	cmpq	$8, %rcx
	jb	LBB0_13
## %bb.3:
	leaq	(%r10,%rdx,4), %rax
	movq	_NVKM_VMM_PDE_SPARSE@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_5
## %bb.4:
	leaq	(%rcx,%rdx), %rax
	leaq	(%r10,%rax,4), %rax
	cmpq	_NVKM_VMM_PDE_SPARSE@GOTPCREL(%rip), %rax
	ja	LBB0_13
LBB0_5:
	movq	%rcx, %r9
	andq	$-8, %r9
	leaq	-8(%r9), %rax
	movq	%rax, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r11, %rdi
	andq	$-2, %rdi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	(%r10,%rdx,4), %rax
	addq	$48, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -48(%rax,%rsi,4)
	movdqu	%xmm0, -32(%rax,%rsi,4)
	movdqu	%xmm0, -16(%rax,%rsi,4)
	movdqu	%xmm0, (%rax,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r11b
	je	LBB0_11
LBB0_10:
	addq	%rdx, %rsi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%r10,%rsi,4)
	movdqu	%xmm0, 16(%r10,%rsi,4)
LBB0_11:
	cmpq	%rcx, %r9
	je	LBB0_21
## %bb.12:
	andl	$7, %ecx
	addq	%r9, %rdx
LBB0_13:
	leaq	-1(%rcx), %r8
	movq	%rcx, %rax
	andq	$3, %rax
	je	LBB0_17
## %bb.14:
	leaq	(%r10,%rdx,4), %r11
	xorl	%edi, %edi
	movq	_NVKM_VMM_PDE_SPARSE@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9), %esi
	movl	%esi, (%r11,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_15
## %bb.16:
	subq	%rdi, %rcx
	addq	%rdi, %rdx
LBB0_17:
	cmpq	$3, %r8
	jb	LBB0_21
## %bb.18:
	leaq	(%r10,%rdx,4), %rax
	addq	$12, %rax
	xorl	%edx, %edx
	movq	_NVKM_VMM_PDE_SPARSE@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, -12(%rax,%rdx,4)
	movl	(%rsi), %edi
	movl	%edi, -8(%rax,%rdx,4)
	movl	(%rsi), %edi
	movl	%edi, -4(%rax,%rdx,4)
	movl	(%rsi), %edi
	movl	%edi, (%rax,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_19
	jmp	LBB0_21
LBB0_20:
	movq	_LPT@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_21
## %bb.22:
	shlq	$2, %rdx
	addq	(%rsi), %rdx
	movq	_NVKM_VMM_PTE_SPARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	movq	%rcx, %rdx
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_21:
	popq	%rbp
	retq
LBB0_6:
	xorl	%esi, %esi
	testb	$1, %r11b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PGD,8,3                        ## @PGD
	.comm	_NVKM_VMM_PDE_SPARSE,4,2        ## @NVKM_VMM_PDE_SPARSE
	.comm	_LPT,8,3                        ## @LPT
	.comm	_NVKM_VMM_PTE_SPARSE,4,2        ## @NVKM_VMM_PTE_SPARSE
	.no_dead_strip	_nvkm_vmm_sparse_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_sparse_ptes
_nvkm_vmm_sparse_ptes:                  ; @nvkm_vmm_sparse_ptes
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PGD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PGD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	cbz	x3, LBB0_12
; %bb.2:
	ldr	x9, [x1, #8]
Lloh3:
	adrp	x8, _NVKM_VMM_PDE_SPARSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVKM_VMM_PDE_SPARSE@GOTPAGEOFF]
	cmp	x3, #16
	b.lo	LBB0_9
; %bb.3:
	add	x12, x9, x2, lsl #2
	add	x10, x3, x2
	add	x10, x9, x10, lsl #2
	add	x11, x8, #4
	cmp	x12, x11
	ccmp	x10, x8, #0, lo
	b.hi	LBB0_9
; %bb.4:
	and	x11, x3, #0xfffffffffffffff0
	and	x10, x3, #0xf
	add	x2, x11, x2
	ld1r.4s	{ v0 }, [x8]
	add	x12, x12, #32
	mov	x13, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x11, x3
	b.ne	LBB0_10
	b	LBB0_12
LBB0_7:
Lloh5:
	adrp	x9, _LPT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LPT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x1]
	add	x0, x8, x2, lsl #2
Lloh8:
	adrp	x8, _NVKM_VMM_PTE_SPARSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVKM_VMM_PTE_SPARSE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x3
	b	_memset
LBB0_9:
	mov	x10, x3
LBB0_10:
	add	x9, x9, x2, lsl #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	str	w11, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_11
LBB0_12:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PGD,8,3                        ; @PGD
	.comm	_NVKM_VMM_PDE_SPARSE,4,2        ; @NVKM_VMM_PDE_SPARSE
	.comm	_LPT,8,3                        ; @LPT
	.comm	_NVKM_VMM_PTE_SPARSE,4,2        ; @NVKM_VMM_PTE_SPARSE
	.no_dead_strip	_nvkm_vmm_sparse_ptes
.subsections_via_symbols
