	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InvalidateTexRegion         ## -- Begin function GX_InvalidateTexRegion
	.p2align	4, 0x90
_GX_InvalidateTexRegion:                ## @GX_InvalidateTexRegion
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	$15, %esi
	movl	$3, %edx
	callq	__SHIFTR
	movq	%rax, %rbx
	movl	(%r14), %edi
	movl	$18, %esi
	movl	$3, %edx
	callq	__SHIFTR
	movq	%rax, %r15
	movl	4(%r14), %edi
	movl	$15, %esi
	movl	$3, %edx
	callq	__SHIFTR
	movq	%rax, %r12
	movl	4(%r14), %edi
	movl	$18, %esi
	movl	$3, %edx
	callq	__SHIFTR
	cmpq	$2, %rbx
	movl	$1, %ecx
	cmovlq	%rcx, %rbx
	cmpq	$2, %r15
	cmovlq	%rcx, %r15
	cmpq	$2, %r12
	cmovlq	%rcx, %r12
	decq	%r12
	cmpq	$2, %rax
	cmovgeq	%rax, %rcx
	movq	8(%r14), %rdx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leal	(%r15,%rbx), %eax
	addl	$-2, %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	leal	-1(%rcx,%r12), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leal	-2(%rax,%rcx), %ebx
	cmovel	%eax, %ebx
	movl	$32767, %eax                    ## imm = 0x7FFF
	movl	(%r14), %edi
	andl	%eax, %edi
	movl	$6, %esi
	movl	$9, %edx
	callq	__SHIFTR
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movl	$9, %esi
	movl	$4, %edx
	callq	__SHIFTL
	movq	%rax, %rbx
	movl	$102, %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	movq	%rax, %r13
	orl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	orl	%ebx, %r13d
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	addl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	addl	$-4, %r15d
	xorl	%ebx, %ebx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	cmovnel	%r15d, %ebx
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	$32767, %edi                    ## imm = 0x7FFF
	andl	4(%r14), %edi
	movl	$6, %esi
	movl	$9, %edx
	callq	__SHIFTR
	movq	%rax, %r14
	movl	%ebx, %edi
	movl	$9, %esi
	movl	$4, %edx
	callq	__SHIFTL
	movq	%rax, %r15
	movl	$102, %edi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	movq	%rax, %rbx
	orl	%r14d, %ebx
	orl	%r15d, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	xorl	%eax, %eax
	callq	___GX_FlushTextureState
	movl	%r13d, %edi
	callq	_GX_LOAD_BP_REG
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_GX_LOAD_BP_REG
LBB0_5:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___GX_FlushTextureState         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InvalidateTexRegion         ; -- Begin function GX_InvalidateTexRegion
	.p2align	2
_GX_InvalidateTexRegion:                ; @GX_InvalidateTexRegion
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
	mov	w1, #15
	mov	w2, #3
	bl	__SHIFTR
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #18
	mov	w2, #3
	bl	__SHIFTR
	mov	x21, x0
	ldr	w0, [x19, #4]
	mov	w1, #15
	mov	w2, #3
	bl	__SHIFTR
	mov	x22, x0
	ldr	w0, [x19, #4]
	mov	w1, #18
	mov	w2, #3
	bl	__SHIFTR
	cmp	x20, #1
	csinc	x8, x20, xzr, gt
	cmp	x21, #1
	csinc	x9, x21, xzr, gt
	cmp	x22, #1
	csinc	x10, x22, xzr, gt
	sub	x22, x10, #1
	cmp	x0, #1
	csinc	x10, x0, xzr, gt
	add	w10, w10, w22
	ldr	x23, [x19, #8]
	add	w25, w9, w8
	sub	w8, w25, #2
	sub	w24, w10, #1
	add	w9, w8, w24
	sub	w9, w9, #2
	cmp	x23, #0
	csel	w20, w8, w9, eq
	ldr	w8, [x19]
	and	w0, w8, #0x7fff
	mov	w1, #6
	mov	w2, #9
	bl	__SHIFTR
	mov	x21, x0
	mov	x0, x20
	mov	w1, #9
	mov	w2, #4
	bl	__SHIFTL
	orr	w20, w0, w21
	mov	w0, #102
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w20, w20, w0
	cbz	x22, LBB0_2
; %bb.1:
	sub	w8, w25, #4
	cmp	x23, #0
	csel	w8, wzr, w8, eq
	add	w21, w8, w24
	ldr	w8, [x19, #4]
	and	w0, w8, #0x7fff
	mov	w1, #6
	mov	w2, #9
	bl	__SHIFTR
	mov	x19, x0
	mov	x0, x21
	mov	w1, #9
	mov	w2, #4
	bl	__SHIFTL
	orr	w19, w0, w19
	mov	w0, #102
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	orr	w19, w19, w0
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
	bl	___GX_FlushTextureState
	mov	x0, x20
	bl	_GX_LOAD_BP_REG
	cbz	x22, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_GX_LOAD_BP_REG
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	___GX_FlushTextureState
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
