	.file	"extr_amdgpu_ttm.c_amdgpu_move_blit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	amdgpu_move_blit, @function
amdgpu_move_blit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR 12[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	amdgpu_ttm_adev@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	r8d, DWORD PTR 8[rbp]
	mov	r9, rsp
	mov	rdi, rax
	mov	eax, DWORD PTR 0[r13]
	lea	rdx, 48[rsp]
	lea	rsi, 16[rsp]
	mov	QWORD PTR [rsp], 0
	sal	eax, cl
	mov	QWORD PTR 32[rsp], rbp
	mov	ecx, eax
	mov	QWORD PTR 64[rsp], rbp
	mov	QWORD PTR 24[rsp], rbx
	mov	QWORD PTR 56[rsp], r13
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	call	amdgpu_ttm_copy_mem_to_mem@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR TTM_PL_VRAM[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L3
.L18:
	mov	rsi, QWORD PTR [rsp]
.L4:
	mov	rax, QWORD PTR ttm_bo_type_kernel[rip]
	mov	rcx, r13
	cmp	QWORD PTR 0[rbp], rax
	je	.L21
	mov	edx, r14d
	mov	rdi, rbp
	call	ttm_bo_pipeline_move@PLT
	mov	r12d, eax
.L19:
	mov	rdi, QWORD PTR [rsp]
.L11:
	call	dma_fence_put@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edx, 1
	mov	rdi, rbp
	call	ttm_bo_move_accel_cleanup@PLT
	mov	r12d, eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, eax
.L2:
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	je	.L11
	xor	esi, esi
	call	dma_fence_wait@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	ttm_to_amdgpu_bo@PLT
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE[rip], eax
	je	.L18
	mov	r12d, DWORD PTR AMDGPU_POISON[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], 0
	call	ttm_to_amdgpu_bo@PLT
	lea	rcx, 8[rsp]
	xor	edx, edx
	mov	esi, r12d
	mov	rdi, rax
	call	amdgpu_fill_buffer@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	cmp	QWORD PTR 8[rsp], 0
	mov	rsi, QWORD PTR [rsp]
	je	.L4
	mov	rdi, rsi
	call	dma_fence_put@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	QWORD PTR [rsp], rsi
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	amdgpu_move_blit, .-amdgpu_move_blit
	.comm	ttm_bo_type_kernel,8,8
	.comm	TTM_PL_VRAM,8,8
	.comm	PAGE_SHIFT,4,4
	.comm	AMDGPU_POISON,4,4
	.comm	AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE,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_amdgpu_ttm.c_amdgpu_move_blit.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_move_blit, %function
amdgpu_move_blit:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r3
	mov	r4, r0
	ldr	r3, .L25
	sub	sp, sp, #48
	ldr	r0, [r0, #8]
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r8, [sp, #72]
	bl	amdgpu_ttm_adev
	mov	ip, #0
	ldr	r3, .L25+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	lsl	r3, r2, r3
	add	r2, sp, #12
	stm	sp, {r1, r2}
	add	r2, sp, #32
	add	r1, sp, #20
	str	r4, [sp, #28]
	str	r4, [sp, #40]
	str	r6, [sp, #36]
	str	r8, [sp, #24]
	str	ip, [sp, #12]
	str	ip, [sp, #20]
	str	ip, [sp, #32]
	bl	amdgpu_ttm_copy_mem_to_mem
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, .L25+8
	ldr	r2, [r8, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
.L20:
	ldr	r1, [sp, #12]
.L4:
	ldr	r3, .L25+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	mov	r3, r6
	beq	.L23
	mov	r2, r7
	mov	r0, r4
	bl	ttm_bo_pipeline_move
	mov	r5, r0
.L21:
	ldr	r0, [sp, #12]
.L11:
	bl	dma_fence_put
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	mov	r0, r4
	mov	r2, #1
	bl	ttm_bo_move_accel_cleanup
	mov	r5, r0
	b	.L21
.L2:
	ldr	r0, [sp, #12]
	cmp	r0, #0
	beq	.L11
	mov	r1, #0
	bl	dma_fence_wait
	b	.L21
.L3:
	mov	r0, r4
	bl	ttm_to_amdgpu_bo
	ldr	r3, .L25+16
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L20
	mov	r0, r4
	str	r5, [sp, #16]
	bl	ttm_to_amdgpu_bo
	ldr	r3, .L25+20
	mov	r2, r5
	ldr	r1, [r3]
	add	r3, sp, #16
	bl	amdgpu_fill_buffer
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, [sp, #16]
	ldr	r1, [sp, #12]
	cmp	r3, #0
	beq	.L4
	mov	r0, r1
	bl	dma_fence_put
	ldr	r1, [sp, #16]
	str	r1, [sp, #12]
	b	.L4
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	PAGE_SHIFT
	.word	TTM_PL_VRAM
	.word	ttm_bo_type_kernel
	.word	AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE
	.word	AMDGPU_POISON
	.size	amdgpu_move_blit, .-amdgpu_move_blit
	.comm	ttm_bo_type_kernel,4,4
	.comm	TTM_PL_VRAM,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	AMDGPU_POISON,4,4
	.comm	AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
