	.file	"extr_r128_state.c_r128_cce_dispatch_indices.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"indices: s=%d e=%d c=%d\n"
	.text
	.p2align 4
	.type	r128_cce_dispatch_indices, @function
r128_cce_dispatch_indices:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	mov	ecx, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	mov	edx, r14d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbx, QWORD PTR 8[rdi]
	mov	rsi, QWORD PTR 8[rsi]
	mov	DWORD PTR [rsp], r8d
	mov	rbp, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rsp], rsi
	mov	QWORD PTR 8[rsp], rbx
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 32[rsp], eax
	mov	rax, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR [rsi]
	mov	esi, r12d
	mov	DWORD PTR 36[rsp], eax
	call	DRM_DEBUG@PLT
	cmp	r12d, r14d
	je	.L9
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR 4[rax], 1
	mov	eax, DWORD PTR R128_UPLOAD_CLIPRECTS[rip]
	not	eax
	test	DWORD PTR 4[rbp], eax
	jne	.L19
.L5:
	mov	edx, r14d
	mov	rax, QWORD PTR 0[r13]
	movsx	rbx, DWORD PTR [r15]
	movsx	rcx, r12d
	sub	edx, r12d
	mov	edi, DWORD PTR R128_3D_RNDR_GEN_INDX_PRIM[rip]
	add	edx, 3
	add	rbx, rcx
	add	rbx, QWORD PTR 8[rax]
	movsx	rdx, edx
	shr	rdx, 2
	lea	esi, -2[rdx]
	mov	QWORD PTR 40[rsp], rdx
	call	CCE_PACKET3@PLT
	mov	edi, eax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 24[rsp]
	sub	edi, DWORD PTR 28[rsp]
	mov	DWORD PTR [rbx], eax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR R128_MAX_VB_VERTS[rip]
	mov	DWORD PTR 4[rbx], eax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 32[rsp]
	mov	DWORD PTR 8[rbx], eax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR [rsp]
	mov	DWORD PTR 12[rbx], eax
	sal	edi, 16
	or	edi, DWORD PTR R128_CCE_VC_CNTL_PRIM_WALK_IND[rip]
	or	edi, DWORD PTR 36[rsp]
	call	cpu_to_le32@PLT
	mov	DWORD PTR 16[rbx], eax
	test	BYTE PTR [rsp], 1
	jne	.L20
.L6:
	xor	ebx, ebx
	xor	ecx, ecx
	mov	QWORD PTR [rsp], rbp
	mov	eax, DWORD PTR 8[rbp]
	mov	ebp, ebx
	mov	rbx, rcx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, r14d
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, r13
	call	r128_cce_dispatch_indirect@PLT
	mov	rax, QWORD PTR [rsp]
	add	ebp, 3
	add	rbx, 12
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, ebp
	jle	.L21
.L8:
	cmp	ebp, eax
	jge	.L7
	sub	eax, ebp
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, eax
	mov	rax, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 16[rax]
	add	rsi, rbx
	call	r128_emit_clip_rects@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rbp, QWORD PTR [rsp]
.L9:
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 8[rax]
	cmp	QWORD PTR 16[rcx], 0
	mov	eax, DWORD PTR 12[rdx]
	jne	.L22
.L4:
	add	eax, 1
	mov	DWORD PTR 12[rdx], eax
	mov	eax, DWORD PTR R128_UPLOAD_CLIPRECTS[rip]
	mov	DWORD PTR 8[rbp], 0
	not	eax
	and	DWORD PTR 4[rbp], eax
	add	rsp, 56
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdx, QWORD PTR 40[rsp]
	movsx	rdx, edx
	and	DWORD PTR -4[rbx+rdx*4], -65536
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, QWORD PTR 8[rsp]
	call	r128_emit_state@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rbx, QWORD PTR 16[rsp]
	mov	edi, 2
	mov	DWORD PTR 8[rbx], eax
	call	BEGIN_RING@PLT
	mov	edi, DWORD PTR R128_LAST_DISPATCH_REG[rip]
	xor	esi, esi
	call	CCE_PACKET0@PLT
	mov	edi, eax
	call	OUT_RING@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	OUT_RING@PLT
	xor	eax, eax
	call	ADVANCE_RING@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[r15], 1
	mov	DWORD PTR 4[rbx], 0
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 12[rdx]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	r128_cce_dispatch_indices, .-r128_cce_dispatch_indices
	.comm	RING_LOCALS,4,4
	.comm	R128_UPLOAD_CLIPRECTS,4,4
	.comm	R128_MAX_VB_VERTS,4,4
	.comm	R128_LAST_DISPATCH_REG,4,4
	.comm	R128_CCE_VC_CNTL_PRIM_WALK_IND,4,4
	.comm	R128_3D_RNDR_GEN_INDX_PRIM,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_r128_state.c_r128_cce_dispatch_indices.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"indices: s=%d e=%d c=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r128_cce_dispatch_indices, %function
