	.file	"extr_gx.c___GX_SetSUTexRegs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__GX_SetSUTexRegs, @function
__GX_SetSUTexRegs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR __gx[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 4
	mov	esi, 10
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR [rax]
	xor	ebx, ebx
	call	_SHIFTR@PLT
	mov	edx, 3
	mov	esi, 16
	mov	r12d, eax
	mov	rax, QWORD PTR __gx[rip]
	mov	edi, DWORD PTR [rax]
	call	_SHIFTR@PLT
	mov	r14d, eax
	test	eax, eax
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, 1
	mov	esi, ebp
	mov	edi, 1
	call	_SHIFTL@PLT
	mov	rdx, QWORD PTR __gx[rip]
	test	DWORD PTR 16[rdx], eax
	je	.L30
	add	ebx, 1
	cmp	r14d, ebx
	je	.L12
.L11:
	cmp	ebx, 130
	je	.L5
	jg	.L6
	cmp	ebx, 128
	je	.L7
	cmp	ebx, 129
	jne	.L18
	mov	rax, QWORD PTR __gx[rip]
	mov	edx, 3
	mov	esi, 12
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 8[rax]
	call	_SHIFTR@PLT
	mov	edx, 3
	mov	esi, 15
	mov	r13d, eax
	mov	rax, QWORD PTR __gx[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 8[rax]
	call	_SHIFTR@PLT
	mov	ebp, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	ebx, 131
	jne	.L18
	mov	rax, QWORD PTR __gx[rip]
	mov	edx, 3
	mov	esi, 3
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 8[rax]
	mov	r13d, edi
	call	_SHIFTR@PLT
	and	r13d, 7
	mov	ebp, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, ebp
	mov	edi, r13d
	add	ebx, 1
	call	__SetSURegs@PLT
	cmp	r14d, ebx
	jne	.L11
.L12:
	mov	r13d, r12d
	xor	ebx, ebx
	test	r12d, r12d
	jns	.L16
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, 15
	call	_SHIFTR@PLT
	mov	r14d, eax
.L14:
	mov	esi, r12d
	mov	edx, 1
	mov	edi, 1
	call	_SHIFTL@PLT
	mov	edx, 1
	mov	esi, r14d
	mov	edi, 1
	mov	r12d, eax
	call	_SHIFTL@PLT
	cmp	ebp, 255
	je	.L15
	mov	rdx, QWORD PTR __gx[rip]
	test	DWORD PTR 32[rdx], r12d
	je	.L15
	test	DWORD PTR 16[rdx], eax
	je	.L31
.L15:
	lea	rax, 1[rbx]
	cmp	rbx, r13
	je	.L1
	mov	rbx, rax
.L16:
	mov	edx, 3
	mov	edi, ebx
	mov	esi, 1
	mov	r12d, ebx
	call	_SHIFTR@PLT
	mov	rdx, QWORD PTR __gx[rip]
	add	eax, 3
	mov	rcx, QWORD PTR 24[rdx]
	mov	rdx, QWORD PTR 8[rdx]
	cdqe
	mov	edi, DWORD PTR [rdx+rax*4]
	movzx	ebp, BYTE PTR [rcx+rbx*4]
	mov	edx, 3
	test	bl, 1
	jne	.L32
	mov	esi, 3
	call	_SHIFTR@PLT
	mov	r14d, eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR __gx[rip]
	mov	edx, 3
	mov	esi, 6
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 8[rax]
	call	_SHIFTR@PLT
	mov	edx, 3
	mov	esi, 9
	mov	r13d, eax
	mov	rax, QWORD PTR __gx[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 8[rax]
	call	_SHIFTR@PLT
	mov	ebp, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR __gx[rip]
	mov	edx, 3
	mov	esi, 18
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 8[rax]
	call	_SHIFTR@PLT
	mov	edx, 3
	mov	esi, 21
	mov	r13d, eax
	mov	rax, QWORD PTR __gx[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 8[rax]
	call	_SHIFTR@PLT
	mov	ebp, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	xor	r13d, r13d
	xor	ebp, ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	esi, r14d
	mov	edi, ebp
	call	__SetSURegs@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	__GX_SetSUTexRegs, .-__GX_SetSUTexRegs
	.comm	__gx,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gx.c___GX_SetSUTexRegs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__GX_SetSUTexRegs, %function
__GX_SetSUTexRegs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, .L31
	mov	r2, #4
	ldr	r3, [r5]
	mov	r1, #10
	ldr	r0, [r3]
	bl	_SHIFTR
	ldr	r3, [r5]
	mov	r8, r0
	mov	r2, #3
	mov	r1, #16
	ldr	r0, [r3]
	bl	_SHIFTR
	subs	r9, r0, #0
	movgt	r4, #0
	movgt	r7, r4
	movgt	r6, r4
	ble	.L13
.L2:
	mov	r2, #1
	mov	r1, r6
	mov	r0, r2
	bl	_SHIFTL
	ldr	r3, [r5]
	add	r4, r4, #1
	ldr	r3, [r3, #8]
	tst	r0, r3
	beq	.L30
	cmp	r9, r4
	sub	r3, r4, #128
	beq	.L13
.L12:
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L19
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L6:
	mov	r2, #3
	ldr	r3, [r5]
	mov	r1, r2
	ldr	r3, [r3, #4]
	ldr	r0, [r3, #8]
	and	r7, r0, #7
	bl	_SHIFTR
	mov	r6, r0
	b	.L2
.L8:
	ldr	r3, [r5]
	mov	r2, #3
	ldr	r3, [r3, #4]
	mov	r1, #6
	ldr	r0, [r3, #8]
	bl	_SHIFTR
	ldr	r3, [r5]
	mov	r7, r0
	ldr	r3, [r3, #4]
	mov	r2, #3
	mov	r1, #9
	ldr	r0, [r3, #8]
	bl	_SHIFTR
	mov	r6, r0
	b	.L2
.L9:
	ldr	r3, [r5]
	mov	r2, #3
	ldr	r3, [r3, #4]
	mov	r1, #12
	ldr	r0, [r3, #8]
	bl	_SHIFTR
	ldr	r3, [r5]
	mov	r7, r0
	ldr	r3, [r3, #4]
	mov	r2, #3
	mov	r1, #15
	ldr	r0, [r3, #8]
	bl	_SHIFTR
	mov	r6, r0
	b	.L2
.L10:
	ldr	r3, [r5]
	mov	r2, #3
	ldr	r3, [r3, #4]
	mov	r1, #18
	ldr	r0, [r3, #8]
	bl	_SHIFTR
	ldr	r3, [r5]
	mov	r7, r0
	ldr	r3, [r3, #4]
	mov	r2, #3
	mov	r1, #21
	ldr	r0, [r3, #8]
	bl	_SHIFTR
	mov	r6, r0
	b	.L2
.L30:
	mov	r1, r6
	mov	r0, r7
	bl	__SetSURegs
	cmp	r9, r4
	sub	r3, r4, #128
	bne	.L12
.L13:
	cmp	r8, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r4, #0
	add	r8, r8, #1
	b	.L17
.L16:
	cmp	r4, r8
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r1, #1
	mov	r2, #3
	mov	r0, r4
	bl	_SHIFTR
	ldr	r3, [r5]
	tst	r4, #1
	ldr	r2, [r3, #12]
	ldrne	r3, [r3, #4]
	ldrb	r7, [r2, r4, lsl #2]	@ zero_extendqisi2
	moveq	r2, #3
	ldreq	r3, [r3, #4]
	add	r0, r0, #3
	moveq	r1, r2
	movne	r2, #3
	movne	r1, #15
	ldrne	r0, [r3, r0, lsl #2]
	ldreq	r0, [r3, r0, lsl #2]
	bl	_SHIFTR
	mov	r2, #1
	mov	r1, r4
	mov	r6, r0
	mov	r0, r2
	bl	_SHIFTL
	mov	r2, #1
	mov	r9, r0
	mov	r1, r6
	mov	r0, r2
	bl	_SHIFTL
	cmp	r7, #255
	add	r4, r4, #1
	beq	.L16
	ldr	r3, [r5]
	ldr	r2, [r3, #16]
	tst	r9, r2
	beq	.L16
	ldr	r3, [r3, #8]
	tst	r0, r3
	bne	.L16
	mov	r1, r6
	mov	r0, r7
	bl	__SetSURegs
	cmp	r4, r8
	bne	.L17
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	mov	r7, #0
	mov	r6, r7
	b	.L2
.L32:
	.align	2
.L31:
	.word	__gx
	.size	__GX_SetSUTexRegs, .-__GX_SetSUTexRegs
	.comm	__gx,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
