	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_dispatch_vb_prim
_savage_dispatch_vb_prim:               ## @savage_dispatch_vb_prim
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rsi), %ebx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movl	%r8d, %r15d
	movl	(%rsi), %eax
	xorl	%r8d, %r8d
	movq	%rax, %r14
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.2:
	movl	4(%rsi), %r13d
	movl	12(%rsi), %r12d
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	jmpq	*%rax
LBB0_3:
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %ebx
	ja	LBB0_11
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_6:
	movb	$1, %r8b
LBB0_7:
	imull	$-1431655765, %ebx, %eax        ## imm = 0xAAAAAAAB
	cmpl	$1431655766, %eax               ## imm = 0x55555556
	jb	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	jmp	LBB0_16
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_10:
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	$130, %r14d
LBB0_11:
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_S3_SAVAGE3D_SERIES
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_SAVAGE_SKIP_ALL_S3D@GOTPCREL(%rip), %rcx
	movl	$8, %esi
	jmp	LBB0_14
LBB0_13:
	movq	_SAVAGE_SKIP_ALL_S4@GOTPCREL(%rip), %rcx
	movl	$10, %esi
LBB0_14:
	cmpl	(%rcx), %r13d
	movq	%r14, %rbx
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	jbe	LBB0_22
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r13d, %esi
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	callq	_DRM_ERROR
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_19:
	subl	(%rax), %r14d
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.21:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	%r13d, %ecx
	andl	$1, %ecx
	movl	%r13d, %edx
	shll	$30, %edx
	sarl	$31, %edx
	subl	%ecx, %edx
	movl	%r13d, %ecx
	shll	$29, %ecx
	sarl	$31, %ecx
	addl	%edx, %ecx
	movl	%r13d, %edx
	shll	$28, %edx
	sarl	$31, %edx
	addl	%ecx, %edx
	movl	%r13d, %ecx
	shll	$27, %ecx
	sarl	$31, %ecx
	addl	%edx, %ecx
	movl	%r13d, %edx
	shll	$26, %edx
	sarl	$31, %edx
	addl	%ecx, %edx
	movl	%r13d, %ecx
	shll	$25, %ecx
	sarl	$31, %ecx
	addl	%edx, %ecx
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	movsbl	%r13b, %r13d
	sarl	$7, %r13d
	addl	%ecx, %r13d
	addl	%esi, %r13d
	cmpl	%r15d, %r13d
	jbe	LBB0_24
## %bb.23:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r13d, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_18
LBB0_24:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leal	(%r12,%rdi), %ecx
	leal	(,%r15,4), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	divl	%esi
	cmpl	%eax, %ecx
	jbe	LBB0_26
## %bb.25:
	decl	%ecx
	leaq	L_.str.5(%rip), %rdi
	movl	%r12d, %esi
	movl	%ecx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_18
