	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __GXDefTexRegionCallback
___GXDefTexRegionCallback:              ## @__GXDefTexRegionCallback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_GX_GetTexObjFmt
	addl	$-8, %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	movl	___GXDefTexRegionCallback.regionB(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, ___GXDefTexRegionCallback.regionB(%rip)
	andl	$3, %eax
	orl	$8, %eax
	jmp	LBB0_3
LBB0_2:
	movl	___GXDefTexRegionCallback.regionA(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, ___GXDefTexRegionCallback.regionA(%rip)
	andl	$7, %eax
LBB0_3:
	movq	___gx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	shlq	$2, %rax
	addq	(%rcx), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,___GXDefTexRegionCallback.regionA,4,2 ## @__GXDefTexRegionCallback.regionA
.zerofill __DATA,__bss,___GXDefTexRegionCallback.regionB,4,2 ## @__GXDefTexRegionCallback.regionB
	.comm	___gx,8,3                       ## @__gx
	.no_dead_strip	___GXDefTexRegionCallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __GXDefTexRegionCallback
___GXDefTexRegionCallback:              ; @__GXDefTexRegionCallback
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_GX_GetTexObjFmt
	sub	w8, w0, #8
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	adrp	x8, ___GXDefTexRegionCallback.regionB@PAGE
	ldr	w9, [x8, ___GXDefTexRegionCallback.regionB@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, ___GXDefTexRegionCallback.regionB@PAGEOFF]
	mov	w8, #8
	bfxil	w8, w9, #0, #2
	b	LBB0_3
LBB0_2:
	adrp	x8, ___GXDefTexRegionCallback.regionA@PAGE
	ldr	w9, [x8, ___GXDefTexRegionCallback.regionA@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, ___GXDefTexRegionCallback.regionA@PAGEOFF]
	and	w8, w9, #0x7
LBB0_3:
Lloh0:
	adrp	x9, ___gx@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___gx@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x0, x9, w8, uxtw #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,___GXDefTexRegionCallback.regionA,4,2 ; @__GXDefTexRegionCallback.regionA
.zerofill __DATA,__bss,___GXDefTexRegionCallback.regionB,4,2 ; @__GXDefTexRegionCallback.regionB
	.comm	___gx,8,3                       ; @__gx
	.no_dead_strip	___GXDefTexRegionCallback
.subsections_via_symbols
