	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_TextureMode                 ## -- Begin function GL_TextureMode
	.p2align	4, 0x90
_GL_TextureMode:                        ## @GL_TextureMode
	.cfi_startproc
## %bb.0:
	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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_modes@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movq	%rbx, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movl	20(%rax), %edi
	movq	%rbx, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movl	32(%rax), %edi
	movq	%rbx, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movl	44(%rax), %edi
	movq	%rbx, %rsi
	callq	_Q_stricmp
	movl	$3, %ecx
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	(%r14), %rax
	movl	56(%rax), %edi
	movq	%rbx, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rax
	movl	68(%rax), %edi
	movq	%rbx, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.18:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_3:
	movl	$1, %ecx
	jmp	LBB0_12
LBB0_5:
	movl	$2, %ecx
	jmp	LBB0_12
LBB0_8:
	movl	$4, %ecx
	jmp	LBB0_12
LBB0_10:
	movq	_glConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GLHW_3DFX_2D3D@GOTPCREL(%rip), %rdx
	movl	$5, %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
	movl	$3, %ecx
LBB0_12:
	movq	(%r14), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %edx
	movq	_gl_filter_min@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movl	(%rax,%rcx,4), %eax
	movq	_gl_filter_max@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_tr@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r13
	movq	_GL_TEXTURE_MIN_FILTER@GOTPCREL(%rip), %r14
	movq	_GL_TEXTURE_MAG_FILTER@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_GL_Bind
	movl	(%r13), %edi
	movl	(%r14), %esi
	movq	_gl_filter_min@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qglTexParameterf
	movl	(%r13), %edi
	movl	(%r15), %esi
	movq	_gl_filter_max@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qglTexParameterf
	movl	(%r12), %eax
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_modes,8,3                      ## @modes
	.comm	_glConfig,8,3                   ## @glConfig
	.comm	_GLHW_3DFX_2D3D,8,3             ## @GLHW_3DFX_2D3D
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Refusing to set trilinear on a voodoo.\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad filter name\n"

	.comm	_gl_filter_min,4,2              ## @gl_filter_min
	.comm	_gl_filter_max,4,2              ## @gl_filter_max
	.comm	_tr,16,3                        ## @tr
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ## @GL_TEXTURE_MIN_FILTER
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ## @GL_TEXTURE_MAG_FILTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_TextureMode                 ; -- Begin function GL_TextureMode
	.p2align	2
_GL_TextureMode:                        ; @GL_TextureMode
	.cfi_startproc
; %bb.0:
	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	x19, x0
Lloh0:
	adrp	x20, _modes@GOTPAGE
Lloh1:
	ldr	x20, [x20, _modes@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8, #20]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8, #32]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x20]
	ldr	w0, [x8, #44]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_13
; %bb.4:
	ldr	x8, [x20]
	ldr	w0, [x8, #56]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_10
; %bb.5:
	ldr	x8, [x20]
	ldr	w0, [x8, #68]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_11
; %bb.6:
Lloh2:
	adrp	x8, _ri@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh6:
	ldr	x2, [x8]
Lloh7:
	ldr	w0, [x9]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	br	x2
LBB0_7:
	mov	x8, #0
	b	LBB0_14
LBB0_8:
	mov	w8, #1
	b	LBB0_14
LBB0_9:
	mov	w8, #2
	b	LBB0_14
LBB0_10:
	mov	w8, #4
	b	LBB0_14
LBB0_11:
Lloh10:
	adrp	x8, _glConfig@GOTPAGE
Lloh11:
	ldr	x8, [x8, _glConfig@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _GLHW_3DFX_2D3D@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GLHW_3DFX_2D3D@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.12:
Lloh16:
	adrp	x8, _ri@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_13:
	mov	w8, #3
LBB0_14:
	ldr	x9, [x20]
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldr	w9, [x8, #4]
Lloh24:
	adrp	x19, _gl_filter_min@GOTPAGE
Lloh25:
	ldr	x19, [x19, _gl_filter_min@GOTPAGEOFF]
	str	w9, [x19]
Lloh26:
	adrp	x20, _gl_filter_max@GOTPAGE
Lloh27:
	ldr	x20, [x20, _gl_filter_max@GOTPAGEOFF]
	ldr	w8, [x8]
	str	w8, [x20]
Lloh28:
	adrp	x21, _tr@GOTPAGE
Lloh29:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x22, #0
Lloh30:
	adrp	x23, _GL_TEXTURE_2D@GOTPAGE
Lloh31:
	ldr	x23, [x23, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh32:
	adrp	x24, _GL_TEXTURE_MIN_FILTER@GOTPAGE
Lloh33:
	ldr	x24, [x24, _GL_TEXTURE_MIN_FILTER@GOTPAGEOFF]
Lloh34:
	adrp	x25, _GL_TEXTURE_MAG_FILTER@GOTPAGE
Lloh35:
	ldr	x25, [x25, _GL_TEXTURE_MAG_FILTER@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x0, [x9, x22, lsl #3]
	ldr	x9, [x0]
	cbz	x9, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	bl	_GL_Bind
	ldr	w0, [x23]
	ldr	w1, [x24]
	ldr	w2, [x19]
	bl	_qglTexParameterf
	ldr	w0, [x23]
	ldr	w1, [x25]
	ldr	w2, [x20]
	bl	_qglTexParameterf
	ldr	w8, [x21]
	b	LBB0_16
LBB0_19:
	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
	ret
LBB0_20:
	mov	w8, #5
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_modes,8,3                      ; @modes
	.comm	_glConfig,8,3                   ; @glConfig
	.comm	_GLHW_3DFX_2D3D,8,3             ; @GLHW_3DFX_2D3D
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Refusing to set trilinear on a voodoo.\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad filter name\n"

	.comm	_gl_filter_min,4,2              ; @gl_filter_min
	.comm	_gl_filter_max,4,2              ; @gl_filter_max
	.comm	_tr,16,3                        ; @tr
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ; @GL_TEXTURE_MIN_FILTER
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ; @GL_TEXTURE_MAG_FILTER
.subsections_via_symbols
