	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_dispatch_vertex
_r128_cce_dispatch_vertex:              ## @r128_cce_dispatch_vertex
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	16(%rsi), %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movl	(%r14), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %edx
	movl	(%rsi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%rsi), %ebx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	12(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r15)
	je	LBB0_7
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	movq	_R128_UPLOAD_CLIPRECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, 8(%r14)
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_r128_emit_state
LBB0_3:
	movl	4(%r14), %edx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$5, %edi
	callq	_BEGIN_RING
	movq	_R128_3D_RNDR_GEN_INDX_PRIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_CCE_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	movl	%ebx, %edi
	callq	_OUT_RING
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	movq	_R128_CCE_VC_CNTL_PRIM_WALK_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movq	_R128_CCE_VC_CNTL_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%ebx, %edi
	shll	%cl, %edi
	orl	%eax, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	addq	$3, %r15
	movl	4(%r14), %edx
	addq	$12, %r13
	addl	$-3, %r12d
	cmpl	%r15d, %edx
	jle	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rax
	cmpq	%rax, %r15
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rsi
	addq	%r13, %rsi
	addl	%r12d, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_r128_emit_clip_rects
	jmp	LBB0_6
LBB0_7:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 16(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	(%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
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 4(%rcx)
	movl	$0, 4(%rbx)
LBB0_9:
	movq	(%r15), %rax
	incl	12(%rax)
	movq	_R128_UPLOAD_CLIPRECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movl	$0, 4(%r14)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buf=%d nbox=%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_CCE_VC_CNTL_PRIM_WALK_LIST,4,2 ## @R128_CCE_VC_CNTL_PRIM_WALK_LIST
	.comm	_R128_CCE_VC_CNTL_NUM_SHIFT,4,2 ## @R128_CCE_VC_CNTL_NUM_SHIFT
	.comm	_R128_LAST_DISPATCH_REG,4,2     ## @R128_LAST_DISPATCH_REG
	.no_dead_strip	_r128_cce_dispatch_vertex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function r128_cce_dispatch_vertex
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_r128_cce_dispatch_vertex:              ; @r128_cce_dispatch_vertex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	ldr	x8, [x0]
	ldr	x9, [x1, #16]
	stp	x9, x8, [sp, #16]               ; 16-byte Folded Spill
	ldr	x24, [x8]
	ldp	w21, w22, [x1]
	ldr	w27, [x9]
	ldr	w1, [x1, #12]
	ldp	w23, w2, [x24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.1:
	mov	w8, #1
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9, #4]
	ldr	w8, [x24, #8]
Lloh2:
	adrp	x9, _R128_UPLOAD_CLIPRECTS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _R128_UPLOAD_CLIPRECTS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_r128_emit_state
LBB0_3:
	mov	w28, #0
	mov	x26, #0
	mov	x25, #0
	ldr	w8, [x24, #4]
Lloh5:
	adrp	x19, _R128_CCE_VC_CNTL_PRIM_WALK_LIST@GOTPAGE
Lloh6:
	ldr	x19, [x19, _R128_CCE_VC_CNTL_PRIM_WALK_LIST@GOTPAGEOFF]
Lloh7:
	adrp	x20, _R128_CCE_VC_CNTL_NUM_SHIFT@GOTPAGE
Lloh8:
	ldr	x20, [x20, _R128_CCE_VC_CNTL_NUM_SHIFT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #5
	bl	_BEGIN_RING
Lloh9:
	adrp	x8, _R128_3D_RNDR_GEN_INDX_PRIM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R128_3D_RNDR_GEN_INDX_PRIM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_CCE_PACKET3
	bl	_OUT_RING
	mov	x0, x21
	bl	_OUT_RING
	mov	x0, x22
	bl	_OUT_RING
	mov	x0, x23
	bl	_OUT_RING
	ldr	w8, [x19]
	orr	w8, w8, w27
	ldr	w9, [x20]
	lsl	w9, w22, w9
	orr	w0, w8, w9
	bl	_OUT_RING
	bl	_ADVANCE_RING
	add	x25, x25, #3
	ldr	w8, [x24, #4]
	add	x26, x26, #12
	sub	w28, w28, #3
	cmp	w8, w25
	b.le	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x25, w8, sxtw
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x24, #16]
	add	x1, x9, x26
	add	w2, w8, w28
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_r128_emit_clip_rects
	b	LBB0_4
LBB0_7:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19]
	ldr	w8, [x8, #12]
	str	w8, [x20, #8]
	mov	w0, #2
	bl	_BEGIN_RING
Lloh12:
	adrp	x8, _R128_LAST_DISPATCH_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R128_LAST_DISPATCH_REG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CCE_PACKET0
	bl	_OUT_RING
	ldr	w0, [x20, #8]
	bl	_OUT_RING
	bl	_ADVANCE_RING
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stur	d0, [x8, #4]
	str	wzr, [x20, #4]
LBB0_9:
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
Lloh17:
	adrp	x8, _R128_UPLOAD_CLIPRECTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R128_UPLOAD_CLIPRECTS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x24, #8]
	bic	w8, w9, w8
	stp	wzr, w8, [x24, #4]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buf=%d nbox=%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_CCE_VC_CNTL_PRIM_WALK_LIST,4,2 ; @R128_CCE_VC_CNTL_PRIM_WALK_LIST
	.comm	_R128_CCE_VC_CNTL_NUM_SHIFT,4,2 ; @R128_CCE_VC_CNTL_NUM_SHIFT
	.comm	_R128_LAST_DISPATCH_REG,4,2     ; @R128_LAST_DISPATCH_REG
	.no_dead_strip	_r128_cce_dispatch_vertex
.subsections_via_symbols
