	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mga_g200_emit_state
_mga_g200_emit_state:                   ## @mga_g200_emit_state
	.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, %rbx
	movq	8(%rdi), %r14
	movl	(%r14), %r15d
	movq	8(%r14), %rax
	cmpq	(%rdi), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mga_g200_emit_pipe
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_MGA_UPLOAD_CONTEXT@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mga_g200_emit_context
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_4:
	movq	_MGA_UPLOAD_TEX0@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_mga_g200_emit_tex0
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MGA_UPLOAD_CONTEXT,4,2         ## @MGA_UPLOAD_CONTEXT
	.comm	_MGA_UPLOAD_TEX0,4,2            ## @MGA_UPLOAD_TEX0
	.no_dead_strip	_mga_g200_emit_state
.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_state
_mga_g200_emit_state:                   ; @mga_g200_emit_state
	.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
	mov	x19, x0
	ldp	x8, x20, [x0]
	ldr	w21, [x20]
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mga_g200_emit_pipe
	ldr	x8, [x20, #8]
	str	x8, [x19]
LBB0_2:
Lloh0:
	adrp	x22, _MGA_UPLOAD_CONTEXT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MGA_UPLOAD_CONTEXT@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mga_g200_emit_context
	ldr	w8, [x22]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_4:
Lloh2:
	adrp	x22, _MGA_UPLOAD_TEX0@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MGA_UPLOAD_TEX0@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mga_g200_emit_tex0
	ldr	w8, [x22]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MGA_UPLOAD_CONTEXT,4,2         ; @MGA_UPLOAD_CONTEXT
	.comm	_MGA_UPLOAD_TEX0,4,2            ; @MGA_UPLOAD_TEX0
	.no_dead_strip	_mga_g200_emit_state
.subsections_via_symbols
