	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __GX_SetDirtyState
___GX_SetDirtyState:                    ## @__GX_SetDirtyState
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	___gx@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$1, %cl
	jne	LBB0_1
## %bb.2:
	testb	$2, %cl
	jne	LBB0_3
LBB0_4:
	testb	$4, %cl
	jne	LBB0_5
LBB0_6:
	testb	$8, %cl
	jne	LBB0_7
LBB0_8:
	testb	$16, %cl
	jne	LBB0_9
LBB0_10:
	cmpl	$256, %ecx                      ## imm = 0x100
	jae	LBB0_11
	jmp	LBB0_19
LBB0_1:
	xorl	%eax, %eax
	callq	___GX_SetSUTexRegs
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$2, %cl
	je	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	___GX_UpdateBPMask
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$4, %cl
	je	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	___GX_SetGenMode
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$8, %cl
	je	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	___GX_SetVCD
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$16, %cl
	je	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	___GX_SetVAT
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jb	LBB0_19
LBB0_11:
	testl	$3840, %ecx                     ## imm = 0xF00
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	___GX_SetChanColor
	movq	(%rbx), %rax
	movl	(%rax), %ecx
LBB0_13:
	testl	$16838656, %ecx                 ## imm = 0x100F000
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	___GX_SetChanCntrl
	movq	(%rbx), %rax
	movl	(%rax), %ecx
LBB0_15:
	testl	$50266112, %ecx                 ## imm = 0x2FF0000
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	___GX_SetTexCoordGen
	movq	(%rbx), %rax
	movl	(%rax), %ecx
LBB0_17:
	testl	$67108864, %ecx                 ## imm = 0x4000000
	je	LBB0_19
## %bb.18:
	xorl	%edi, %edi
	callq	___GX_SetMatrixIndex
	movl	$5, %edi
	callq	___GX_SetMatrixIndex
	movq	(%rbx), %rax
LBB0_19:
	movl	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___gx,8,3                       ## @__gx
	.no_dead_strip	___GX_SetDirtyState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __GX_SetDirtyState
___GX_SetDirtyState:                    ; @__GX_SetDirtyState
	.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
Lloh0:
	adrp	x19, ___gx@GOTPAGE
Lloh1:
	ldr	x19, [x19, ___gx@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w9, [x8]
	tbnz	w9, #0, LBB0_6
; %bb.1:
	tbnz	w9, #1, LBB0_7
LBB0_2:
	tbnz	w9, #2, LBB0_8
LBB0_3:
	tbnz	w9, #3, LBB0_9
LBB0_4:
	tbnz	w9, #4, LBB0_10
LBB0_5:
	cmp	w9, #256
	b.hs	LBB0_11
	b	LBB0_19
LBB0_6:
	bl	___GX_SetSUTexRegs
	ldr	x8, [x19]
	ldr	w9, [x8]
	tbz	w9, #1, LBB0_2
LBB0_7:
	bl	___GX_UpdateBPMask
	ldr	x8, [x19]
	ldr	w9, [x8]
	tbz	w9, #2, LBB0_3
LBB0_8:
	bl	___GX_SetGenMode
	ldr	x8, [x19]
	ldr	w9, [x8]
	tbz	w9, #3, LBB0_4
LBB0_9:
	bl	___GX_SetVCD
	ldr	x8, [x19]
	ldr	w9, [x8]
	tbz	w9, #4, LBB0_5
LBB0_10:
	bl	___GX_SetVAT
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #256
	b.lo	LBB0_19
LBB0_11:
	tst	w9, #0xf00
	b.eq	LBB0_13
; %bb.12:
	bl	___GX_SetChanColor
	ldr	x8, [x19]
	ldr	w9, [x8]
LBB0_13:
	mov	w10, #61440
	movk	w10, #256, lsl #16
	tst	w9, w10
	b.eq	LBB0_15
; %bb.14:
	bl	___GX_SetChanCntrl
	ldr	x8, [x19]
	ldr	w9, [x8]
LBB0_15:
	mov	w10, #50266112
	tst	w9, w10
	b.eq	LBB0_17
; %bb.16:
	bl	___GX_SetTexCoordGen
	ldr	x8, [x19]
	ldr	w9, [x8]
LBB0_17:
	tbz	w9, #26, LBB0_19
; %bb.18:
	mov	w0, #0
	bl	___GX_SetMatrixIndex
	mov	w0, #5
	bl	___GX_SetMatrixIndex
	ldr	x8, [x19]
LBB0_19:
	str	wzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	___gx,8,3                       ; @__gx
	.no_dead_strip	___GX_SetDirtyState
.subsections_via_symbols
