	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mga_dma_dispatch_blit
_mga_dma_dispatch_blit:                 ## @mga_dma_dispatch_blit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	movq	8(%rax), %r12
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r13d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	leal	4(%r13), %edi
	callq	_BEGIN_DMA
	movq	_MGA_DMAPAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MGA_DWGSYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%esi, %esi
	movq	%rdi, %rdx
	xorl	%ecx, %ecx
	movl	$28928, %r9d                    ## imm = 0x7100
	pushq	$28672                          ## imm = 0x7000
	pushq	%r8
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_DWGCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MGA_DWGCTL_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MGA_PLNWT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_MGA_SRCORG@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	(%r14), %ecx
	movl	4(%r14), %r9d
	movq	_MGA_DSTORG@GOTPCREL(%rip), %rax
	movl	8(%r14), %ebx
	pushq	%rbx
	pushq	(%rax)
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_SGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MGA_MACCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	movq	_MGA_AR5@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	16(%r14), %r9d
	movl	20(%r14), %eax
	imull	12(%r14), %r9d
	movq	_MGA_PITCH@GOTPCREL(%rip), %rbx
	xorl	%esi, %esi
	pushq	%rax
	pushq	(%rbx)
	callq	_DMA_BLOCK
	addq	$16, %rsp
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.1:
	shlq	$4, %r13
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	imull	16(%r14), %edx
	addl	%edx, %ecx
	movq	_MGA_AR0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	leal	(%rcx,%rbx), %esi
	movq	_MGA_AR3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addl	%r8d, %ebx
	shll	$16, %ebx
	movzwl	%r8w, %r9d
	orl	%ebx, %r9d
	movq	_MGA_FXBNDRY@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r8
	shll	$16, %r11d
	orl	%r10d, %r11d
	movq	_MGA_EXEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_MGA_YDSTLEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
                                        ## kill: def $ecx killed $ecx killed $rcx
	pushq	%r11
	pushq	%rbx
	callq	_DMA_BLOCK
	addq	$16, %rsp
	addq	$16, %r15
	cmpq	%r15, %r13
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r15), %ebx
	movl	4(%r12,%r15), %esi
	movl	24(%r14), %ecx
	addl	%ebx, %ecx
	movl	28(%r14), %edx
	addl	%esi, %edx
	movl	32(%r14), %r8d
	addl	%ebx, %r8d
	movl	36(%r14), %r11d
	addl	%esi, %r11d
	movl	8(%r12,%r15), %r10d
	subl	%esi, %r10d
	notl	%ebx
	addl	12(%r12,%r15), %ebx
	cmpl	$-1, 12(%r14)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	notl	%edx
	addl	40(%r14), %edx
	jmp	LBB0_4
LBB0_5:
	movq	_MGA_DMAPAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MGA_PLNWT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_MGA_PITCH@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r9d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %ecx
	movl	20(%rax), %eax
	xorl	%esi, %esi
	pushq	%rax
	movq	_MGA_DWGCTL@GOTPCREL(%rip), %rax
	pushq	(%rax)
	callq	_DMA_BLOCK
	addq	$16, %rsp
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ADVANCE_DMA                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_LOCALS,4,2                 ## @DMA_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MGA_DMAPAD,8,3                 ## @MGA_DMAPAD
	.comm	_MGA_DWGSYNC,8,3                ## @MGA_DWGSYNC
	.comm	_MGA_DWGCTL,8,3                 ## @MGA_DWGCTL
	.comm	_MGA_DWGCTL_COPY,4,2            ## @MGA_DWGCTL_COPY
	.comm	_MGA_PLNWT,8,3                  ## @MGA_PLNWT
	.comm	_MGA_SRCORG,8,3                 ## @MGA_SRCORG
	.comm	_MGA_DSTORG,8,3                 ## @MGA_DSTORG
	.comm	_MGA_SGN,8,3                    ## @MGA_SGN
	.comm	_MGA_MACCESS,8,3                ## @MGA_MACCESS
	.comm	_MGA_AR5,8,3                    ## @MGA_AR5
	.comm	_MGA_PITCH,8,3                  ## @MGA_PITCH
	.comm	_MGA_AR0,8,3                    ## @MGA_AR0
	.comm	_MGA_AR3,8,3                    ## @MGA_AR3
	.comm	_MGA_FXBNDRY,8,3                ## @MGA_FXBNDRY
	.comm	_MGA_YDSTLEN,8,3                ## @MGA_YDSTLEN
	.comm	_MGA_EXEC,8,3                   ## @MGA_EXEC
	.no_dead_strip	_mga_dma_dispatch_blit