LBB0_26:
	shll	$25, %ebx
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%eax, %eax
	callq	_DMA_COMMIT
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-72(%rbp), %r12d                ## 4-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_BCI_CMD_DRAW_CONT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	xorl	%r14d, %r14d
                                        ## kill: def $r12d killed $r12d def $r12
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	subl	-120(%rbp), %edi                ## 4-byte Folded Reload
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	je	LBB0_20
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_37 Depth 2
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$255, %edi
	movl	$255, %ebx
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	cmovbl	%edi, %ebx
	testb	%al, %al
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	$-1, -56(%rbp)
	movq	$-1, -64(%rbp)
	movl	%r12d, %eax
	imulq	%rcx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%r12d, %ecx
	subl	%eax, %ecx
	movl	$2, -64(%rbp,%rcx,4)
	movl	%ebx, %edi
	imull	%r13d, %edi
	incl	%edi
	callq	_BEGIN_DMA
	movl	%ebx, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_DMA_DRAW_PRIMITIVE
	leal	(%r12,%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r12d
	jae	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	imulq	%rcx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%r12d, %ecx
	subl	%eax, %ecx
	movl	-64(%rbp,%rcx,4), %eax
	addl	%r12d, %eax
	imull	%r15d, %eax
	leaq	(%r14,%rax,4), %rdi
	movl	%r13d, %esi
	callq	_DMA_COPY
	incl	%r12d
	decl	%ebx
	jne	LBB0_32
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	%ebx, %r14d
	imull	%r13d, %r14d
	leal	1(%r14), %edi
	movq	%rbx, %r15
	callq	_BEGIN_DMA
	movl	%r15d, %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_DMA_DRAW_PRIMITIVE
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpl	%ecx, %r13d
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	%r12d, %eax
	imull	%ecx, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movl	%r14d, %esi
	callq	_DMA_COPY
	addl	%r15d, %r12d
                                        ## kill: def $r12d killed $r12d killed $r12
	movq	-112(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_41
LBB0_35:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%rcx, %rax
	leal	(%r12,%r15), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %r12d
	jae	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%rax, %rcx
	imull	%ecx, %r12d
	movl	%r15d, %ebx
	movq	%rax, %r15
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	leaq	(%r14,%rax,4), %rdi
	movl	%r13d, %esi
	callq	_DMA_COPY
	addl	%r15d, %r12d
	decl	%ebx
	jne	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%rax, %r15
LBB0_40:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	-72(%rbp), %r12d                ## 4-byte Reload
LBB0_41:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%eax, %eax
	callq	_DMA_COMMIT
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_28
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_DMA_LOCALS,4,2                 ## @DMA_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong number of vertices %u in TRILIST\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"wrong number of vertices %u in TRIFAN/STRIP\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid primitive type %u\n"

	.comm	_SAVAGE_SKIP_ALL_S3D,4,2        ## @SAVAGE_SKIP_ALL_S3D
L_.str.3:                               ## @.str.3
	.asciz	"invalid skip flags 0x%04x\n"

	.comm	_SAVAGE_SKIP_ALL_S4,4,2         ## @SAVAGE_SKIP_ALL_S4
L_.str.4:                               ## @.str.4
	.asciz	"vertex size greater than vb stride (%u > %u)\n"

L_.str.5:                               ## @.str.5
	.asciz	"vertex indices (%u-%u) out of range (0-%u)\n"

	.comm	_BCI_CMD_DRAW_CONT,4,2          ## @BCI_CMD_DRAW_CONT
	.no_dead_strip	_savage_dispatch_vb_prim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_dispatch_vb_prim
_savage_dispatch_vb_prim:               ; @savage_dispatch_vb_prim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	w20, [x1, #8]
	cbz	w20, LBB0_5
; %bb.1:
	ldr	w26, [x1]
	sub	w8, w26, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.2:
	mov	x19, x4
	mov	x25, x3
	mov	x21, x2
	mov	w27, #0
	ldr	w22, [x1, #4]
	ldr	w23, [x1, #12]
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	cmp	w20, #2
	b.hi	LBB0_10
; %bb.4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	b	LBB0_24
LBB0_6:
	mov	w27, #1
LBB0_7:
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	mul	w8, w20, w8
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	cmp	w8, w9
	b.lo	LBB0_12
; %bb.8:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	mov	x1, x20
	b	LBB0_23
LBB0_10:
	mov	w27, #0
	b	LBB0_13
LBB0_11:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x26
	b	LBB0_23
LBB0_12:
	mov	w26, #130
LBB0_13:
	ldr	w0, [x0]
	bl	_S3_SAVAGE3D_SERIES
	cbz	x0, LBB0_16
; %bb.14:
Lloh11:
	adrp	x8, _SAVAGE_SKIP_ALL_S3D@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAVAGE_SKIP_ALL_S3D@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w22, w8
	b.hi	LBB0_17
; %bb.15:
	mov	w8, #8
	b	LBB0_19
LBB0_16:
Lloh14:
	adrp	x8, _SAVAGE_SKIP_ALL_S4@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAVAGE_SKIP_ALL_S4@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ls	LBB0_18
LBB0_17:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	b	LBB0_23
LBB0_18:
	mov	w8, #10
LBB0_19:
	and	w9, w22, #0x1
	sbfx	w10, w22, #1, #1
	lsl	w11, w22, #29
	lsl	w12, w22, #28
	lsl	w13, w22, #27
	lsl	w14, w22, #26
	lsl	w15, w22, #25
	lsl	w16, w22, #24
	sub	w9, w10, w9
	add	w9, w9, w11, asr #31
	add	w9, w9, w12, asr #31
	add	w9, w9, w13, asr #31
	add	w9, w9, w14, asr #31
	add	w9, w9, w15, asr #31
	add	w9, w9, w16, asr #31
	add	w24, w9, w8
	cmp	w24, w19
	b.ls	LBB0_21
; %bb.20:
	str	x19, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	b	LBB0_23
LBB0_21:
	lsl	w8, w19, #2
	udiv	w8, w25, w8
	add	w9, w23, w20
	cmp	w9, w8
	b.ls	LBB0_26
; %bb.22:
	sub	w9, w9, #1
	stp	x9, x8, [sp]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x23
LBB0_23:
	bl	_DRM_ERROR
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldr	x8, [sp, #56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.25:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_26:
	stp	w27, w22, [sp, #28]             ; 8-byte Folded Spill
	lsl	w25, w26, #25
	mov	w28, #43691
	movk	w28, #43690, lsl #16
	add	x22, sp, #40
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	bl	_DMA_COMMIT
	ldr	w26, [sp, #36]                  ; 4-byte Folded Reload
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	w0, #0
Lloh29:
	adrp	x8, _BCI_CMD_DRAW_CONT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BCI_CMD_DRAW_CONT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w25, w8, w25
	mov	x23, x26
	subs	w20, w20, w27
	b.eq	LBB0_24
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
                                        ;     Child Loop BB0_37 Depth 2
	cmp	w20, #255
	mov	w8, #255
	csel	w27, w20, w8, lo
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x8, #-1
	str	x8, [sp, #40]
	str	w8, [sp, #48]
	umull	x8, w23, w28
	lsr	x8, x8, #33
	add	w8, w8, w8, lsl #1
	sub	w8, w23, w8
	mov	w9, #2
	str	w9, [x22, w8, uxtw #2]
	orr	w8, wzr, #0x1
	madd	w0, w27, w24, w8
	bl	_BEGIN_DMA
	mov	x0, x27
	mov	x1, x25
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_DMA_DRAW_PRIMITIVE
	add	w8, w23, w27
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	cmp	w23, w8
	b.hs	LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x26, x27
LBB0_32:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	umull	x8, w23, w28
	lsr	x8, x8, #33
	sub	w8, w8, w8, lsl #2
	add	w8, w23, w8
	ldr	w8, [x22, w8, uxtw #2]
	add	w8, w23, w8
	mul	w8, w8, w19
	add	x0, x21, w8, uxtw #2
	mov	x1, x24
	bl	_DMA_COPY
	add	w23, w23, #1
	subs	w26, w26, #1
	b.ne	LBB0_32
	b	LBB0_27
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
	mul	w26, w27, w24
	add	w0, w26, #1
	bl	_BEGIN_DMA
	mov	x0, x27
	mov	x1, x25
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_DMA_DRAW_PRIMITIVE
	cmp	w24, w19
	b.ne	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=1
	mul	w8, w23, w19
	add	x0, x21, w8, uxtw #2
	mov	x1, x26
	bl	_DMA_COPY
	add	w26, w23, w27
	b	LBB0_39
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w26, w23, w27
	cmp	w23, w26
	b.hs	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=1
	str	w26, [sp, #36]                  ; 4-byte Folded Spill
	mul	w23, w19, w23
	mov	x26, x27
LBB0_37:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x21, w23, uxtw #2
	mov	x1, x24
	bl	_DMA_COPY
	add	w23, w23, w19
	subs	w26, w26, #1
	b.ne	LBB0_37
; %bb.38:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w26, [sp, #36]                  ; 4-byte Folded Reload
LBB0_39:                                ;   in Loop: Header=BB0_29 Depth=1
	bl	_DMA_COMMIT
	b	LBB0_28
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_DMA_LOCALS,4,2                 ; @DMA_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong number of vertices %u in TRILIST\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"wrong number of vertices %u in TRIFAN/STRIP\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid primitive type %u\n"

	.comm	_SAVAGE_SKIP_ALL_S3D,4,2        ; @SAVAGE_SKIP_ALL_S3D
l_.str.3:                               ; @.str.3
	.asciz	"invalid skip flags 0x%04x\n"

	.comm	_SAVAGE_SKIP_ALL_S4,4,2         ; @SAVAGE_SKIP_ALL_S4
l_.str.4:                               ; @.str.4
	.asciz	"vertex size greater than vb stride (%u > %u)\n"

l_.str.5:                               ; @.str.5
	.asciz	"vertex indices (%u-%u) out of range (0-%u)\n"

	.comm	_BCI_CMD_DRAW_CONT,4,2          ; @BCI_CMD_DRAW_CONT
	.no_dead_strip	_savage_dispatch_vb_prim
.subsections_via_symbols
