	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InitTexObj                  ## -- Begin function GX_InitTexObj
	.p2align	4, 0x90
_GX_InitTexObj:                         ## @GX_InitTexObj
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r12d
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r15), %eax
	andl	$-4, %eax
	andl	$3, %r13d
	orl	%eax, %r13d
	movl	%r13d, (%r15)
	andl	$-29, %r13d
	movl	16(%rbp), %edi
	movl	$2, %esi
	movl	$2, %edx
	callq	__SHIFTL
	orl	%r13d, %eax
	orl	$16, %eax
	cmpl	$0, 24(%rbp)
	je	LBB0_5
## %bb.2:
	orb	$1, 4(%r15)
	leal	-136(%r12), %ecx
	andl	$-225, %eax
	cmpl	$2, %ecx
	ja	LBB0_4
## %bb.3:
	orl	$160, %eax
	jmp	LBB0_6
LBB0_5:
	andl	$-225, %eax
	orl	$128, %eax
	jmp	LBB0_6
LBB0_4:
	orl	$192, %eax
LBB0_6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r15)
	movl	%r12d, 8(%r15)
	movl	$-1024, %eax                    ## imm = 0xFC00
	andl	12(%r15), %eax
	decl	%ebx
	andl	$1023, %ebx                     ## imm = 0x3FF
	orl	%eax, %ebx
	movl	%ebx, 12(%r15)
	andl	$-1047553, %ebx                 ## imm = 0xFFF003FF
	decl	%r14d
	movl	%r14d, %edi
	movl	$10, %esi
	movl	$10, %edx
	callq	__SHIFTL
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movl	%r13d, 12(%r15)
	andl	$-15728641, %r13d               ## imm = 0xFF0FFFFF
	movl	%r12d, %edi
	movl	$20, %esi
	movl	$4, %edx
	callq	__SHIFTL
	orl	%r13d, %eax
	movl	%eax, 12(%r15)
	movzbl	19(%r15), %ebx
	shll	$24, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movl	%eax, %edi
	movl	$5, %esi
	movl	$24, %edx
	callq	__SHIFTR
	orl	%ebx, %eax
	movl	%eax, 16(%r15)
	addl	$-128, %r12d
	movl	$2, %edx
	movl	$2, %eax
	movl	$2, %ecx
	cmpl	$10, %r12d
	ja	LBB0_8
## %bb.7:
	movslq	%r12d, %rcx
	leaq	l_switch.table.GX_InitTexObj(%rip), %rax
	movl	(%rax,%rcx,4), %edx
	leaq	l_switch.table.GX_InitTexObj.1(%rip), %rax
	movl	(%rax,%rcx,4), %eax
	leaq	l_switch.table.GX_InitTexObj.2(%rip), %rsi
	movl	(%rsi,%rcx,4), %ecx
LBB0_8:
	movl	$1, %esi
	shll	%cl, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addl	%edi, %esi
	decl	%esi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	addl	%edi, %r14d
	sarl	%cl, %r14d
	movl	%edx, 20(%r15)
	imull	%esi, %r14d
	andl	$32767, %r14d                   ## imm = 0x7FFF
	movl	%r14d, 24(%r15)
	orb	$2, 4(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_9:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.GX_InitTexObj
l_switch.table.GX_InitTexObj:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	3                               ## 0x3

	.p2align	2                               ## @switch.table.GX_InitTexObj.1
l_switch.table.GX_InitTexObj.1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	2                               ## 0x2

	.p2align	2                               ## @switch.table.GX_InitTexObj.2
l_switch.table.GX_InitTexObj.2:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InitTexObj                  ; -- Begin function GX_InitTexObj
	.p2align	2
_GX_InitTexObj:                         ; @GX_InitTexObj
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	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	x24, x7
	mov	x25, x6
	mov	x26, x5
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19]
	bfxil	w8, w26, #0, #2
	str	w8, [x19]
	and	w26, w8, #0xffffffe3
	mov	x0, x25
	mov	w1, #2
	mov	w2, #2
	bl	__SHIFTL
	orr	w8, w0, w26
	orr	w8, w8, #0x10
	cbz	w24, LBB0_3
; %bb.2:
	ldr	w9, [x19, #4]
	orr	w9, w9, #0x1
	str	w9, [x19, #4]
	sub	w9, w21, #136
	and	w8, w8, #0xffffff1f
	orr	w10, w8, #0xc0
	mov	w11, #160
	orr	w8, w8, w11
	cmp	w9, #2
	csel	w8, w10, w8, hi
	b	LBB0_4
LBB0_3:
	and	w8, w8, #0xffffff1f
	orr	w8, w8, #0x80
LBB0_4:
	str	w8, [x19]
	ldr	w8, [x19, #12]
	sub	w9, w20, #1
	bfxil	w8, w9, #0, #10
	stp	w21, w8, [x19, #8]
	and	w24, w8, #0xfff003ff
	sub	w23, w23, #1
	mov	x0, x23
	mov	w1, #10
	mov	w2, #10
	bl	__SHIFTL
	orr	w8, w24, w0
	str	w8, [x19, #12]
	and	w24, w8, #0xff0fffff
	mov	x0, x21
	mov	w1, #20
	mov	w2, #4
	bl	__SHIFTL
	orr	w8, w24, w0
	str	w8, [x19, #12]
	ldrb	w24, [x19, #19]
	mov	x0, x22
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	mov	w1, #5
	mov	w2, #24
	bl	__SHIFTR
	orr	w8, w0, w24, lsl #24
	str	w8, [x19, #16]
	sub	w8, w21, #128
	cmp	w8, #10
	b.hi	LBB0_6
; %bb.5:
	sbfiz	x10, x8, #2, #32
Lloh0:
	adrp	x8, l_switch.table.GX_InitTexObj@PAGE
Lloh1:
	add	x8, x8, l_switch.table.GX_InitTexObj@PAGEOFF
	ldr	w8, [x8, x10]
Lloh2:
	adrp	x9, l_switch.table.GX_InitTexObj.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.GX_InitTexObj.1@PAGEOFF
	ldr	w9, [x9, x10]
Lloh4:
	adrp	x11, l_switch.table.GX_InitTexObj.2@PAGE
Lloh5:
	add	x11, x11, l_switch.table.GX_InitTexObj.2@PAGEOFF
	ldr	w10, [x11, x10]
	b	LBB0_7
LBB0_6:
	mov	w8, #2
	mov	w9, #2
	mov	w10, #2
LBB0_7:
	mov	w11, #1
	lsl	w12, w11, w10
	add	w12, w20, w12
	sub	w12, w12, #1
	asr	w10, w12, w10
	lsl	w11, w11, w9
	add	w11, w23, w11
	asr	w9, w11, w9
	mul	w9, w10, w9
	and	w9, w9, #0x7fff
	stp	w8, w9, [x19, #20]
	ldr	w8, [x19, #4]
	orr	w8, w8, #0x2
	str	w8, [x19, #4]
	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
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.GX_InitTexObj
l_switch.table.GX_InitTexObj:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	3                               ; 0x3

	.p2align	2                               ; @switch.table.GX_InitTexObj.1
l_switch.table.GX_InitTexObj.1:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	2                               ; 0x2

	.p2align	2                               ; @switch.table.GX_InitTexObj.2
l_switch.table.GX_InitTexObj.2:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2

.subsections_via_symbols
