	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_evict
_ttm_bo_evict:                          ## @ttm_bo_evict
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	32(%rdi), %r15
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %ecx
	callq	_ttm_bo_wait
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_spin_unlock
	xorl	%edi, %edi
	testl	%r13d, %r13d
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_11
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_11
LBB0_3:
	movq	%r14, %rdi
	callq	_ttm_bo_is_reserved
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	8(%r14), %rax
	movq	%rax, -72(%rbp)
	movl	$0, -72(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	(%r15), %rax
	leaq	-112(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_ttm_bo_mem_space
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r13d
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_11
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ttm_bo_mem_space_debug
	jmp	LBB0_11
LBB0_6:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_ttm_bo_handle_move_mem
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r13d
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_9:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ttm_bo_mem_put
	jmp	LBB0_11
LBB0_10:
	movl	$1, (%r14)
	xorl	%r13d, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to expire sync object before buffer eviction\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to find memory space for buffer 0x%p eviction\n"

L_.str.2:                               ## @.str.2
	.asciz	"Buffer eviction failed\n"

	.no_dead_strip	_ttm_bo_evict
.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
_ttm_bo_evict:                          ; @ttm_bo_evict
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #32]
	add	x23, x24, #8
	mov	x0, x23
	bl	_spin_lock
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	x3, x21
	bl	_ttm_bo_wait
	mov	x20, x0
	mov	x0, x23
	bl	_spin_unlock
	cmp	w20, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w20, w8
	b.eq	LBB0_11
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_ttm_bo_is_reserved
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #8]
	stp	x8, xzr, [sp, #56]
	str	wzr, [sp, #56]
	str	xzr, [sp, #72]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldr	x8, [x24]
	ldr	x8, [x8]
	add	x1, sp, #16
	mov	x0, x19
	blr	x8
	add	x1, sp, #16
	add	x2, sp, #56
	mov	x0, x19
	mov	x3, x22
	mov	x4, x21
	bl	_ttm_bo_mem_space
	cbz	w0, LBB0_6
; %bb.4:
	mov	x20, x0
Lloh5:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.5:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	add	x1, sp, #16
	mov	x0, x19
	bl	_ttm_bo_mem_space_debug
	b	LBB0_11
LBB0_6:
	mov	w23, #1
	add	x1, sp, #56
	mov	x0, x19
	mov	w2, #1
	mov	x3, x22
	mov	x4, x21
	bl	_ttm_bo_handle_move_mem
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w20, w8
	b.eq	LBB0_9
; %bb.8:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
LBB0_9:
	add	x1, sp, #56
	mov	x0, x19
	bl	_ttm_bo_mem_put
	b	LBB0_11
LBB0_10:
	str	w23, [x19]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to expire sync object before buffer eviction\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to find memory space for buffer 0x%p eviction\n"

l_.str.2:                               ; @.str.2
	.asciz	"Buffer eviction failed\n"

	.no_dead_strip	_ttm_bo_evict
.subsections_via_symbols
