	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_mem_evict_wait_busy
_ttm_mem_evict_wait_busy:               ## @ttm_mem_evict_wait_busy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	cmpq	$0, (%rsi)
	movl	(%rdi), %edi
	movq	%rdx, %rsi
	je	LBB0_5
## %bb.4:
	callq	_dma_resv_lock_interruptible
	jmp	LBB0_6
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	callq	_dma_resv_lock
LBB0_6:
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	callq	_dma_resv_unlock
LBB0_8:
	movq	_EDEADLK@GOTPCREL(%rip), %rcx
	movq	_EBUSY@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	movl	(%rcx), %ecx
	addl	%r14d, %ecx
	cmovnel	%r14d, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.no_dead_strip	_ttm_mem_evict_wait_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_mem_evict_wait_busy
_ttm_mem_evict_wait_busy:               ; @ttm_mem_evict_wait_busy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x2, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x8, [x1]
	ldr	w0, [x0]
	mov	x1, x2
	cbz	x8, LBB0_8
; %bb.3:
	bl	_dma_resv_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_dma_resv_unlock
LBB0_5:
Lloh0:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EBUSY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w20, w8
	csneg	w0, w20, w9, ne
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	_dma_resv_lock
	mov	x20, x0
	cbnz	w0, LBB0_5
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.no_dead_strip	_ttm_mem_evict_wait_busy
.subsections_via_symbols
