	.file	"extr_radeon_test.c_radeon_test_syncing.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Testing syncing between rings %d and %d...\n"
	.align 8
.LC1:
	.string	"Testing syncing between rings %d, %d and %d...\n"
	.text
	.p2align 4
	.globl	radeon_test_syncing
	.type	radeon_test_syncing, @function
radeon_test_syncing:
.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
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	cmp	DWORD PTR RADEON_NUM_RINGS[rip], 1
	mov	QWORD PTR [rsp], 1
	jle	.L1
	mov	rbp, rdi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	QWORD PTR [rsp], 1
	mov	rax, QWORD PTR [rsp]
	cmp	DWORD PTR RADEON_NUM_RINGS[rip], eax
	jle	.L1
.L2:
	mov	rdx, QWORD PTR [rsp]
	mov	rax, QWORD PTR 0[rbp]
	lea	r12, [rax+rdx*4]
	mov	DWORD PTR 12[rsp], edx
	mov	ecx, DWORD PTR [r12]
	test	ecx, ecx
	je	.L3
	xor	r15d, r15d
	mov	r14, r15
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	add	r14, 1
	cmp	r14, QWORD PTR [rsp]
	je	.L3
	mov	rax, QWORD PTR 0[rbp]
.L11:
	lea	rbx, [rax+r14*4]
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L6
	mov	rsi, rbx
	mov	rdi, r12
	call	radeon_test_sync_possible@PLT
	test	eax, eax
	je	.L6
	mov	r15d, DWORD PTR 12[rsp]
	mov	edx, r14d
	lea	rdi, .LC0[rip]
	xor	eax, eax
	mov	esi, r15d
	call	DRM_INFO@PLT
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, rbp
	call	radeon_test_ring_sync@PLT
	mov	edx, r15d
	mov	esi, r14d
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	DRM_INFO@PLT
	mov	rdx, r12
	mov	rsi, rbx
	mov	rdi, rbp
	call	radeon_test_ring_sync@PLT
	test	r14, r14
	je	.L6
	mov	eax, r14d
	lea	esi, -1[r14]
	xor	r15d, r15d
	mov	QWORD PTR 24[rsp], r14
	mov	r13, rbp
	mov	QWORD PTR 16[rsp], rsi
	mov	r14, r15
	mov	ebp, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r14, rax
.L10:
	mov	rax, QWORD PTR 0[r13]
	lea	r15, [rax+r14*4]
	mov	eax, DWORD PTR [r15]
	test	eax, eax
	je	.L8
	mov	rsi, r15
	mov	rdi, r12
	call	radeon_test_sync_possible@PLT
	test	eax, eax
	je	.L8
	mov	rsi, r15
	mov	rdi, rbx
	call	radeon_test_sync_possible@PLT
	test	eax, eax
	je	.L8
	mov	esi, DWORD PTR 12[rsp]
	mov	ecx, r14d
	mov	edx, ebp
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_INFO@PLT
	mov	rcx, r15
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, r13
	call	radeon_test_ring_sync2@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	ecx, ebp
	mov	edx, r14d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_INFO@PLT
	mov	rcx, rbx
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, r13
	call	radeon_test_ring_sync2@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, r14d
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_INFO@PLT
	mov	rcx, r15
	mov	rdx, r12
	mov	rsi, rbx
	mov	rdi, r13
	call	radeon_test_ring_sync2@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, r14d
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_INFO@PLT
	mov	rcx, r12
	mov	rdx, r15
	mov	rsi, rbx
	mov	rdi, r13
	call	radeon_test_ring_sync2@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, ebp
	mov	esi, r14d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_INFO@PLT
	mov	rcx, rbx
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r13
	call	radeon_test_ring_sync2@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, ebp
	mov	esi, r14d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_INFO@PLT
	mov	rcx, r12
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, r13
	call	radeon_test_ring_sync2@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rax, 1[r14]
	cmp	r14, QWORD PTR 16[rsp]
	jne	.L14
	mov	r14, QWORD PTR 24[rsp]
	mov	rbp, r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	radeon_test_syncing, .-radeon_test_syncing
	.comm	RADEON_NUM_RINGS,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_test.c_radeon_test_syncing.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Testing syncing between rings %d and %d...\012\000"
	.align	2
