	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mga_g400_emit_tex1
_mga_g400_emit_tex1:                    ## @mga_g400_emit_tex1
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movl	$5, %edi
	callq	_BEGIN_DMA
	movq	_MGA_TEXCTL2@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_MGA_MAP1_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	44(%rbx), %esi
	movq	_MGA_G400_TC2_MAGIC@GOTPCREL(%rip), %r15
	orl	(%r15), %esi
	movq	_MGA_TEXCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MGA_TEXFILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	48(%rbx), %ecx
	movl	52(%rbx), %r9d
	movq	_MGA_TEXBORDERCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	56(%rbx), %eax
	pushq	%rax
	pushq	%r10
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_TEXORG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MGA_TEXORG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	60(%rbx), %esi
	movl	64(%rbx), %ecx
	movq	_MGA_TEXORG2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	68(%rbx), %r9d
	movq	_MGA_TEXORG3@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	72(%rbx), %eax
	pushq	%rax
	pushq	%r10
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_TEXORG4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MGA_TEXWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	76(%rbx), %esi
	movl	80(%rbx), %ecx
	movq	_MGA_TEXHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	84(%rbx), %r9d
	movq	_MGA_WR49@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	pushq	$0
	pushq	%rax
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_WR57@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MGA_WR53@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MGA_WR61@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MGA_WR52@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MGA_G400_WR_MAGIC@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	80(%rbx), %eax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_DMA_BLOCK
	addq	$16, %rsp
	movq	_MGA_WR60@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	orl	84(%rbx), %esi
	movq	_MGA_TEXTRANS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MGA_TEXTRANSHIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r14), %r10d
	movl	(%r15), %eax
	orl	44(%rbx), %eax
	movl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$65535, %r9d                    ## imm = 0xFFFF
	pushq	%rax
	pushq	%r10
	callq	_DMA_BLOCK
	addq	$16, %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ADVANCE_DMA                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_LOCALS,4,2                 ## @DMA_LOCALS
	.comm	_MGA_TEXCTL2,4,2                ## @MGA_TEXCTL2
	.comm	_MGA_MAP1_ENABLE,4,2            ## @MGA_MAP1_ENABLE
	.comm	_MGA_G400_TC2_MAGIC,4,2         ## @MGA_G400_TC2_MAGIC
	.comm	_MGA_TEXCTL,4,2                 ## @MGA_TEXCTL
	.comm	_MGA_TEXFILTER,4,2              ## @MGA_TEXFILTER
	.comm	_MGA_TEXBORDERCOL,4,2           ## @MGA_TEXBORDERCOL
	.comm	_MGA_TEXORG,4,2                 ## @MGA_TEXORG
	.comm	_MGA_TEXORG1,4,2                ## @MGA_TEXORG1
	.comm	_MGA_TEXORG2,4,2                ## @MGA_TEXORG2
	.comm	_MGA_TEXORG3,4,2                ## @MGA_TEXORG3
	.comm	_MGA_TEXORG4,4,2                ## @MGA_TEXORG4
	.comm	_MGA_TEXWIDTH,4,2               ## @MGA_TEXWIDTH
	.comm	_MGA_TEXHEIGHT,4,2              ## @MGA_TEXHEIGHT
	.comm	_MGA_WR49,4,2                   ## @MGA_WR49
	.comm	_MGA_WR57,4,2                   ## @MGA_WR57
	.comm	_MGA_WR53,4,2                   ## @MGA_WR53
	.comm	_MGA_WR61,4,2                   ## @MGA_WR61
	.comm	_MGA_WR52,4,2                   ## @MGA_WR52
	.comm	_MGA_G400_WR_MAGIC,4,2          ## @MGA_G400_WR_MAGIC
	.comm	_MGA_WR60,4,2                   ## @MGA_WR60
	.comm	_MGA_TEXTRANS,4,2               ## @MGA_TEXTRANS
	.comm	_MGA_TEXTRANSHIGH,4,2           ## @MGA_TEXTRANSHIGH
	.no_dead_strip	_mga_g400_emit_tex1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mga_g400_emit_tex1
_mga_g400_emit_tex1:                    ; @mga_g400_emit_tex1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	w0, #5
	bl	_BEGIN_DMA
Lloh0:
	adrp	x20, _MGA_TEXCTL2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MGA_TEXCTL2@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _MGA_MAP1_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MGA_MAP1_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w9, w3, [x19, #44]
	orr	w8, w8, w9
Lloh5:
	adrp	x21, _MGA_G400_TC2_MAGIC@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MGA_G400_TC2_MAGIC@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w1, w8, w9
Lloh7:
	adrp	x8, _MGA_TEXCTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MGA_TEXCTL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _MGA_TEXFILTER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MGA_TEXFILTER@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x8, _MGA_TEXBORDERCOL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MGA_TEXBORDERCOL@GOTPAGEOFF]
Lloh15:
	ldr	w6, [x8]
	ldp	w5, w7, [x19, #52]
	bl	_DMA_BLOCK
Lloh16:
	adrp	x8, _MGA_TEXORG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MGA_TEXORG@GOTPAGEOFF]
