	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_vm_fault_idle
_ttm_bo_vm_fault_idle:                  ## @ttm_bo_vm_fault_idle
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	(%rbx), %rdi
	callq	_dma_fence_is_signaled
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movq	(%rbx), %rdi
	callq	_dma_fence_put
	movq	$0, (%rbx)
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %eax
	movq	_FAULT_FLAG_ALLOW_RETRY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_VM_FAULT_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_FAULT_FLAG_RETRY_NOWAIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	callq	_ttm_bo_get
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	callq	_up_read
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_dma_fence_wait
	movl	8(%rbx), %edi
	callq	_dma_resv_unlock
	movq	%rbx, %rdi
	callq	_ttm_bo_put
	jmp	LBB0_11
LBB0_5:
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_dma_fence_wait
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	jne	LBB0_7
## %bb.8:
	movq	_VM_FAULT_NOPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_7:
	movq	_VM_FAULT_SIGBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FAULT_FLAG_ALLOW_RETRY,4,2     ## @FAULT_FLAG_ALLOW_RETRY
	.comm	_VM_FAULT_RETRY,4,2             ## @VM_FAULT_RETRY
	.comm	_FAULT_FLAG_RETRY_NOWAIT,4,2    ## @FAULT_FLAG_RETRY_NOWAIT
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_VM_FAULT_SIGBUS,4,2            ## @VM_FAULT_SIGBUS
	.comm	_VM_FAULT_NOPAGE,4,2            ## @VM_FAULT_NOPAGE
	.no_dead_strip	_ttm_bo_vm_fault_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_vm_fault_idle
_ttm_bo_vm_fault_idle:                  ; @ttm_bo_vm_fault_idle
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_4
LBB0_2:
	ldr	x0, [x19]
	bl	_dma_fence_is_signaled
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x0, [x19]
	bl	_dma_fence_put
	mov	w20, #0
	str	xzr, [x19]
LBB0_4:
	mov	x0, x20
	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_5:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _FAULT_FLAG_ALLOW_RETRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FAULT_FLAG_ALLOW_RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh3:
	adrp	x9, _VM_FAULT_RETRY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_FAULT_RETRY@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x9]
Lloh6:
	adrp	x9, _FAULT_FLAG_RETRY_NOWAIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FAULT_FLAG_RETRY_NOWAIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.7:
	mov	x0, x19
	bl	_ttm_bo_get
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	bl	_up_read
	ldr	x0, [x19]
	mov	w1, #1
	bl	_dma_fence_wait
	ldr	w0, [x19, #8]
	bl	_dma_resv_unlock
	mov	x0, x19
	bl	_ttm_bo_put
	b	LBB0_4
LBB0_8:
	ldr	x0, [x19]
	mov	w1, #1
	bl	_dma_fence_wait
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.9:
Lloh9:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh11:
	adrp	x9, _VM_FAULT_SIGBUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VM_FAULT_SIGBUS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _VM_FAULT_NOPAGE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _VM_FAULT_NOPAGE@GOTPAGEOFF]
	cmn	w20, w8
	csel	x8, x10, x9, eq
	ldr	w20, [x8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FAULT_FLAG_ALLOW_RETRY,4,2     ; @FAULT_FLAG_ALLOW_RETRY
	.comm	_VM_FAULT_RETRY,4,2             ; @VM_FAULT_RETRY
	.comm	_FAULT_FLAG_RETRY_NOWAIT,4,2    ; @FAULT_FLAG_RETRY_NOWAIT
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_VM_FAULT_SIGBUS,4,2            ; @VM_FAULT_SIGBUS
	.comm	_VM_FAULT_NOPAGE,4,2            ; @VM_FAULT_NOPAGE
	.no_dead_strip	_ttm_bo_vm_fault_idle
.subsections_via_symbols
