	.file	"extr_tr_image.c_GL_TextureMode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Refusing to set trilinear on a voodoo.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"bad filter name\n"
	.text
	.p2align 4
	.globl	GL_TextureMode
	.type	GL_TextureMode, @function
GL_TextureMode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
.L3:
	mov	rax, QWORD PTR modes[rip]
	lea	rbx, 0[rbp+rbp*2]
	mov	rsi, r12
	sal	rbx, 2
	mov	edi, DWORD PTR 8[rax+rbx]
	call	Q_stricmp@PLT
	test	eax, eax
	je	.L2
	add	rbp, 1
	cmp	rbp, 6
	jne	.L3
	mov	edi, DWORD PTR PRINT_ALL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	[QWORD PTR ri[rip]]
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	ebp, 5
	jne	.L5
	mov	rax, QWORD PTR GLHW_3DFX_2D3D[rip]
	cmp	QWORD PTR glConfig[rip], rax
	mov	ebx, 60
	jne	.L5
	mov	edi, DWORD PTR PRINT_ALL[rip]
	lea	rsi, .LC0[rip]
	mov	ebx, 36
	call	[QWORD PTR ri[rip]]
.L5:
	add	rbx, QWORD PTR modes[rip]
	lea	r12, tr[rip]
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR gl_filter_min[rip], eax
	mov	eax, DWORD PTR [rbx]
	xor	ebx, ebx
	mov	DWORD PTR gl_filter_max[rip], eax
	mov	eax, DWORD PTR tr[rip]
	test	eax, eax
	jg	.L6
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jle	.L1
.L6:
	mov	rax, QWORD PTR tr[rip+8]
	mov	rbp, QWORD PTR [rax+rbx*8]
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IMGFLAG_MIPMAP[rip], eax
	je	.L8
	test	DWORD PTR IMGFLAG_CUBEMAP[rip], eax
	jne	.L8
	mov	edi, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR gl_filter_min[rip]
	add	rbx, 1
	mov	edx, DWORD PTR GL_TEXTURE_MIN_FILTER[rip]
	mov	esi, DWORD PTR GL_TEXTURE_2D[rip]
	call	qglTextureParameterfEXT@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR gl_filter_max[rip]
	mov	edx, DWORD PTR GL_TEXTURE_MAG_FILTER[rip]
	mov	esi, DWORD PTR GL_TEXTURE_2D[rip]
	call	qglTextureParameterfEXT@PLT
	cmp	DWORD PTR [r12], ebx
	jg	.L6
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	GL_TextureMode, .-GL_TextureMode
	.comm	tr,16,16
	.comm	ri,8,8
	.comm	modes,8,8
	.comm	gl_filter_min,4,4
	.comm	gl_filter_max,4,4
	.comm	glConfig,8,8
	.comm	PRINT_ALL,4,4
	.comm	IMGFLAG_MIPMAP,4,4
	.comm	IMGFLAG_CUBEMAP,4,4
	.comm	GL_TEXTURE_MIN_FILTER,4,4
	.comm	GL_TEXTURE_MAG_FILTER,4,4
	.comm	GL_TEXTURE_2D,4,4
	.comm	GLHW_3DFX_2D3D,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_tr_image.c_GL_TextureMode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Refusing to set trilinear on a voodoo.\012\000"
	.align	2
.LC1:
	.ascii	"bad filter name\012\000"
	.text
	.align	2
	.global	GL_TextureMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	GL_TextureMode, %function
GL_TextureMode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	mov	r7, r0
	mov	r6, r5
	ldr	r8, .L20
	sub	sp, sp, #4
.L3:
	ldr	r3, [r8]
	mov	r1, r7
	add	r3, r3, r5
	ldr	r0, [r3, #8]
	bl	Q_stricmp
	cmp	r0, #0
	beq	.L2
	add	r6, r6, #1
	cmp	r6, #6
	add	r5, r5, #12
	bne	.L3
	ldr	r2, .L20+4
	ldr	r3, .L20+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r1, .L20+12
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bx	r3
.L2:
	cmp	r6, #5
	mov	r4, r0
	bne	.L5
	ldr	r2, .L20+16
	ldr	r3, .L20+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r5, #60
	bne	.L5
	ldr	r2, .L20+4
	ldr	r3, .L20+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r1, .L20+24
	blx	r3
	mov	r5, #36
.L5:
	ldr	r3, [r8]
	ldr	r6, .L20+28
	add	r2, r3, r5
	ldr	r1, [r6]
	ldr	r3, [r3, r5]
	ldr	r2, [r2, #4]
	ldr	r10, .L20+32
	ldr	fp, .L20+36
	cmp	r1, #0
	str	r2, [r10]
	str	r3, [fp]
	ble	.L1
	ldr	r7, .L20+40
	ldr	r8, .L20+44
	ldr	r9, .L20+48
	b	.L6
.L8:
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L1
.L6:
	ldr	r3, [r6, #4]
	ldr	r2, [r7]
	ldr	r5, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r3, [r5]
	tst	r3, r2
	beq	.L8
	ldr	r2, [r8]
	tst	r3, r2
	bne	.L8
	ldr	r2, .L20+52
	ldr	r3, [r10]
	ldr	r2, [r2]
	ldr	r1, [r9]
	ldr	r0, [r5, #4]
	bl	qglTextureParameterfEXT
	ldr	r2, .L20+56
	ldr	r3, [fp]
	ldr	r0, [r5, #4]
	ldr	r2, [r2]
	ldr	r1, [r9]
	bl	qglTextureParameterfEXT
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L6
.L1:
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	modes
	.word	PRINT_ALL
	.word	ri
	.word	.LC1
	.word	glConfig
	.word	GLHW_3DFX_2D3D
	.word	.LC0
	.word	tr
	.word	gl_filter_min
	.word	gl_filter_max
	.word	IMGFLAG_MIPMAP
	.word	IMGFLAG_CUBEMAP
	.word	GL_TEXTURE_2D
	.word	GL_TEXTURE_MIN_FILTER
	.word	GL_TEXTURE_MAG_FILTER
	.size	GL_TextureMode, .-GL_TextureMode
	.comm	tr,8,4
	.comm	ri,4,4
	.comm	modes,4,4
	.comm	gl_filter_min,4,4
	.comm	gl_filter_max,4,4
	.comm	glConfig,4,4
	.comm	PRINT_ALL,4,4
	.comm	IMGFLAG_MIPMAP,4,4
	.comm	IMGFLAG_CUBEMAP,4,4
	.comm	GL_TEXTURE_MIN_FILTER,4,4
	.comm	GL_TEXTURE_MAG_FILTER,4,4
	.comm	GL_TEXTURE_2D,4,4
	.comm	GLHW_3DFX_2D3D,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
