	.file	"extr_radeon_vce.c_radeon_vce_ring_test.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"radeon: vce failed to lock ring %d (%d).\n"
	.align 8
.LC1:
	.string	"ring test on %d succeeded in %d usecs\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"radeon: ring %d test failed\n"
	.text
	.p2align 4
	.globl	radeon_vce_ring_test
	.type	radeon_vce_ring_test, @function
radeon_vce_ring_test:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	vce_v1_0_get_rptr@PLT
	mov	edx, 16
	mov	rsi, rbp
	mov	rdi, rbx
	mov	r13, rax
	call	radeon_ring_lock@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L11
	mov	edi, DWORD PTR VCE_CMD_END[rip]
	call	cpu_to_le32@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, rbx
	call	radeon_ring_unlock_commit@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L7
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, 1
	add	r12d, 1
	call	udelay@PLT
	cmp	DWORD PTR [rbx], r12d
	jbe	.L7
.L6:
	mov	rsi, rbp
	mov	rdi, rbx
	call	vce_v1_0_get_rptr@PLT
	cmp	rax, r13
	je	.L12
	mov	esi, DWORD PTR 0[rbp]
	cmp	DWORD PTR [rbx], r12d
	jbe	.L7
	mov	edx, r12d
	lea	rdi, .LC1[rip]
	call	DRM_INFO@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r14d, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r14d
	pop	r13
	.cfi_def_cfa_offset 16
	mov	eax, r14d
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	radeon_vce_ring_test, .-radeon_vce_ring_test
	.comm	VCE_CMD_END,4,4
	.comm	ETIMEDOUT,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_vce.c_radeon_vce_ring_test.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"radeon: vce failed to lock ring %d (%d).\012\000"
	.align	2
.LC1:
	.ascii	"ring test on %d succeeded in %d usecs\012\000"
	.align	2
.LC2:
	.ascii	"radeon: ring %d test failed\012\000"
	.text
	.align	2
	.global	radeon_vce_ring_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_vce_ring_test, %function
radeon_vce_ring_test:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r6, r1
	bl	vce_v1_0_get_rptr
	mov	r1, r6
	mov	r7, r0
	mov	r2, #16
	mov	r0, r5
	bl	radeon_ring_lock
	subs	r8, r0, #0
	bne	.L15
	ldr	r3, .L17
	ldr	r0, [r3]
	bl	cpu_to_le32
	mov	r1, r0
	mov	r0, r6
	bl	radeon_ring_write
	mov	r2, r8
	mov	r1, r6
	mov	r0, r5
	bl	radeon_ring_unlock_commit
	ldr	r3, [r5]
	cmp	r3, #0
	movne	r4, r8
	bne	.L6
	b	.L13
.L16:
	mov	r0, #1
	bl	udelay
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L13
.L6:
	mov	r1, r6
	mov	r0, r5
	bl	vce_v1_0_get_rptr
	cmp	r0, r7
	beq	.L16
	ldr	r3, [r5]
	ldr	r1, [r6]
	cmp	r3, r4
	bls	.L7
	mov	r2, r4
	ldr	r0, .L17+4
	bl	DRM_INFO
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r2, r8
	ldr	r1, [r6]
	ldr	r0, .L17+8
	bl	DRM_ERROR
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r1, [r6]
.L7:
	ldr	r0, .L17+12
	bl	DRM_ERROR
	ldr	r3, .L17+16
	ldr	r8, [r3]
	rsb	r8, r8, #0
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	VCE_CMD_END
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	ETIMEDOUT
	.size	radeon_vce_ring_test, .-radeon_vce_ring_test
	.comm	VCE_CMD_END,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
