	.file	"extr_radeon_ttm.c_radeon_move_vram_ram.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_move_vram_ram, @function
radeon_move_vram_ram:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movabs	rbx, 4294967297
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	movdqu	xmm0, XMMWORD PTR [r8]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	rbp, 8[rsp]
	lea	rax, 32[rsp]
	mov	DWORD PTR 8[rsp], edx
	mov	QWORD PTR 64[rsp], rbx
	lea	rbx, 16[rsp]
	lea	rsi, 64[rsp]
	mov	DWORD PTR 12[rsp], ecx
	mov	rdx, rbx
	mov	rcx, rbp
	mov	QWORD PTR 80[rsp], rax
	mov	QWORD PTR 72[rsp], rax
	mov	eax, DWORD PTR TTM_PL_MASK_CACHING[rip]
	or	eax, DWORD PTR TTM_PL_FLAG_TT[rip]
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], eax
	call	ttm_bo_mem_space@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L7
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	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
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR [r15]
	mov	esi, DWORD PTR 16[rsp]
	call	ttm_tt_set_placement_caching@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR [r15]
	mov	rdx, rbp
	mov	rsi, rbx
	call	ttm_tt_bind@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L9
.L3:
	mov	rsi, rbx
	mov	rdi, r15
	call	ttm_bo_mem_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r15
	lea	r8, 8[r15]
	mov	rcx, rbx
	mov	edx, r13d
	mov	esi, 1
	call	radeon_move_blit@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L3
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r15
	call	ttm_bo_move_ttm@PLT
	mov	r12d, eax
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	radeon_move_vram_ram, .-radeon_move_vram_ram
	.comm	TTM_PL_MASK_CACHING,4,4
	.comm	TTM_PL_FLAG_TT,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_radeon_ttm.c_radeon_move_vram_ram.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_move_vram_ram, %function
radeon_move_vram_ram:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r2
	mov	r7, r3
	mov	r5, r0
	mov	lr, #0
	mov	r8, #1
	sub	sp, sp, #60
	ldr	r2, .L10
	ldr	r9, [sp, #88]
	ldr	r3, .L10+4
	add	r6, sp, #16
	ldm	r9, {r0, r1}
	ldr	ip, [r2]
	stm	r6, {r0, r1}
	ldr	r3, [r3]
	ldr	r1, .L10+8
	orr	ip, ip, r3
	str	r4, [sp, #8]
	str	r7, [sp, #12]
	ldr	r1, [r1]
	str	r1, [sp, #52]
	mov	r1,#0
	mov	r2, r6
	add	r3, sp, #8
	str	ip, [sp, #24]
	add	r1, sp, #36
	add	ip, sp, #24
	mov	r0, r5
	str	lr, [sp, #20]
	str	lr, [sp, #32]
	str	lr, [sp, #28]
	str	ip, [sp, #48]
	str	ip, [sp, #44]
	str	r8, [sp, #36]
	str	r8, [sp, #40]
	bl	ttm_bo_mem_space
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	beq	.L7
.L1:
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	ldr	r1, [sp, #16]
	ldr	r0, [r5]
	bl	ttm_tt_set_placement_caching
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L3
	mov	r1, r6
	add	r2, sp, #8
	ldr	r0, [r5]
	bl	ttm_tt_bind
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	beq	.L9
.L3:
	mov	r1, r6
	mov	r0, r5
	bl	ttm_bo_mem_put
	b	.L1
.L9:
	add	r3, r5, #4
	mov	r2, r7
	mov	r1, r8
	str	r3, [sp]
	mov	r0, r5
	mov	r3, r6
	bl	radeon_move_blit
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L3
	mov	r2, r9
	mov	r0, r5
	add	r1, sp, #8
	bl	ttm_bo_move_ttm
	mov	r4, r0
	b	.L3
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	TTM_PL_MASK_CACHING
	.word	TTM_PL_FLAG_TT
	.word	.LC0
	.size	radeon_move_vram_ram, .-radeon_move_vram_ram
	.comm	TTM_PL_MASK_CACHING,4,4
	.comm	TTM_PL_FLAG_TT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
