	.file	"extr_tr_shade.c_DrawMultitextured.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DrawMultitextured, @function
DrawMultitextured:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movsx	rsi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR tess[rip+8]
	mov	rbp, QWORD PTR [rax+rsi*8]
	mov	edi, DWORD PTR 8[rbp]
	call	GL_State@PLT
	cmp	QWORD PTR backEnd[rip], 0
	jne	.L7
.L2:
	xor	edi, edi
	call	GL_SelectTexture@PLT
	mov	rax, QWORD PTR 8[rbx]
	xor	edx, edx
	mov	edi, 2
	mov	esi, DWORD PTR GL_FLOAT[rip]
	mov	ecx, DWORD PTR [rax]
	call	qglTexCoordPointer@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	R_BindAnimatedImage@PLT
	mov	edi, 1
	call	GL_SelectTexture@PLT
	mov	edi, DWORD PTR GL_TEXTURE_2D[rip]
	call	qglEnable@PLT
	mov	edi, DWORD PTR GL_TEXTURE_COORD_ARRAY[rip]
	call	qglEnableClientState@PLT
	mov	rax, QWORD PTR r_lightmap[rip]
	cmp	QWORD PTR [rax], 0
	je	.L3
	mov	edi, DWORD PTR GL_REPLACE[rip]
	call	GL_TexEnv@PLT
.L4:
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR GL_FLOAT[rip]
	xor	edx, edx
	mov	edi, 2
	mov	ecx, DWORD PTR 4[rax]
	call	qglTexCoordPointer@PLT
	mov	rdi, QWORD PTR 0[rbp]
	add	rdi, 4
	call	R_BindAnimatedImage@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	R_DrawElements@PLT
	mov	edi, DWORD PTR GL_TEXTURE_2D[rip]
	call	qglDisable@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	GL_SelectTexture@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR tess[rip]
	mov	edi, DWORD PTR [rax]
	call	GL_TexEnv@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR GL_FILL[rip]
	mov	edi, DWORD PTR GL_FRONT_AND_BACK[rip]
	call	qglPolygonMode@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	DrawMultitextured, .-DrawMultitextured
	.comm	tess,16,16
	.comm	r_lightmap,8,8
	.comm	backEnd,8,8
	.comm	GL_TEXTURE_COORD_ARRAY,4,4
	.comm	GL_TEXTURE_2D,4,4
	.comm	GL_REPLACE,4,4
	.comm	GL_FRONT_AND_BACK,4,4
	.comm	GL_FLOAT,4,4
	.comm	GL_FILL,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_DrawMultitextured.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawMultitextured, %function
DrawMultitextured:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L11
	mov	r4, r0
	ldr	r3, [r8, #4]
	ldr	r5, [r3, r1, lsl #2]
	ldr	r0, [r5, #4]
	bl	GL_State
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
.L2:
	mov	r0, #0
	bl	GL_SelectTexture
	ldr	r7, .L11+8
	ldr	r3, [r4, #8]
	ldr	r1, [r7]
	mov	r2, #0
	ldr	r3, [r3]
	mov	r0, #2
	bl	qglTexCoordPointer
	ldr	r6, .L11+12
	ldr	r0, [r5]
	bl	R_BindAnimatedImage
	mov	r0, #1
	bl	GL_SelectTexture
	ldr	r0, [r6]
	bl	qglEnable
	ldr	r3, .L11+16
	ldr	r0, [r3]
	bl	qglEnableClientState
	ldr	r3, .L11+20
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	ldreq	r3, [r8]
	ldrne	r3, .L11+24
	ldr	r0, [r3]
	bl	GL_TexEnv
	ldr	r3, [r4, #8]
	mov	r2, #0
	ldr	r1, [r7]
	ldr	r3, [r3, #4]
	mov	r0, #2
	bl	qglTexCoordPointer
	ldr	r0, [r5]
	add	r0, r0, #4
	bl	R_BindAnimatedImage
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	R_DrawElements
	ldr	r0, [r6]
	bl	qglDisable
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #0
	b	GL_SelectTexture
.L10:
	ldr	r2, .L11+28
	ldr	r3, .L11+32
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	qglPolygonMode
	b	.L2
.L12:
	.align	2
.L11:
	.word	tess
	.word	backEnd
	.word	GL_FLOAT
	.word	GL_TEXTURE_2D
	.word	GL_TEXTURE_COORD_ARRAY
	.word	r_lightmap
	.word	GL_REPLACE
	.word	GL_FILL
	.word	GL_FRONT_AND_BACK
	.size	DrawMultitextured, .-DrawMultitextured
	.comm	tess,8,4
	.comm	r_lightmap,4,4
	.comm	backEnd,4,4
	.comm	GL_TEXTURE_COORD_ARRAY,4,4
	.comm	GL_TEXTURE_2D,4,4
	.comm	GL_REPLACE,4,4
	.comm	GL_FRONT_AND_BACK,4,4
	.comm	GL_FLOAT,4,4
	.comm	GL_FILL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
