	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mga_g200_emit_context
_mga_g200_emit_context:                 ## @mga_g200_emit_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	$3, %edi
	callq	_BEGIN_DMA
	movq	_MGA_DSTORG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%rbx), %esi
	movq	_MGA_MACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MGA_PLNWT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%rbx), %ecx
	movl	4(%rbx), %r9d
	movq	_MGA_DWGCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	8(%rbx), %eax
	pushq	%rax
	pushq	%r10
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_ALPHACTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	movq	_MGA_FOGCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MGA_WFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	12(%rbx), %ecx
	movl	16(%rbx), %r9d
	movq	_MGA_ZORG@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	(%r14), %eax
	pushq	%rax
	pushq	%r10
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_FCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	movq	_MGA_DMAPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rdx
	callq	_DMA_BLOCK
	addq	$16, %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ADVANCE_DMA                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_LOCALS,4,2                 ## @DMA_LOCALS
	.comm	_MGA_DSTORG,4,2                 ## @MGA_DSTORG
	.comm	_MGA_MACCESS,4,2                ## @MGA_MACCESS
	.comm	_MGA_PLNWT,4,2                  ## @MGA_PLNWT
	.comm	_MGA_DWGCTL,4,2                 ## @MGA_DWGCTL
	.comm	_MGA_ALPHACTRL,4,2              ## @MGA_ALPHACTRL
	.comm	_MGA_FOGCOL,4,2                 ## @MGA_FOGCOL
	.comm	_MGA_WFLAG,4,2                  ## @MGA_WFLAG
	.comm	_MGA_ZORG,4,2                   ## @MGA_ZORG
	.comm	_MGA_FCOL,4,2                   ## @MGA_FCOL
	.comm	_MGA_DMAPAD,4,2                 ## @MGA_DMAPAD
	.no_dead_strip	_mga_g200_emit_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mga_g200_emit_context
_mga_g200_emit_context:                 ; @mga_g200_emit_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	w0, #3
	bl	_BEGIN_DMA
Lloh0:
	adrp	x8, _MGA_DSTORG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MGA_DSTORG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #28]
Lloh3:
	adrp	x8, _MGA_MACCESS@G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	_DMA_BLOCK
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ADVANCE_DMA
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_LOCALS,4,2                 ; @DMA_LOCALS
	.comm	_MGA_DSTORG,4,2                 ; @MGA_DSTORG
	.comm	_MGA_MACCESS,4,2                ; @MGA_MACCESS
	.comm	_MGA_PLNWT,4,2                  ; @MGA_PLNWT
	.comm	_MGA_DWGCTL,4,2                 ; @MGA_DWGCTL
	.comm	_MGA_ALPHACTRL,4,2              ; @MGA_ALPHACTRL
	.comm	_MGA_FOGCOL,4,2                 ; @MGA_FOGCOL
	.comm	_MGA_WFLAG,4,2                  ; @MGA_WFLAG
	.comm	_MGA_ZORG,4,2                   ; @MGA_ZORG
	.comm	_MGA_FCOL,4,2                   ; @MGA_FCOL
	.comm	_MGA_DMAPAD,4,2                 ; @MGA_DMAPAD
	.no_dead_strip	_mga_g200_emit_context
.subsections_via_symbols
