	.file	"extr_via_dmablit.c_via_dmablit_sync.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DMA blit sync handle 0x%x engine %d returned %d\n"
	.text
	.p2align 4
	.type	via_dmablit_sync, @function
via_dmablit_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	rdx, edx
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rcx, rsp
	mov	rax, QWORD PTR [rax]
	lea	rbp, [rax+rdx*4]
	mov	edx, esi
	mov	esi, r12d
	mov	rdi, rbp
	call	via_dmablit_active@PLT
	test	rax, rax
	jne	.L9
.L2:
	xor	ecx, ecx
	mov	edx, r12d
	lea	rdi, .LC0[rip]
	mov	esi, r13d
	call	DRM_DEBUG@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	ecx, ecx
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, rbp
	call	via_dmablit_active@PLT
	xor	ecx, ecx
	test	rax, rax
	mov	eax, DWORD PTR HZ[rip]
	sete	cl
	xor	edi, edi
	lea	edx, [rax+rax*2]
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR [rax]
	call	VIA_WAIT_ON@PLT
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	via_dmablit_sync, .-via_dmablit_sync
	.comm	HZ,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_via_dmablit.c_via_dmablit_sync.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMA blit sync handle 0x%x engine %d returned %d\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	via_dmablit_sync, %function
via_dmablit_sync:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r2
	ldr	r3, [r0]
	sub	sp, sp, #12
	ldr	r6, [r3]
	ldr	ip, .L11
	add	r6, r6, r4, lsl #2
	mov	r2, r1
	mov	r5, r1
	mov	r0, r6
	mov	r1, r4
	mov	r3, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	via_dmablit_active
	cmp	r0, #0
	bne	.L9
.L2:
	mov	r2, r4
	mov	r3, #0
	mov	r1, r5
	ldr	r0, .L11+4
	bl	DRM_DEBUG
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, .L11+8
	ldr	lr, [sp]
	ldr	ip, [r3]
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	mov	r3, #0
	ldr	r7, [lr]
	add	r6, ip, ip, lsl #1
	bl	via_dmablit_active
	clz	r3, r0
	mov	r2, r6
	mov	r1, r7
	lsr	r3, r3, #5
	mov	r0, #0
	bl	VIA_WAIT_ON
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.word	HZ
	.size	via_dmablit_sync, .-via_dmablit_sync
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
