	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_dispatch_draw
_savage_dispatch_draw:                  ## @savage_dispatch_draw
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	32(%rbp), %rcx
	movl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %r14
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rsi
	movq	%r13, %rdi
	callq	*(%r13)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_savage_dispatch_dma_prim
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	testl	%eax, %eax
	jne	LBB0_14
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %r15
	jae	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r15), %r12
	movq	%r12, -56(%rbp)
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	addq	$8, %r15
	shrq	$32, %r12
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	16(%rbp), %r8d
	callq	_savage_dispatch_vb_prim
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	leal	3(%r12), %eax
	addl	$6, %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$2, %r12d
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	16(%rbp), %r9d
	callq	_savage_dispatch_vb_idx
	leaq	(%r15,%r12,8), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	leal	3(%r12), %eax
	addl	$6, %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$2, %r12d
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_savage_dispatch_dma_idx
	leaq	(%r15,%r12,8), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	32(%rbp), %rcx
	jne	LBB0_2
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IMPLEMENTATION ERROR: non-drawing-command %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_savage_dispatch_draw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_dispatch_draw
_savage_dispatch_draw:                  ; @savage_dispatch_draw
	.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
	cbz	w7, LBB0_12
; %bb.1:
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x26, x1
	mov	x25, x0
	mov	x27, #0
	ldr	x9, [x29, #16]
	mov	w8, w7
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x28, lJTI0_0@PAGE
Lloh1:
	add	x28, x28, lJTI0_0@PAGEOFF
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x8, [x25]
	add	x1, x9, x27, lsl #2
	mov	x0, x25
	blr	x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x1, sp, #24
	mov	x0, x25
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_savage_dispatch_vb_prim
	cbnz	w0, LBB0_14
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x26, x23
	b.hs	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x1, [x26], #8
	str	x1, [sp, #24]
	sub	w9, w1, #128
	cmp	w9, #3
	b.hi	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	lsr	x8, x1, #32
	adr	x10, LBB0_3
	ldrb	w11, [x28, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	w9, w8, #3
	add	w8, w8, #6
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w24, w8, #2
	add	x1, sp, #24
	mov	x0, x25
	mov	x2, x26
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_savage_dispatch_vb_idx
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x1, sp, #24
	mov	x0, x25
	mov	x2, x22
	bl	_savage_dispatch_dma_prim
	cbz	w0, LBB0_4
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	w9, w8, #3
	add	w8, w8, #6
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w24, w8, #2
	add	x1, sp, #24
	mov	x0, x25
	mov	x2, x26
	mov	x3, x22
	bl	_savage_dispatch_dma_idx
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x26, x26, w24, uxtw #3
	cbz	w0, LBB0_4
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x27, #1
	ldp	x8, x9, [sp]                    ; 16-byte Folded Reload
	cmp	x27, x8
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	b.ne	LBB0_2
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DRM_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IMPLEMENTATION ERROR: non-drawing-command %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_savage_dispatch_draw
.subsections_via_symbols
