	.file	"extr_ttm_bo.c_ttm_bo_evict.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to find memory space for buffer 0x%p eviction\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Buffer eviction failed\n"
	.text
	.p2align 4
	.type	ttm_bo_evict, @function
ttm_bo_evict:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r12, QWORD PTR 40[rdi]
	mov	edi, DWORD PTR 32[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	call	dma_resv_assert_held@PLT
	mov	rax, QWORD PTR [r12]
	mov	rsi, r14
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR [rsp], 0
	call	[QWORD PTR [rax]]
	mov	rax, QWORD PTR 8[rsp]
	or	rax, QWORD PTR [rsp]
	je	.L10
	movdqu	xmm0, XMMWORD PTR 8[rbp]
	lea	r15, 16[rsp]
	mov	rcx, r13
	mov	rsi, r14
	mov	QWORD PTR 32[rsp], 0
	mov	rdx, r15
	mov	rdi, rbp
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	DWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	call	ttm_bo_mem_space@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L4
	add	eax, DWORD PTR ERESTARTSYS[rip]
	je	.L1
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	ttm_bo_mem_space_debug@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	mov	rcx, r13
	mov	edx, 1
	mov	rsi, r15
	call	ttm_bo_handle_move_mem@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L12
	mov	DWORD PTR 0[rbp], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	ttm_bo_pipeline_gutting@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	xor	esi, esi
	mov	rdi, rbp
	call	ttm_tt_create@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, r12d
	add	eax, DWORD PTR ERESTARTSYS[rip]
	je	.L6
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_err@PLT
.L6:
	mov	rsi, r15
	mov	rdi, rbp
	call	ttm_bo_mem_put@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ttm_bo_evict, .-ttm_bo_evict
	.comm	ERESTARTSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ttm_bo.c_ttm_bo_evict.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to find memory space for buffer 0x%p evictio"
	.ascii	"n\012\000"
	.align	2
.LC1:
	.ascii	"Buffer eviction failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttm_bo_evict, %function
ttm_bo_evict:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r5, #0
	ldr	r7, [r0, #20]
	ldr	r3, .L12
	sub	sp, sp, #28
	ldr	r0, [r0, #16]
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	dma_resv_assert_held
	ldr	r3, [r7]
	mov	r0, r4
	ldr	r3, [r3]
	mov	r1, sp
	str	r5, [sp, #4]
	str	r5, [sp]
	blx	r3
	ldr	r2, [sp, #4]
	ldr	r3, [sp]
	orrs	r3, r2, r3
	beq	.L10
	mov	r3, r6
	mov	r1, sp
	mov	r0, r4
	add	r2, sp, #8
	str	r5, [sp, #16]
	str	r5, [sp, #8]
	str	r5, [sp, #12]
	bl	ttm_bo_mem_space
	subs	r5, r0, #0
	beq	.L4
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L1
	mov	r1, r4
	ldr	r0, .L12+8
	bl	pr_err
	mov	r1, sp
	mov	r0, r4
	bl	ttm_bo_mem_space_debug
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r3, r6
	mov	r2, #1
	add	r1, sp, #8
	mov	r0, r4
	bl	ttm_bo_handle_move_mem
	mov	r5, r0
	bl	unlikely
	cmp	r0, #0
	moveq	r3, #1
	streq	r3, [r4]
	beq	.L1
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L6
	ldr	r0, .L12+12
	bl	pr_err
.L6:
	mov	r0, r4
	add	r1, sp, #8
	bl	ttm_bo_mem_put
	b	.L1
.L10:
	mov	r0, r4
	bl	ttm_bo_pipeline_gutting
	subs	r5, r0, #0
	bne	.L1
	mov	r1, r5
	mov	r0, r4
	bl	ttm_tt_create
	mov	r5, r0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	ERESTARTSYS
	.word	.LC0
	.word	.LC1
	.size	ttm_bo_evict, .-ttm_bo_evict
	.comm	ERESTARTSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