r128_cce_dispatch_indices:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r7, r3
	ldr	r10, [r0, #4]
	sub	sp, sp, #36
	ldr	r4, [r10, #4]
	ldr	fp, [r1, #8]
	ldr	lr, [r4]
	ldr	ip, [r0]
	str	lr, [sp, #20]
	ldr	lr, [r10]
	ldr	ip, [ip]
	str	lr, [sp, #16]
	ldr	lr, [fp]
	mov	r2, r3
	mov	r6, r0
	mov	r8, r1
	ldr	r3, [sp, #72]
	mov	r1, r5
	ldr	r0, .L23
	str	lr, [sp, #24]
	str	ip, [sp, #12]
	bl	DRM_DEBUG
	cmp	r5, r7
	beq	.L19
	ldr	r3, .L23+4
	mov	r1, #1
	mov	r2, r3
	str	r3, [sp, #4]
	ldr	r2, [r2]
	ldr	r3, [r4, #4]
	str	r1, [fp, #4]
	bics	r3, r3, r2
	bne	.L20
.L5:
	sub	r3, r7, r5
	ldr	r2, [r6]
	add	r3, r3, #3
	lsr	r3, r3, #2
	ldr	r0, .L23+8
	sub	r1, r3, #2
	str	r3, [sp, #28]
	ldr	r3, [r2, #4]
	ldr	r0, [r0]
	str	r3, [sp, #8]
	ldr	r9, [r8]
	bl	CCE_PACKET3
	bl	cpu_to_le32
	mov	r2, r0
	ldr	r1, [sp, #12]
	ldr	r3, [sp, #8]
	ldr	r0, [sp, #16]
	add	r9, r5, r9
	sub	r0, r1, r0
	str	r2, [r9, r3]
	bl	cpu_to_le32
	ldr	r3, [sp, #8]
	ldr	r2, .L23+12
	add	r9, r9, r3
	str	r0, [r9, #4]
	ldr	r0, [r2]
	bl	cpu_to_le32
	mov	r2, r0
	ldr	r0, [sp, #20]
	str	r2, [r9, #8]
	bl	cpu_to_le32
	ldr	r2, .L23+16
	ldr	r3, [sp, #72]
	str	r0, [r9, #12]
	ldr	r0, [r2]
	orr	r0, r0, r3, lsl #16
	ldr	r3, [sp, #24]
	orr	r0, r0, r3
	bl	cpu_to_le32
	ldr	r3, [sp, #72]
	str	r0, [r9, #16]
	tst	r3, #1
	bne	.L21
.L6:
	mov	r9, #0
	ldr	r2, [r4, #8]
	b	.L8
.L7:
	mov	r2, r5
	mov	r3, r7
	mov	r1, r8
	mov	r0, r6
	bl	r128_cce_dispatch_indirect
	ldr	r2, [r4, #8]
	add	r9, r9, #3
	cmp	r2, r9
	ble	.L9
.L8:
	cmp	r9, r2
	bge	.L7
	ldr	r1, [r4, #16]
	mov	r0, r10
	sub	r2, r2, r9
	add	r1, r1, r9, lsl #2
	bl	r128_emit_clip_rects
	b	.L7
.L19:
	ldr	r3, .L23+4
	str	r3, [sp, #4]
.L9:
	ldr	r3, [fp, #12]
	ldr	r1, [r10, #4]
	cmp	r3, #0
	ldr	r3, [r1, #12]
	bne	.L22
.L4:
	mov	r0, #0
	ldr	r2, [sp, #4]
	add	r3, r3, #1
	ldr	ip, [r2]
	ldr	r2, [r4, #4]
	str	r3, [r1, #12]
	bic	r2, r2, ip
	str	r2, [r4, #4]
	str	r0, [r4, #8]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, [sp, #28]
	sub	r3, r3, #-1073741823
	ldr	r2, [r9, r3, lsl #2]
	lsr	r2, r2, #16
	lsl	r2, r2, #16
	str	r2, [r9, r3, lsl #2]
	b	.L6
.L20:
	mov	r0, r10
	bl	r128_emit_state
	b	.L5
.L22:
	str	r3, [fp, #8]
	mov	r0, #2
	bl	BEGIN_RING
	ldr	r3, .L23+20
	mov	r1, #0
	ldr	r0, [r3]
	bl	CCE_PACKET0
	bl	OUT_RING
	ldr	r0, [fp, #8]
	bl	OUT_RING
	bl	ADVANCE_RING
	mov	r3, #1
	mov	r2, #0
	ldr	r1, [r10, #4]
	str	r3, [r8, #4]
	ldr	r3, [r1, #12]
	str	r2, [fp, #4]
	b	.L4
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	R128_UPLOAD_CLIPRECTS
	.word	R128_3D_RNDR_GEN_INDX_PRIM
	.word	R128_MAX_VB_VERTS
	.word	R128_CCE_VC_CNTL_PRIM_WALK_IND
	.word	R128_LAST_DISPATCH_REG
	.size	r128_cce_dispatch_indices, .-r128_cce_dispatch_indices
	.comm	RING_LOCALS,4,4
	.comm	R128_UPLOAD_CLIPRECTS,4,4
	.comm	R128_MAX_VB_VERTS,4,4
	.comm	R128_LAST_DISPATCH_REG,4,4
	.comm	R128_CCE_VC_CNTL_PRIM_WALK_IND,4,4
	.comm	R128_3D_RNDR_GEN_INDX_PRIM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
