	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mga_dma_dispatch_indices
_mga_dma_dispatch_indices:              ## @mga_dma_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	24(%rsi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	movl	16(%rsi), %esi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	20(%rax), %r12d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %ecx
	callq	_DRM_DEBUG
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r13d, %ebx
	jne	LBB0_1
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_AGE_BUFFER
	xorps	%xmm0, %xmm0
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movups	%xmm0, (%rsi)
	movl	$0, (%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mga_freelist_put
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FLUSH_DMA                      ## TAILCALL
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_MGA_EMIT_STATE
	addl	%r12d, -44(%rbp)                ## 4-byte Folded Spill
	addl	%r12d, -48(%rbp)                ## 4-byte Folded Spill
	movl	(%r15), %eax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_BEGIN_DMA
	movq	_MGA_DMAPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MGA_SETUPADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MGA_SETUPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	xorl	%esi, %esi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	callq	_DMA_BLOCK
	addq	$16, %rsp
	xorl	%eax, %eax
	callq	_ADVANCE_DMA
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	cmpq	%rax, %r13
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	callq	_mga_emit_clip_rect
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_LOCALS,4,2                 ## @DMA_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buf=%d start=%d end=%d\n"

	.comm	_MGA_DMAPAD,4,2                 ## @MGA_DMAPAD
	.comm	_MGA_SETUPADDRESS,4,2           ## @MGA_SETUPADDRESS
	.comm	_MGA_SETUPEND,4,2               ## @MGA_SETUPEND
	.no_dead_strip	_mga_dma_dispatch_indices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mga_dma_dispatch_indices
_mga_dma_dispatch_indices:              ; @mga_dma_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	x24, x3
	mov	x23, x2
	mov	x19, x1
	ldr	x22, [x0]
	ldr	x8, [x1, #24]
	stp	x0, x8, [sp]                    ; 16-byte Folded Spill
	ldr	x25, [x22, #8]
	ldp	w1, w20, [x1, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	cmp	w23, w24
	b.ne	LBB0_4
LBB0_1:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_AGE_BUFFER
	stp	xzr, xzr, [x19]
	str	wzr, [x20]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x19
	bl	_mga_freelist_put
LBB0_3:
	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
	b	_FLUSH_DMA
LBB0_4:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w1, [x25, #16]
	mov	x0, x22
	bl	_MGA_EMIT_STATE
	mov	x26, #0
	mov	x27, #0
	add	w23, w20, w23
	add	w24, w20, w24
	ldr	w8, [x25]
Lloh2:
	adrp	x28, _MGA_DMAPAD@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MGA_DMAPAD@GOTPAGEOFF]
Lloh4:
	adrp	x20, _MGA_SETUPADDRESS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MGA_SETUPADDRESS@GOTPAGEOFF]
Lloh6:
	adrp	x21, _MGA_SETUPEND@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MGA_SETUPEND@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_BEGIN_DMA
	ldr	w0, [x28]
	ldr	w4, [x20]
	ldr	w6, [x21]
	ldr	w8, [x22]
	orr	w7, w8, w24
	mov	w1, #0
	mov	x2, x0
	mov	w3, #0
	mov	x5, x23
	bl	_DMA_BLOCK
	bl	_ADVANCE_DMA
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x27, x8
	b.ge	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x27, w8, sxtw
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #8]
	add	x1, x8, x26
	mov	x0, x22
	bl	_mga_emit_clip_rect
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_LOCALS,4,2                 ; @DMA_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buf=%d start=%d end=%d\n"

	.comm	_MGA_DMAPAD,4,2                 ; @MGA_DMAPAD
	.comm	_MGA_SETUPADDRESS,4,2           ; @MGA_SETUPADDRESS
	.comm	_MGA_SETUPEND,4,2               ; @MGA_SETUPEND
	.no_dead_strip	_mga_dma_dispatch_indices
.subsections_via_symbols