.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_blit
_mga_dma_dispatch_blit:                 ; @mga_dma_dispatch_blit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, [x0]
	ldr	x21, [x20, #8]
	ldr	x27, [x21, #8]
	ldr	w22, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	add	w0, w22, #4
	bl	_BEGIN_DMA
Lloh2:
	adrp	x8, _MGA_DM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
Lloh30:
	ldr	x8, [x8, _MGA_AR5@GOTPAGEOFF]
Lloh31:
	ldr	x4, [x8]
	ldp	w8, w9, [x19, #12]
	mul	w5, w9, w8
Lloh32:
	adrp	x8, _MGA_PITCH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MGA_PITCH@GOTPAGEOFF]
Lloh34:
	ldr	x6, [x8]
	ldr	w7, [x19, #20]
	mov	w1, #0
	bl	_DMA_BLOCK
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.1:
	add	x27, x27, #8
Lloh35:
	adrp	x28, _MGA_AR0@GOTPAGE
Lloh36:
	ldr	x28, [x28, _MGA_AR0@GOTPAGEOFF]
Lloh37:
	adrp	x23, _MGA_AR3@GOTPAGE
Lloh38:
	ldr	x23, [x23, _MGA_AR3@GOTPAGEOFF]
Lloh39:
	adrp	x24, _MGA_FXBNDRY@GOTPAGE
Lloh40:
	ldr	x24, [x24, _MGA_FXBNDRY@GOTPAGEOFF]
Lloh41:
	adrp	x25, _MGA_YDSTLEN@GOTPAGE
Lloh42:
	ldr	x25, [x25, _MGA_YDSTLEN@GOTPAGEOFF]
Lloh43:
	adrp	x26, _MGA_EXEC@GOTPAGE
Lloh44:
	ldr	x26, [x26, _MGA_EXEC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	w11, [x27, #-8]
	ldr	w12, [x19, #24]
	add	w12, w12, w11
	ldp	w13, w14, [x19, #32]
	add	w10, w14, w10
	ldr	w14, [x27, #4]
	mvn	w15, w11
	ldr	w16, [x19, #16]
	madd	w3, w16, w9, w12
	ldr	x0, [x28]
	add	w9, w14, w15
	add	w1, w3, w9
	ldr	x2, [x23]
	ldr	x4, [x24]
	add	w5, w13, w11
	add	w9, w9, w5
	bfi	w5, w9, #16, #16
	ldr	x9, [x25]
	ldr	x11, [x26]
	add	x6, x11, x9
	orr	w7, w8, w10, lsl #16
	bl	_DMA_BLOCK
	add	x27, x27, #16
	subs	x22, x22, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x27, #-4]
	ldr	w8, [x19, #28]
	add	w9, w8, w10
	ldr	w8, [x27]
	sub	w8, w8, w10
	ldr	w11, [x19, #12]
	cmn	w11, #1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x19, #40]
	mvn	w9, w9
	add	w9, w11, w9
	b	LBB0_2
LBB0_5:
Lloh45:
	adrp	x8, _MGA_DMAPAD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MGA_DMAPAD@GOTPAGEOFF]
Lloh47:
	ldr	x0, [x8]
Lloh48:
	adrp	x8, _MGA_PLNWT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MGA_PLNWT@GOTPAGEOFF]
Lloh50:
	ldr	x2, [x8]
Lloh51:
	adrp	x8, _MGA_PITCH@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MGA_PITCH@GOTPAGEOFF]
Lloh53:
	ldr	x4, [x8]
	ldr	w5, [x20, #4]
Lloh54:
	adrp	x8, _MGA_DWGCTL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MGA_DWGCTL@GOTPAGEOFF]
Lloh56:
	ldr	x6, [x8]
	ldp	w3, w7, [x21, #16]
	mov	w1, #0
	bl	_DMA_BLOCK
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ADVANCE_DMA
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_LOCALS,4,2                 ; @DMA_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MGA_DMAPAD,8,3                 ; @MGA_DMAPAD
	.comm	_MGA_DWGSYNC,8,3                ; @MGA_DWGSYNC
	.comm	_MGA_DWGCTL,8,3                 ; @MGA_DWGCTL
	.comm	_MGA_DWGCTL_COPY,4,2            ; @MGA_DWGCTL_COPY
	.comm	_MGA_PLNWT,8,3                  ; @MGA_PLNWT
	.comm	_MGA_SRCORG,8,3                 ; @MGA_SRCORG
	.comm	_MGA_DSTORG,8,3                 ; @MGA_DSTORG
	.comm	_MGA_SGN,8,3                    ; @MGA_SGN
	.comm	_MGA_MACCESS,8,3                ; @MGA_MACCESS
	.comm	_MGA_AR5,8,3                    ; @MGA_AR5
	.comm	_MGA_PITCH,8,3                  ; @MGA_PITCH
	.comm	_MGA_AR0,8,3                    ; @MGA_AR0
	.comm	_MGA_AR3,8,3                    ; @MGA_AR3
	.comm	_MGA_FXBNDRY,8,3                ; @MGA_FXBNDRY
	.comm	_MGA_YDSTLEN,8,3                ; @MGA_YDSTLEN
	.comm	_MGA_EXEC,8,3                   ; @MGA_EXEC
	.no_dead_strip	_mga_dma_dispatch_blit
.subsections_via_symbols
