	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function nouveau_range_fault
LCPI0_0:
	.quad	-1                              ## 0xffffffffffffffff
	.quad	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_nouveau_range_fault:                   ## @nouveau_range_fault
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [18446744073709551615,0]
	movups	%xmm0, (%rsi)
	leaq	8(%rdi), %rsi
	movq	%r14, %rdi
	callq	_hmm_range_register
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_up_read
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_HMM_RANGE_DEFAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hmm_range_wait_until_valid
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hmm_range_fault
	testq	%rax, %rax
	jg	LBB0_6
## %bb.5:
	movq	%rax, %r12
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r15), %rdi
	callq	_up_read
	movq	%r14, %rdi
	callq	_hmm_range_unregister
	testq	%r12, %r12
	cmovnel	%r12d, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %rdi
	callq	_up_read
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_HMM_RANGE_DEFAULT_TIMEOUT,4,2  ## @HMM_RANGE_DEFAULT_TIMEOUT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_nouveau_range_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function nouveau_range_fault
lCPI0_0:
	.quad	-1                              ; 0xffffffffffffffff
	.quad	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nouveau_range_fault:                   ; @nouveau_range_fault
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x1]
	add	x1, x0, #8
	mov	x0, x19
	bl	_hmm_range_register
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x0, [x20]
	bl	_up_read
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh2:
	adrp	x8, _HMM_RANGE_DEFAULT_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HMM_RANGE_DEFAULT_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hmm_range_wait_until_valid
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_hmm_range_fault
	mov	w21, #0
	cmp	x0, #0
	b.gt	LBB0_2
; %bb.5:
	mov	x22, x0
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	x0, [x20]
	bl	_up_read
	mov	x0, x19
	bl	_hmm_range_unregister
	cmp	x22, #0
	csneg	w21, w22, w21, ne
	b	LBB0_2
LBB0_6:
	ldr	x0, [x20]
	bl	_up_read
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HMM_RANGE_DEFAULT_TIMEOUT,4,2  ; @HMM_RANGE_DEFAULT_TIMEOUT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_nouveau_range_fault
.subsections_via_symbols
