	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_evict_swapout_allowable
_ttm_bo_evict_swapout_allowable:        ## @ttm_bo_evict_swapout_allowable
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	cmpq	(%rsi), %rdi
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	callq	_dma_resv_assert_held
	movq	_TTM_OPT_FLAG_ALLOW_RES_EVICT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_list_empty
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_4
LBB0_3:
	movl	$1, %eax
LBB0_4:
	movl	$0, (%r15)
	xorl	%ecx, %ecx
	testq	%r14, %r14
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	callq	_dma_resv_trylock
	movl	%eax, (%r15)
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_7:
	movl	%ecx, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_OPT_FLAG_ALLOW_RES_EVICT,4,2 ## @TTM_OPT_FLAG_ALLOW_RES_EVICT
	.no_dead_strip	_ttm_bo_evict_swapout_allowable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_evict_swapout_allowable
_ttm_bo_evict_swapout_allowable:        ; @ttm_bo_evict_swapout_allowable
	.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, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x0, [x0]
	ldr	x8, [x1]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x22, x1
	bl	_dma_resv_assert_held
	ldr	w8, [x22, #8]
Lloh0:
	adrp	x9, _TTM_OPT_FLAG_ALLOW_RES_EVICT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTM_OPT_FLAG_ALLOW_RES_EVICT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_2:
	mov	w0, #1
	b	LBB0_7
LBB0_3:
	bl	_dma_resv_trylock
	str	w0, [x20]
	cbz	x19, LBB0_9
; %bb.4:
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_8
LBB0_5:
	add	x0, x21, #8
	bl	_list_empty
	cbz	w0, LBB0_2
; %bb.6:
	mov	w0, #0
LBB0_7:
	mov	w8, #0
	str	wzr, [x20]
	cbz	x19, LBB0_9
LBB0_8:
	str	w8, [x19]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_OPT_FLAG_ALLOW_RES_EVICT,4,2 ; @TTM_OPT_FLAG_ALLOW_RES_EVICT
	.no_dead_strip	_ttm_bo_evict_swapout_allowable
.subsections_via_symbols
