	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_dispatch_indices
_r128_cce_dispatch_indices:             ## @r128_cce_dispatch_indices
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rdx
	movq	8(%rcx), %r14
	movl	(%r14), %esi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	(%rax), %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	subl	(%rcx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r8d, %ecx
	callq	_DRM_DEBUG
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
                                        ## kill: def $r15d killed $r15d def $r15
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	subl	%r12d, %r15d
	jne	LBB0_1
LBB0_9:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 16(%rbx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	8(%r15), %rax
	movl	12(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_R128_LAST_DISPATCH_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CCE_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	8(%rbx), %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	movl	$0, 4(%rbx)
LBB0_11:
	movq	8(%r15), %rax
	incl	12(%rax)
	movq	_R128_UPLOAD_CLIPRECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	movl	$0, 8(%r14)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	movq	_R128_UPLOAD_CLIPRECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, 4(%r14)
	je	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_r128_emit_state
LBB0_3:
	addl	$3, %r15d
	sarl	$2, %r15d
	movq	(%rbx), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %r12
	addq	8(%rax), %r12
	movslq	-48(%rbp), %r13                 ## 4-byte Folded Reload
	movq	_R128_3D_RNDR_GEN_INDX_PRIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	-2(%r15), %esi
	callq	_CCE_PACKET3
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13,%r12)
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 4(%r13,%r12)
	movq	_R128_MAX_VB_VERTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r13,%r12)
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 12(%r13,%r12)
	movq	_R128_CCE_VC_CNTL_PRIM_WALK_IND@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	shll	$16, %ecx
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	orl	%ecx, %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 16(%r13,%r12)
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_5
## %bb.4:
	addq	%r13, %r12
	movslq	%r15d, %rax
	movzwl	-2(%r12,%rax,4), %ecx
	shll	$16, %ecx
	movl	%ecx, -4(%r12,%rax,4)
LBB0_5:
	movl	8(%r14), %edx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	callq	_r128_cce_dispatch_indirect
	addq	$3, %r13
	movl	8(%r14), %edx
	addq	$12, %r12
	addl	$-3, %r15d
	cmpl	%r13d, %edx
	jle	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rax
	cmpq	%rax, %r13
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %rsi
	addq	%r12, %rsi
	addl	%r15d, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_r128_emit_clip_rects
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"indices: s=%d e=%d c=%d\n"

	.comm	_R128_UPLOAD_CLIPRECTS,4,2      ## @R128_UPLOAD_CLIPRECTS
	.comm	_R128_3D_RNDR_GEN_INDX_PRIM,4,2 ## @R128_3D_RNDR_GEN_INDX_PRIM
	.comm	_R128_MAX_VB_VERTS,4,2          ## @R128_MAX_VB_VERTS
	.comm	_R128_CCE_VC_CNTL_PRIM_WALK_IND,4,2 ## @R128_CCE_VC_CNTL_PRIM_WALK_IND
	.comm	_R128_LAST_DISPATCH_REG,4,2     ## @R128_LAST_DISPATCH_REG
	.no_dead_strip	_r128_cce_dispatch_indices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_cce_dispatch_indices
_r128_cce_dispatch_indices:             ; @r128_cce_dispatch_indices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x28, [x1, #8]
	ldp	x8, x20, [x0]
	ldr	x27, [x20, #8]
	ldr	w9, [x27]
	ldr	w26, [x8]
	ldr	w24, [x20]
	ldr	w8, [x28]
	stp	w9, w8, [sp, #4]                ; 8-byte Folded Spill
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x3
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x3, x4
	bl	_DRM_DEBUG
	subs	w25, w21, w22
	b.ne	LBB0_4
LBB0_1:
	ldr	x8, [x28, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #12]
	str	w8, [x28, #8]
	mov	w0, #2
	bl	_BEGIN_RING
Lloh2:
	adrp	x8, _R128_LAST_DISPATCH_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R128_LAST_DISPATCH_REG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CCE_PACKET0
	bl	_OUT_RING
	ldr	w0, [x28, #8]
	bl	_OUT_RING
	bl	_ADVANCE_RING
	mov	w8, #1
	str	w8, [x19, #4]
	str	wzr, [x28, #4]
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
Lloh5:
	adrp	x8, _R128_UPLOAD_CLIPRECTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R128_UPLOAD_CLIPRECTS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x27, #4]
	bic	w8, w9, w8
	stp	w8, wzr, [x27, #4]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	sub	w26, w26, w24
	mov	w8, #1
	str	w8, [x28, #4]
	ldr	w8, [x27, #4]
Lloh8:
	adrp	x9, _R128_UPLOAD_CLIPRECTS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _R128_UPLOAD_CLIPRECTS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_r128_emit_state
LBB0_6:
	add	w8, w25, #3
	asr	w10, w8, #2
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9
	add	x25, x8, w22, sxtw
Lloh11:
	adrp	x8, _R128_3D_RNDR_GEN_INDX_PRIM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R128_3D_RNDR_GEN_INDX_PRIM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	w10, [sp]                       ; 4-byte Folded Spill
	sub	w1, w10, #2
	bl	_CCE_PACKET3
	bl	_cpu_to_le32
	str	w0, [x25]
	mov	x0, x26
	bl	_cpu_to_le32
	str	w0, [x25, #4]
Lloh14:
	adrp	x8, _R128_MAX_VB_VERTS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R128_MAX_VB_VERTS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x25, #8]
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_cpu_to_le32
	str	w0, [x25, #12]
Lloh17:
	adrp	x8, _R128_CCE_VC_CNTL_PRIM_WALK_IND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R128_CCE_VC_CNTL_PRIM_WALK_IND@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldp	w9, w24, [sp, #8]               ; 8-byte Folded Reload
	orr	w9, w9, w24, lsl #16
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	w0, [x25, #16]
	tbz	w24, #0, LBB0_8
; %bb.7:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	sub	w8, w8, #1
	add	x8, x25, w8, sxtw #2
	ldrh	w9, [x8, #2]
	lsl	w9, w9, #16
	str	w9, [x8]
LBB0_8:
	mov	w24, #0
	mov	x25, #0
	mov	x26, #0
	ldr	w8, [x27, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_r128_cce_dispatch_indirect
	add	x26, x26, #3
	ldr	w8, [x27, #8]
	add	x25, x25, #12
	sub	w24, w24, #3
	cmp	w8, w26
	b.le	LBB0_1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x26, w8, sxtw
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x27, #16]
	add	x1, x9, x25
	add	w2, w8, w24
	mov	x0, x20
	bl	_r128_emit_clip_rects
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"indices: s=%d e=%d c=%d\n"

	.comm	_R128_UPLOAD_CLIPRECTS,4,2      ; @R128_UPLOAD_CLIPRECTS
	.comm	_R128_3D_RNDR_GEN_INDX_PRIM,4,2 ; @R128_3D_RNDR_GEN_INDX_PRIM
	.comm	_R128_MAX_VB_VERTS,4,2          ; @R128_MAX_VB_VERTS
	.comm	_R128_CCE_VC_CNTL_PRIM_WALK_IND,4,2 ; @R128_CCE_VC_CNTL_PRIM_WALK_IND
	.comm	_R128_LAST_DISPATCH_REG,4,2     ; @R128_LAST_DISPATCH_REG
	.no_dead_strip	_r128_cce_dispatch_indices
.subsections_via_symbols