Lloh18:
	adrp	x9, _MGA_TEXORG1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MGA_TEXORG1@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	ldr	w2, [x9]
	ldp	w1, w3, [x19, #60]
Lloh22:
	adrp	x8, _MGA_TEXORG2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MGA_TEXORG2@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
Lloh25:
	adrp	x8, _MGA_TEXORG3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MGA_TEXORG3@GOTPAGEOFF]
Lloh27:
	ldr	w6, [x8]
	ldp	w5, w7, [x19, #68]
	bl	_DMA_BLOCK
Lloh28:
	adrp	x8, _MGA_TEXORG4@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MGA_TEXORG4@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _MGA_TEXWIDTH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MGA_TEXWIDTH@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _MGA_TEXHEIGHT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MGA_TEXHEIGHT@GOTPAGEOFF]
	ldp	w1, w3, [x19, #76]
Lloh36:
	ldr	w4, [x8]
	ldr	w5, [x19, #84]
Lloh37:
	adrp	x8, _MGA_WR49@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MGA_WR49@GOTPAGEOFF]
Lloh39:
	ldr	w6, [x8]
	mov	w7, #0
	bl	_DMA_BLOCK
Lloh40:
	adrp	x8, _MGA_WR57@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MGA_WR57@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x8, _MGA_WR53@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MGA_WR53@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
Lloh46:
	adrp	x8, _MGA_WR61@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MGA_WR61@GOTPAGEOFF]
Lloh48:
	ldr	w4, [x8]
Lloh49:
	adrp	x8, _MGA_WR52@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MGA_WR52@GOTPAGEOFF]
Lloh51:
	ldr	w6, [x8]
	ldr	w8, [x19, #80]
Lloh52:
	adrp	x22, _MGA_G400_WR_MAGIC@GOTPAGE
Lloh53:
	ldr	x22, [x22, _MGA_G400_WR_MAGIC@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w7, w9, w8
	mov	w1, #0
	mov	w3, #0
	mov	w5, #0
	bl	_DMA_BLOCK
Lloh54:
	adrp	x8, _MGA_WR60@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MGA_WR60@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	w8, [x19, #84]
	ldr	w9, [x22]
	orr	w1, w9, w8
Lloh57:
	adrp	x8, _MGA_TEXTRANS@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MGA_TEXTRANS@GOTPAGEOFF]
Lloh59:
	adrp	x9, _MGA_TEXTRANSHIGH@GOTPAGE
Lloh60:
	ldr	x9, [x9, _MGA_TEXTRANSHIGH@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
Lloh62:
	ldr	w4, [x9]
	ldr	w6, [x20]
	ldr	w8, [x19, #44]
	ldr	w9, [x21]
	orr	w7, w9, w8
	mov	w3, #65535
	mov	w5, #65535
	bl	_DMA_BLOCK
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ADVANCE_DMA
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh61
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_LOCALS,4,2                 ; @DMA_LOCALS
	.comm	_MGA_TEXCTL2,4,2                ; @MGA_TEXCTL2
	.comm	_MGA_MAP1_ENABLE,4,2            ; @MGA_MAP1_ENABLE
	.comm	_MGA_G400_TC2_MAGIC,4,2         ; @MGA_G400_TC2_MAGIC
	.comm	_MGA_TEXCTL,4,2                 ; @MGA_TEXCTL
	.comm	_MGA_TEXFILTER,4,2              ; @MGA_TEXFILTER
	.comm	_MGA_TEXBORDERCOL,4,2           ; @MGA_TEXBORDERCOL
	.comm	_MGA_TEXORG,4,2                 ; @MGA_TEXORG
	.comm	_MGA_TEXORG1,4,2                ; @MGA_TEXORG1
	.comm	_MGA_TEXORG2,4,2                ; @MGA_TEXORG2
	.comm	_MGA_TEXORG3,4,2                ; @MGA_TEXORG3
	.comm	_MGA_TEXORG4,4,2                ; @MGA_TEXORG4
	.comm	_MGA_TEXWIDTH,4,2               ; @MGA_TEXWIDTH
	.comm	_MGA_TEXHEIGHT,4,2              ; @MGA_TEXHEIGHT
	.comm	_MGA_WR49,4,2                   ; @MGA_WR49
	.comm	_MGA_WR57,4,2                   ; @MGA_WR57
	.comm	_MGA_WR53,4,2                   ; @MGA_WR53
	.comm	_MGA_WR61,4,2                   ; @MGA_WR61
	.comm	_MGA_WR52,4,2                   ; @MGA_WR52
	.comm	_MGA_G400_WR_MAGIC,4,2          ; @MGA_G400_WR_MAGIC
	.comm	_MGA_WR60,4,2                   ; @MGA_WR60
	.comm	_MGA_TEXTRANS,4,2               ; @MGA_TEXTRANS
	.comm	_MGA_TEXTRANSHIGH,4,2           ; @MGA_TEXTRANSHIGH
	.no_dead_strip	_mga_g400_emit_tex1
.subsections_via_symbols
