	.file	"extr_tr_shade.c_ComputeTexCoords.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERROR: unknown texmod '%d' in shader '%s'"
	.text
	.p2align 4
	.type	ComputeTexCoords, @function
ComputeTexCoords:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR NUM_TEXTURE_BUNDLES[rip]
	test	r8d, r8d
	jle	.L42
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	rbx, .L23[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rcx, QWORD PTR [rdi]
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rbp, 0[r13+r13*2]
	mov	rsi, rcx
	sal	rbp, 3
	lea	rax, [rcx+rbp]
	mov	edi, DWORD PTR [rax]
	lea	edx, -136[rdi]
	cmp	edx, 6
	ja	.L4
	lea	rdi, .L5[rip]
	movsx	rdx, DWORD PTR [rdi+rdx*4]
	add	rdx, rdi
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L1-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r14d, DWORD PTR TR_MAX_TEXMODS[rip]
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rax, [rcx+rbp]
	add	r14d, 1
	cmp	DWORD PTR 4[rax], r14d
	jg	.L32
.L33:
	add	r13, 1
	cmp	DWORD PTR NUM_TEXTURE_BUNDLES[rip], r13d
	jg	.L2
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR tess[rip+16]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	RB_CalcEnvironmentTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	lea	rax, [rcx+rbp]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR 4[rax]
	lea	r15, 0[0+r13*8]
	xor	r14d, r14d
	test	edx, edx
	jle	.L33
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR 8[rax]
	movsx	rdx, r14d
	lea	rdx, [rdx+rdx*4]
	lea	rdi, [rax+rdx*4]
	mov	edx, DWORD PTR [rdi]
	lea	eax, -128[rdx]
	cmp	eax, 7
	ja	.L21
	movsx	rax, DWORD PTR [rbx+rax*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L23:
	.long	.L30-.L23
	.long	.L29-.L23
	.long	.L28-.L23
	.long	.L27-.L23
	.long	.L26-.L23
	.long	.L25-.L23
	.long	.L24-.L23
	.long	.L22-.L23
	.text
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR tess[rip+16]
	mov	edi, DWORD PTR 4[rdi]
	mov	rsi, QWORD PTR [rax+r15]
	call	RB_CalcRotateTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR tess[rip+16]
	mov	edi, DWORD PTR 12[rdi]
	mov	rsi, QWORD PTR [rax+r15]
	call	RB_CalcScaleTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR tess[rip+16]
	mov	edi, DWORD PTR 16[rdi]
	mov	rsi, QWORD PTR [rax+r15]
	call	RB_CalcScrollTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rax, QWORD PTR tess[rip+16]
	add	rdi, 8
	mov	rsi, QWORD PTR [rax+r15]
	call	RB_CalcStretchTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rax, QWORD PTR tess[rip+16]
	mov	rsi, QWORD PTR [rax+r15]
	call	RB_CalcTransformTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR tess[rip+16]
	add	rdi, 8
	mov	rsi, QWORD PTR [rax+r15]
	call	RB_CalcTurbulentTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR tess[rip+16]
	mov	rsi, QWORD PTR [rax+r15]
	mov	rax, QWORD PTR backEnd[rip]
	mov	edi, DWORD PTR [rax]
	call	RB_CalcScrollTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR tess[rip+16]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	RB_CalcFogTexCoords@PLT
	mov	rcx, QWORD PTR [r12]
	lea	rax, [rcx+rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR tess[rip]
	xor	esi, esi
	lea	edx, 0[0+rax*8]
	mov	rax, QWORD PTR tess[rip+16]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	Com_Memset@PLT
.L45:
	mov	rcx, QWORD PTR [r12]
	lea	rax, [rcx+rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR tess[rip]
	test	esi, esi
	jle	.L4
	lea	eax, -1[rsi]
	lea	rdx, 0[0+r13*8]
	lea	rdi, 8[0+rax*8]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, QWORD PTR tess[rip+32]
	mov	rcx, QWORD PTR tess[rip+16]
	mov	rsi, QWORD PTR [rsi+rax]
	mov	rcx, QWORD PTR [rcx+rdx]
	mov	rsi, QWORD PTR 8[rsi]
	mov	rcx, QWORD PTR [rcx+rax]
	mov	rsi, QWORD PTR [rsi]
	mov	QWORD PTR [rcx], rsi
	mov	rsi, QWORD PTR tess[rip+32]
	mov	rcx, QWORD PTR tess[rip+16]
	mov	rsi, QWORD PTR [rsi+rax]
	mov	rcx, QWORD PTR [rcx+rdx]
	mov	rsi, QWORD PTR 8[rsi]
	mov	rcx, QWORD PTR [rcx+rax]
	add	rax, 8
	mov	rsi, QWORD PTR 8[rsi]
	mov	QWORD PTR 8[rcx], rsi
	cmp	rdi, rax
	jne	.L18
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR tess[rip]
	test	esi, esi
	jle	.L4
	lea	eax, -1[rsi]
	lea	rdx, 0[0+r13*8]
	lea	rdi, 8[0+rax*8]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, QWORD PTR tess[rip+32]
	mov	rcx, QWORD PTR tess[rip+16]
	mov	rsi, QWORD PTR [rsi+rax]
	mov	rcx, QWORD PTR [rcx+rdx]
	mov	rsi, QWORD PTR [rsi]
	mov	rcx, QWORD PTR [rcx+rax]
	mov	rsi, QWORD PTR [rsi]
	mov	QWORD PTR [rcx], rsi
	mov	rsi, QWORD PTR tess[rip+32]
	mov	rcx, QWORD PTR tess[rip+16]
	mov	rsi, QWORD PTR [rsi+rax]
	mov	rcx, QWORD PTR [rcx+rdx]
	mov	rsi, QWORD PTR [rsi]
	mov	rcx, QWORD PTR [rcx+rax]
	add	rax, 8
	mov	rsi, QWORD PTR 8[rsi]
	mov	QWORD PTR 8[rcx], rsi
	cmp	rdi, rax
	jne	.L17
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR tess[rip]
	lea	r15, 0[0+r13*8]
	xor	r14d, r14d
	test	edi, edi
	jg	.L20
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR [r12]
.L20:
	mov	rax, QWORD PTR tess[rip+16]
	mov	rax, QWORD PTR [rax+r15]
	mov	rcx, QWORD PTR [rax+r14*8]
	mov	rax, QWORD PTR 16[rsi+rbp]
	mov	rsi, QWORD PTR tess[rip+24]
	mov	QWORD PTR 8[rsp], rcx
	mov	edi, DWORD PTR [rsi+r14*4]
	mov	esi, DWORD PTR [rax]
	call	DotProduct@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rcx], rax
	mov	rax, QWORD PTR tess[rip+16]
	mov	rax, QWORD PTR [rax+r15]
	mov	rcx, QWORD PTR [rax+r14*8]
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR 16[rax+rbp]
	mov	QWORD PTR 8[rsp], rcx
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR tess[rip+24]
	mov	edi, DWORD PTR [rax+r14*4]
	add	r14, 1
	call	DotProduct@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rcx], rax
	lea	rax, tess[rip]
	cmp	DWORD PTR [rax], r14d
	jg	.L19
	jmp	.L45
.L21:
	mov	rax, QWORD PTR tess[rip+8]
	mov	edi, DWORD PTR ERR_DROP[rip]
	lea	rsi, .LC0[rip]
	mov	ecx, DWORD PTR [rax]
	call	[QWORD PTR ri[rip]]
	mov	rcx, QWORD PTR [r12]
	jmp	.L31
.L42:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	ComputeTexCoords, .-ComputeTexCoords
	.comm	tess,40,32
	.comm	ri,8,8
	.comm	backEnd,8,8
	.comm	TR_MAX_TEXMODS,4,4
	.comm	NUM_TEXTURE_BUNDLES,4,4
	.comm	ERR_DROP,4,4
	.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_tr_shade.c_ComputeTexCoords.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR: unknown texmod '%d' in shader '%s'\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ComputeTexCoords, %function
ComputeTexCoords:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L43
	ldr	r3, [r10]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r7, r0
	mov	r8, #0
	ldr	r1, [r0]
	ldr	r5, .L43+4
.L2:
	ldr	r0, [r1, r8, lsl #4]
	add	r2, r1, r8, lsl #4
	sub	r0, r0, #136
	mov	r3, r2
	lsl	r6, r8, #4
	cmp	r0, #6
	ldrls	pc, [pc, r0, asl #2]
	b	.L4
.L5:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L1
.L1:
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, [r5, #8]
	ldr	r0, [r3, r8, lsl #2]
	bl	RB_CalcEnvironmentTexCoords
	ldr	r1, [r7]
	add	r3, r1, r6
.L4:
	ldr	r2, [r3, #4]
	cmp	r2, #0
	movgt	r4, #0
	lslgt	r9, r8, #2
	ble	.L33
.L32:
	ldr	r0, [r3, #8]
	add	r3, r4, r4, lsl #2
	ldr	r2, [r0, r3, lsl #2]
	add	r0, r0, r3, lsl #2
	sub	r3, r2, #128
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L21
.L23:
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L22
.L22:
	ldr	r3, .L43+8
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	ldr	r1, [r2, r9]
	ldr	r0, [r3]
	bl	RB_CalcScrollTexCoords
	ldr	r1, [r7]
.L31:
	add	r3, r1, r6
	ldr	r2, [r3, #4]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L32
.L33:
	ldr	r3, [r10]
	add	r8, r8, #1
	cmp	r3, r8
	bgt	.L2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r3, .L43+12
	ldr	r4, [r3]
	b	.L31
.L25:
	ldr	r3, [r5, #8]
	ldr	r0, [r0, #4]
	ldr	r1, [r3, r9]
	bl	RB_CalcRotateTexCoords
	ldr	r1, [r7]
	b	.L31
.L26:
	ldr	r3, [r5, #8]
	ldr	r0, [r0, #12]
	ldr	r1, [r3, r9]
	bl	RB_CalcScaleTexCoords
	ldr	r1, [r7]
	b	.L31
.L27:
	ldr	r3, [r5, #8]
	ldr	r0, [r0, #16]
	ldr	r1, [r3, r9]
	bl	RB_CalcScrollTexCoords
	ldr	r1, [r7]
	b	.L31
.L28:
	ldr	r3, [r5, #8]
	add	r0, r0, #8
	ldr	r1, [r3, r9]
	bl	RB_CalcStretchTexCoords
	ldr	r1, [r7]
	b	.L31
.L29:
	ldr	r3, [r5, #8]
	ldr	r1, [r3, r9]
	bl	RB_CalcTransformTexCoords
	ldr	r1, [r7]
	b	.L31
.L30:
	ldr	r3, [r5, #8]
	add	r0, r0, #8
	ldr	r1, [r3, r9]
	bl	RB_CalcTurbulentTexCoords
	ldr	r1, [r7]
	b	.L31
.L7:
	ldr	r3, [r5, #8]
	ldr	r0, [r3, r8, lsl #2]
	bl	RB_CalcFogTexCoords
	ldr	r1, [r7]
	add	r3, r1, r6
	b	.L4
.L8:
	ldr	r2, [r5]
	ldr	r3, [r5, #8]
	mov	r1, #0
	ldr	r0, [r3, r8, lsl #2]
	lsl	r2, r2, #3
	bl	Com_Memset
.L41:
	ldr	r1, [r7]
	add	r3, r1, r6
	b	.L4
.L9:
	ldr	ip, [r5]
	cmp	ip, #0
	movgt	r3, #0
	lslgt	r2, r8, #2
	ble	.L4
.L18:
	ldr	r0, [r5, #16]
	ldr	r1, [r5, #8]
	ldr	r0, [r0, r3, lsl #2]
	ldr	r1, [r1, r2]
	ldr	r0, [r0, #4]
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, [r0]
	str	r0, [r1]
	ldr	r0, [r5, #16]
	ldr	r1, [r5, #8]
	ldr	r0, [r0, r3, lsl #2]
	ldr	r1, [r1, r2]
	ldr	r0, [r0, #4]
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, [r0, #4]
	add	r3, r3, #1
	cmp	r3, ip
	str	r0, [r1, #4]
	bne	.L18
	b	.L41
.L11:
	ldr	r0, [r5]
	cmp	r0, #0
	movgt	r4, #0
	lslgt	r9, r8, #2
	bgt	.L20
	b	.L4
.L19:
	ldr	r2, [r7]
	add	r2, r2, r6
.L20:
	ldr	r3, [r5, #8]
	ldr	r1, [r2, #12]
	ldr	r2, [r5, #12]
	ldr	r3, [r3, r9]
	ldr	r0, [r2, r4, lsl #2]
	ldr	r1, [r1]
	ldr	fp, [r3, r4, lsl #2]
	bl	DotProduct
	str	r0, [fp]
	ldr	r3, [r7]
	ldr	r0, [r5, #8]
	add	r3, r3, r6
	ldr	r1, [r3, #12]
	ldr	r2, [r5, #12]
	ldr	r3, [r0, r9]
	ldr	r1, [r1, #4]
	ldr	r0, [r2, r4, lsl #2]
	ldr	fp, [r3, r4, lsl #2]
	bl	DotProduct
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	str	r0, [fp, #4]
	bgt	.L19
	b	.L41
.L10:
	ldr	ip, [r5]
	cmp	ip, #0
	movgt	r3, #0
	lslgt	r2, r8, #2
	ble	.L4
.L17:
	ldr	r0, [r5, #16]
	ldr	r1, [r5, #8]
	ldr	r0, [r0, r3, lsl #2]
	ldr	r1, [r1, r2]
	ldr	r0, [r0]
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, [r0]
	str	r0, [r1]
	ldr	r0, [r5, #16]
	ldr	r1, [r5, #8]
	ldr	r0, [r0, r3, lsl #2]
	ldr	r1, [r1, r2]
	ldr	r0, [r0]
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, [r0, #4]
	add	r3, r3, #1
	cmp	r3, ip
	str	r0, [r1, #4]
	bne	.L17
	b	.L41
.L21:
	ldr	r3, [r5, #4]
	ldr	r1, .L43+16
	ldr	r0, .L43+20
	ldr	fp, [r1]
	ldr	r3, [r3]
	ldr	r1, .L43+24
	ldr	r0, [r0]
	blx	fp
	ldr	r1, [r7]
	b	.L31
.L44:
	.align	2
.L43:
	.word	NUM_TEXTURE_BUNDLES
	.word	tess
	.word	backEnd
	.word	TR_MAX_TEXMODS
	.word	ri
	.word	ERR_DROP
	.word	.LC0
	.size	ComputeTexCoords, .-ComputeTexCoords
	.comm	tess,20,4
	.comm	ri,4,4
	.comm	backEnd,4,4
	.comm	TR_MAX_TEXMODS,4,4
	.comm	NUM_TEXTURE_BUNDLES,4,4
	.comm	ERR_DROP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
