	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_svm_fault_cache
_nouveau_svm_fault_cache:               ## @nouveau_svm_fault_cache
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	16(%rsi), %r14
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_nvif_rd32
	leal	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_nvif_rd32
	leal	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_nvif_rd32
	leal	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_nvif_rd32
	leal	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_nvif_rd32
	leal	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_nvif_rd32
	leal	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_nvif_rd32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	addl	$28, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nvif_rd32
	movl	%eax, %r12d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r13d
	shrl	$24, %r13d
	andl	$31, %r13d
	movl	%r12d, %eax
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	shrl	$20, %r12d
	andl	$1, %r12d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	shrl	$8, %r15d
	andl	$127, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	xorl	%ecx, %ecx
	callq	_nvif_mask
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rcx
	movq	8(%r14), %rax
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_2
LBB0_4:
	incq	%rcx
	movq	%rcx, (%r14)
	movl	%ebx, 12(%rax)
	movl	%r13d, 16(%rax)
	movl	%r12d, 20(%rax)
	movl	%edx, %r8d
	shrl	$16, %r8d
	andl	$15, %r8d
	movl	%r8d, 24(%rax)
	movl	%r15d, 28(%rax)
	andl	$31, %edx
	movl	%edx, 32(%rax)
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SVM_DBG                        ## TAILCALL
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$36, %edi
	callq	_kmalloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_svm_fault_cancel       ## TAILCALL
LBB0_3:
	movq	(%r14), %rcx
	movq	8(%r14), %rax
	movq	%r15, (%rax,%rcx,8)
	movq	8(%r14), %rax
	movq	(%rax,%rcx,8), %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fault %016llx %016llx %02x"

	.no_dead_strip	_nouveau_svm_fault_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_svm_fault_cache
_nouveau_svm_fault_cache:               ; @nouveau_svm_fault_cache
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x23, x1, #16
	mov	x0, x23
	mov	x1, x2
	bl	_nvif_rd32
	add	w1, w22, #4
	mov	x0, x23
	bl	_nvif_rd32
	add	w1, w22, #8
	mov	x0, x23
	bl	_nvif_rd32
	add	w1, w22, #12
	mov	x0, x23
	bl	_nvif_rd32
	add	w1, w22, #16
	mov	x0, x23
	bl	_nvif_rd32
	add	w1, w22, #20
	mov	x0, x23
	bl	_nvif_rd32
	add	w1, w22, #24
	mov	x0, x23
	bl	_nvif_rd32
	mov	x21, x0
	add	w27, w22, #28
	mov	x0, x23
	mov	x1, x27
	bl	_nvif_rd32
	mov	x22, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	ubfx	w26, w22, #24, #5
	ubfx	w25, w22, #20, #1
	ubfx	w24, w22, #8, #7
	mov	x0, x23
	mov	x1, x27
	mov	w2, #-2147483648
	mov	w3, #0
	bl	_nvif_mask
	ldp	x9, x8, [x20]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
LBB0_3:
	add	x9, x9, #1
	str	x9, [x20]
	stp	w21, w26, [x8, #12]
	ubfx	w4, w22, #16, #4
	stp	w25, w4, [x8, #20]
	and	w9, w22, #0x1f
	stp	w24, w9, [x8, #28]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldp	w2, w3, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_SVM_DBG
LBB0_4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #36
	bl	_kmalloc
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x2, x25
	mov	x3, x26
	mov	x4, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_nouveau_svm_fault_cancel
LBB0_6:
	ldp	x9, x8, [x20]
	lsl	x10, x9, #3
	str	x23, [x8, x10]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x10]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fault %016llx %016llx %02x"

	.no_dead_strip	_nouveau_svm_fault_cache
.subsections_via_symbols