.LC1:
	.ascii	"Testing syncing between rings %d, %d and %d...\012\000"
	.text
	.align	2
	.global	radeon_test_syncing
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_test_syncing, %function
radeon_test_syncing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #1
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r9, r0
	mov	r8, #1
	ldr	fp, .L33+4
	b	.L2
.L3:
	ldr	r3, .L33
	add	r8, r8, #1
	ldr	r3, [r3]
	cmp	r3, r8
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, [r9]
	ldr	r3, [r1, r8, lsl #2]
	add	r7, r1, r8, lsl #2
	cmp	r3, #0
	beq	.L3
	mov	r4, #0
	b	.L11
.L6:
	add	r4, r4, #1
	cmp	r4, r8
	beq	.L3
	ldr	r1, [r9]
.L11:
	ldr	r3, [r1, r4, lsl #2]
	add	r6, r1, r4, lsl #2
	cmp	r3, #0
	beq	.L6
	mov	r1, r6
	mov	r0, r7
	bl	radeon_test_sync_possible
	cmp	r0, #0
	beq	.L6
	mov	r2, r4
	mov	r1, r8
	ldr	r0, .L33+8
	bl	DRM_INFO
	mov	r2, r6
	mov	r1, r7
	mov	r0, r9
	bl	radeon_test_ring_sync
	mov	r2, r8
	mov	r1, r4
	ldr	r0, .L33+8
	bl	DRM_INFO
	mov	r2, r7
	mov	r1, r6
	mov	r0, r9
	bl	radeon_test_ring_sync
	cmp	r4, #0
	beq	.L6
	mov	r5, #0
.L10:
	ldr	r1, [r9]
	ldr	r3, [r1, r5, lsl #2]
	add	r10, r1, r5, lsl #2
	cmp	r3, #0
	beq	.L8
	mov	r1, r10
	mov	r0, r7
	bl	radeon_test_sync_possible
	cmp	r0, #0
	beq	.L8
	mov	r1, r10
	mov	r0, r6
	bl	radeon_test_sync_possible
	cmp	r0, #0
	beq	.L8
	mov	r3, r5
	mov	r2, r4
	mov	r1, r8
	mov	r0, fp
	bl	DRM_INFO
	mov	r3, r10
	mov	r2, r6
	mov	r1, r7
	mov	r0, r9
	bl	radeon_test_ring_sync2
	mov	r3, r4
	mov	r2, r5
	mov	r1, r8
	mov	r0, fp
	bl	DRM_INFO
	mov	r3, r6
	mov	r2, r10
	mov	r1, r7
	mov	r0, r9
	bl	radeon_test_ring_sync2
	mov	r3, r5
	mov	r2, r8
	mov	r1, r4
	mov	r0, fp
	bl	DRM_INFO
	mov	r3, r10
	mov	r2, r7
	mov	r1, r6
	mov	r0, r9
	bl	radeon_test_ring_sync2
	mov	r3, r8
	mov	r2, r5
	mov	r1, r4
	mov	r0, fp
	bl	DRM_INFO
	mov	r3, r7
	mov	r2, r10
	mov	r1, r6
	mov	r0, r9
	bl	radeon_test_ring_sync2
	mov	r3, r4
	mov	r2, r8
	mov	r1, r5
	mov	r0, fp
	bl	DRM_INFO
	mov	r3, r6
	mov	r2, r7
	mov	r1, r10
	mov	r0, r9
	bl	radeon_test_ring_sync2
	mov	r3, r8
	mov	r2, r4
	mov	r1, r5
	mov	r0, fp
	bl	DRM_INFO
	mov	r3, r7
	mov	r2, r6
	mov	r1, r10
	mov	r0, r9
	bl	radeon_test_ring_sync2
.L8:
	add	r5, r5, #1
	cmp	r5, r4
	bne	.L10
	b	.L6
.L34:
	.align	2
.L33:
	.word	RADEON_NUM_RINGS
	.word	.LC1
	.word	.LC0
	.size	radeon_test_syncing, .-radeon_test_syncing
	.comm	RADEON_NUM_RINGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
