	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_Init                     ## -- Begin function GLimp_Init
	.p2align	4, 0x90
_GLimp_Init:                            ## @GLimp_Init
	.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
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_ri@GOTPCREL(%rip), %r15
	movq	_CVAR_ARCHIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	*8(%r15)
	movq	%rax, %r14
	movq	_CVAR_LATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	*8(%r15)
	movq	_r_allowSoftwareGL@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_CVAR_ROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	*8(%r15)
	movq	_r_previousglDriver@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_InitSig
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.6(%rip), %rdi
	callq	*(%r15)
LBB0_2:
	movq	_qXErrorHandler@GOTPCREL(%rip), %rdi
	callq	_XSetErrorHandler
	movq	_r_glDriver@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_GLW_LoadOpenGL
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	_OPENGL_DRIVER_NAME@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	__3DFX_DRIVER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_Q_stricmp
	movq	%r13, %rax
	orq	%r13, %rax
	je	LBB0_7
LBB0_9:
	testq	%r13, %r13
	jne	LBB0_11
	jmp	LBB0_10
LBB0_4:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	%r13, %rax
	jne	LBB0_9
LBB0_7:
	movq	(%r12), %rdi
	callq	_GLW_LoadOpenGL
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%r12), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	*(%r15)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	jne	LBB0_11
LBB0_10:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	*16(%r15)
LBB0_11:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	*(%r15)
	movq	_GLDRV_ICD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_glConfig@GOTPCREL(%rip), %r12
	movl	%eax, 40(%r12)
	movq	_GLHW_GENERIC@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 32(%r12)
	movq	(%r12), %rbx
	movq	_GL_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	8(%r12), %rbx
	movq	_GL_RENDERER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	8(%r12), %rbx
	cmpb	$0, (%rbx)
	je	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rax,%rbx)
	jne	LBB0_14
## %bb.13:
	movq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
LBB0_14:
	movq	16(%r12), %rbx
	movq	_GL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	24(%r12), %rbx
	movq	_GL_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	8(%r12), %rsi
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_strlwr
	movq	(%r14), %rdi
	movq	8(%r12), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.15:
	movq	(%r13), %rax
	movq	%rax, 32(%r12)
	leaq	L_.str.8(%rip), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	*(%r15)
	leaq	L_.str.10(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	movq	(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.11(%rip), %rbx
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	callq	*%rcx
	movq	_CVAR_LATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CVAR_ARCHIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	L_.str.13(%rip), %rsi
	movq	%rbx, %rdi
	callq	*8(%r15)
	jmp	LBB0_24
LBB0_17:
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	*%rcx
	leaq	L_.str.14(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.15(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	leaq	L_.str.16(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_23:
	callq	*(%r15)
LBB0_24:
	leaq	L_.str.21(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.22(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	je	LBB0_28
LBB0_26:
	movq	_GLHW_3DFX_2D3D@GOTPCREL(%rip), %rax
LBB0_27:
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
LBB0_36:
	movq	8(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	callq	*(%r15)
	xorl	%eax, %eax
	callq	_GLW_InitExtensions
	xorl	%eax, %eax
	callq	_GLW_InitGamma
	xorl	%eax, %eax
	callq	_InitSig
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	leaq	L_.str.23(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	leaq	L_.str.24(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	je	LBB0_31
LBB0_30:
	movq	_GLHW_RAGEPRO@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_20:
	leaq	L_.str.17(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.18(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	je	LBB0_24
LBB0_22:
	leaq	L_.str.19(%rip), %rdi
	leaq	L_.str.20(%rip), %rsi
	jmp	LBB0_23
LBB0_31:
	leaq	L_.str.25(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	_GLHW_PERMEDIA2@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_33:
	leaq	L_.str.26(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	_GLHW_RIVA128@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_35:
	leaq	L_.str.27(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_Q_stristr
	jmp	LBB0_36
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_ri,24,3                        ## @ri
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_lastValidRenderer"

L_.str.1:                               ## @.str.1
	.asciz	"(uninitialized)"

	.comm	_CVAR_ARCHIVE,4,2               ## @CVAR_ARCHIVE
L_.str.2:                               ## @.str.2
	.asciz	"r_allowSoftwareGL"

L_.str.3:                               ## @.str.3
	.asciz	"0"

	.comm	_CVAR_LATCH,4,2                 ## @CVAR_LATCH
	.comm	_r_allowSoftwareGL,8,3          ## @r_allowSoftwareGL
L_.str.4:                               ## @.str.4
	.asciz	"r_previousglDriver"

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_CVAR_ROM,4,2                   ## @CVAR_ROM
	.comm	_r_previousglDriver,8,3         ## @r_previousglDriver
L_.str.6:                               ## @.str.6
	.asciz	"r_glDriver"

	.comm	_qXErrorHandler,4,2             ## @qXErrorHandler
	.comm	_r_glDriver,8,3                 ## @r_glDriver
	.comm	_OPENGL_DRIVER_NAME,8,3         ## @OPENGL_DRIVER_NAME
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	__3DFX_DRIVER_NAME,8,3          ## @_3DFX_DRIVER_NAME
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.7:                               ## @.str.7
	.asciz	"GLimp_Init() - could not load OpenGL subsystem\n"

	.comm	_GLDRV_ICD,4,2                  ## @GLDRV_ICD
	.comm	_glConfig,48,3                  ## @glConfig
	.comm	_GLHW_GENERIC,8,3               ## @GLHW_GENERIC
	.comm	_GL_VENDOR,4,2                  ## @GL_VENDOR
	.comm	_GL_RENDERER,4,2                ## @GL_RENDERER
	.comm	_GL_VERSION,4,2                 ## @GL_VERSION
	.comm	_GL_EXTENSIONS,4,2              ## @GL_EXTENSIONS
L_.str.8:                               ## @.str.8
	.asciz	"r_textureMode"

L_.str.9:                               ## @.str.9
	.asciz	"GL_LINEAR_MIPMAP_NEAREST"

L_.str.10:                              ## @.str.10
	.asciz	"voodoo graphics/1 tmu/2 mb"

L_.str.11:                              ## @.str.11
	.asciz	"r_picmip"

L_.str.12:                              ## @.str.12
	.asciz	"2"

L_.str.13:                              ## @.str.13
	.asciz	"1"

L_.str.14:                              ## @.str.14
	.asciz	"rage 128"

L_.str.15:                              ## @.str.15
	.asciz	"rage128"

L_.str.16:                              ## @.str.16
	.asciz	"r_finish"

L_.str.17:                              ## @.str.17
	.asciz	"savage3d"

L_.str.18:                              ## @.str.18
	.asciz	"s3 savage4"

L_.str.19:                              ## @.str.19
	.asciz	"r_texturemode"

L_.str.20:                              ## @.str.20
	.asciz	"GL_LINEAR_MIPMAP_LINEAR"

L_.str.21:                              ## @.str.21
	.asciz	"banshee"

L_.str.22:                              ## @.str.22
	.asciz	"Voodoo_Graphics"

	.comm	_GLHW_3DFX_2D3D,8,3             ## @GLHW_3DFX_2D3D
L_.str.23:                              ## @.str.23
	.asciz	"rage pro"

L_.str.24:                              ## @.str.24
	.asciz	"RagePro"

	.comm	_GLHW_RAGEPRO,8,3               ## @GLHW_RAGEPRO
L_.str.25:                              ## @.str.25
	.asciz	"permedia2"

	.comm	_GLHW_PERMEDIA2,8,3             ## @GLHW_PERMEDIA2
L_.str.26:                              ## @.str.26
	.asciz	"riva 128"

	.comm	_GLHW_RIVA128,8,3               ## @GLHW_RIVA128
L_.str.27:                              ## @.str.27
	.asciz	"riva tnt "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_Init                     ; -- Begin function GLimp_Init
	.p2align	2
_GLimp_Init:                            ; @GLimp_Init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x20, _qfalse@GOTPAGE
Lloh4:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	ldr	x22, [x20]
Lloh5:
	adrp	x21, _ri@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ri@GOTPAGEOFF]
	ldr	x8, [x21, #8]
Lloh7:
	adrp	x23, _CVAR_ARCHIVE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _CVAR_ARCHIVE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
	mov	x19, x0
	ldr	x8, [x21, #8]
Lloh13:
	adrp	x24, _CVAR_LATCH@GOTPAGE
Lloh14:
	ldr	x24, [x24, _CVAR_LATCH@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	blr	x8
Lloh19:
	adrp	x8, _r_allowSoftwareGL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _r_allowSoftwareGL@GOTPAGEOFF]
Lloh21:
	str	x0, [x8]
	ldr	x8, [x21, #8]
Lloh22:
	adrp	x9, _CVAR_ROM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CVAR_ROM@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x9]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	blr	x8
Lloh29:
	adrp	x25, _r_previousglDriver@GOTPAGE
Lloh30:
	ldr	x25, [x25, _r_previousglDriver@GOTPAGEOFF]
	str	x0, [x25]
	bl	_InitSig
	ldr	x8, [x25]
	ldr	x1, [x8]
	ldrb	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	blr	x8
LBB0_2:
Lloh33:
	adrp	x0, _qXErrorHandler@GOTPAGE
Lloh34:
	ldr	x0, [x0, _qXErrorHandler@GOTPAGEOFF]
	bl	_XSetErrorHandler
Lloh35:
	adrp	x25, _r_glDriver@GOTPAGE
Lloh36:
	ldr	x25, [x25, _r_glDriver@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x0, [x8]
	bl	_GLW_LoadOpenGL
	cbnz	x0, LBB0_10
; %bb.3:
	ldr	x8, [x25]
	ldr	x0, [x8]
Lloh37:
	adrp	x26, _OPENGL_DRIVER_NAME@GOTPAGE
Lloh38:
	ldr	x26, [x26, _OPENGL_DRIVER_NAME@GOTPAGEOFF]
	ldr	x1, [x26]
	bl	_Q_stricmp
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x25]
	ldr	x0, [x8]
Lloh39:
	adrp	x8, __3DFX_DRIVER_NAME@GOTPAGE
Lloh40:
	ldr	x8, [x8, __3DFX_DRIVER_NAME@GOTPAGEOFF]
Lloh41:
	ldr	x1, [x8]
	bl	_Q_stricmp
	mov	x8, x22
	orr	x8, x8, x22
	cbz	x8, LBB0_7
LBB0_5:
	cbnz	x22, LBB0_10
	b	LBB0_9
LBB0_6:
Lloh42:
	adrp	x8, _qtrue@GOTPAGE
Lloh43:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	orr	x8, x8, x22
	cbnz	x8, LBB0_5
LBB0_7:
	ldr	x0, [x26]
	bl	_GLW_LoadOpenGL
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x21]
	ldr	x1, [x26]
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	blr	x8
	ldr	x8, [x20]
	ldr	x9, [x25]
	str	x8, [x9, #8]
Lloh47:
	adrp	x8, _qtrue@GOTPAGE
Lloh48:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh49:
	ldr	x22, [x8]
	cbnz	x22, LBB0_10
LBB0_9:
	ldr	x8, [x21, #16]
Lloh50:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x9]
Lloh53:
	adrp	x1, l_.str.7@PAGE
Lloh54:
	add	x1, x1, l_.str.7@PAGEOFF
	blr	x8
LBB0_10:
	ldr	x8, [x21]
	ldr	x9, [x25]
	ldr	x1, [x9]
Lloh55:
	adrp	x0, l_.str.4@PAGE
Lloh56:
	add	x0, x0, l_.str.4@PAGEOFF
	blr	x8
Lloh57:
	adrp	x8, _GLDRV_ICD@GOTPAGE
Lloh58:
	ldr	x8, [x8, _GLDRV_ICD@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x22, _glConfig@GOTPAGE
Lloh61:
	ldr	x22, [x22, _glConfig@GOTPAGEOFF]
	str	w8, [x22, #40]
Lloh62:
	adrp	x25, _GLHW_GENERIC@GOTPAGE
Lloh63:
	ldr	x25, [x25, _GLHW_GENERIC@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x22, #32]
	ldr	x20, [x22]
Lloh64:
	adrp	x8, _GL_VENDOR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _GL_VENDOR@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x20, [x22, #8]
Lloh67:
	adrp	x8, _GL_RENDERER@GOTPAGE
Lloh68:
	ldr	x8, [x8, _GL_RENDERER@GOTPAGEOFF]
Lloh69:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x20, [x22, #8]
	ldrb	w8, [x20]
	cbz	w8, LBB0_13
; %bb.11:
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.ne	LBB0_13
; %bb.12:
	ldr	x20, [x22, #8]
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	sturb	wzr, [x8, #-1]
LBB0_13:
	ldr	x20, [x22, #16]
Lloh70:
	adrp	x8, _GL_VERSION@GOTPAGE
Lloh71:
	ldr	x8, [x8, _GL_VERSION@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x20, [x22, #24]
Lloh73:
	adrp	x8, _GL_EXTENSIONS@GOTPAGE
Lloh74:
	ldr	x8, [x8, _GL_EXTENSIONS@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x1, [x22, #8]
	add	x0, sp, #8
	bl	_strcpy
	add	x0, sp, #8
	bl	_strlwr
	ldr	x0, [x19]
	ldr	x1, [x22, #8]
	bl	_Q_stricmp
	cbz	x0, LBB0_20
; %bb.14:
	ldr	x8, [x25]
	str	x8, [x22, #32]
	ldr	x8, [x21]
Lloh76:
	adrp	x0, l_.str.8@PAGE
Lloh77:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh78:
	adrp	x1, l_.str.9@PAGE
Lloh79:
	add	x1, x1, l_.str.9@PAGEOFF
	blr	x8
Lloh80:
	adrp	x1, l_.str.10@PAGE
Lloh81:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	ldr	x8, [x21]
	cbz	x0, LBB0_16
; %bb.15:
Lloh82:
	adrp	x19, l_.str.11@PAGE
Lloh83:
	add	x19, x19, l_.str.11@PAGEOFF
Lloh84:
	adrp	x1, l_.str.12@PAGE
Lloh85:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	blr	x8
	ldr	x8, [x21, #8]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w2, w10, w9
Lloh86:
	adrp	x1, l_.str.13@PAGE
Lloh87:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	blr	x8
	b	LBB0_20
LBB0_16:
Lloh88:
	adrp	x0, l_.str.11@PAGE
Lloh89:
	add	x0, x0, l_.str.11@PAGEOFF
Lloh90:
	adrp	x1, l_.str.13@PAGE
Lloh91:
	add	x1, x1, l_.str.13@PAGEOFF
	blr	x8
Lloh92:
	adrp	x1, l_.str.14@PAGE
Lloh93:
	add	x1, x1, l_.str.14@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbnz	x0, LBB0_18
; %bb.17:
Lloh94:
	adrp	x1, l_.str.15@PAGE
Lloh95:
	add	x1, x1, l_.str.15@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbz	x0, LBB0_29
LBB0_18:
	ldr	x8, [x21]
Lloh96:
	adrp	x0, l_.str.16@PAGE
Lloh97:
	add	x0, x0, l_.str.16@PAGEOFF
Lloh98:
	adrp	x1, l_.str.3@PAGE
Lloh99:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_19:
	blr	x8
LBB0_20:
Lloh100:
	adrp	x1, l_.str.21@PAGE
Lloh101:
	add	x1, x1, l_.str.21@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbnz	x0, LBB0_22
; %bb.21:
Lloh102:
	adrp	x1, l_.str.22@PAGE
Lloh103:
	add	x1, x1, l_.str.22@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbz	x0, LBB0_26
LBB0_22:
Lloh104:
	adrp	x8, _GLHW_3DFX_2D3D@GOTPAGE
Lloh105:
	ldr	x8, [x8, _GLHW_3DFX_2D3D@GOTPAGEOFF]
LBB0_23:
	ldr	x8, [x8]
	str	x8, [x22, #32]
LBB0_24:
	ldr	x8, [x21]
	ldr	x1, [x22, #8]
Lloh106:
	adrp	x0, l_.str@PAGE
Lloh107:
	add	x0, x0, l_.str@PAGEOFF
	blr	x8
	bl	_GLW_InitExtensions
	bl	_GLW_InitGamma
	bl	_InitSig
	ldur	x8, [x29, #-88]
Lloh108:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh109:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh110:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.25:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
Lloh111:
	adrp	x1, l_.str.23@PAGE
Lloh112:
	add	x1, x1, l_.str.23@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbnz	x0, LBB0_28
; %bb.27:
Lloh113:
	adrp	x1, l_.str.24@PAGE
Lloh114:
	add	x1, x1, l_.str.24@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbz	x0, LBB0_32
LBB0_28:
Lloh115:
	adrp	x8, _GLHW_RAGEPRO@GOTPAGE
Lloh116:
	ldr	x8, [x8, _GLHW_RAGEPRO@GOTPAGEOFF]
	b	LBB0_23
LBB0_29:
Lloh117:
	adrp	x1, l_.str.17@PAGE
Lloh118:
	add	x1, x1, l_.str.17@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbnz	x0, LBB0_31
; %bb.30:
Lloh119:
	adrp	x1, l_.str.18@PAGE
Lloh120:
	add	x1, x1, l_.str.18@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbz	x0, LBB0_20
LBB0_31:
	ldr	x8, [x21]
Lloh121:
	adrp	x0, l_.str.19@PAGE
Lloh122:
	add	x0, x0, l_.str.19@PAGEOFF
Lloh123:
	adrp	x1, l_.str.20@PAGE
Lloh124:
	add	x1, x1, l_.str.20@PAGEOFF
	b	LBB0_19
LBB0_32:
Lloh125:
	adrp	x1, l_.str.25@PAGE
Lloh126:
	add	x1, x1, l_.str.25@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbz	x0, LBB0_34
; %bb.33:
Lloh127:
	adrp	x8, _GLHW_PERMEDIA2@GOTPAGE
Lloh128:
	ldr	x8, [x8, _GLHW_PERMEDIA2@GOTPAGEOFF]
	b	LBB0_23
LBB0_34:
Lloh129:
	adrp	x1, l_.str.26@PAGE
Lloh130:
	add	x1, x1, l_.str.26@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	cbz	x0, LBB0_36
; %bb.35:
Lloh131:
	adrp	x8, _GLHW_RIVA128@GOTPAGE
Lloh132:
	ldr	x8, [x8, _GLHW_RIVA128@GOTPAGEOFF]
	b	LBB0_23
LBB0_36:
Lloh133:
	adrp	x1, l_.str.27@PAGE
Lloh134:
	add	x1, x1, l_.str.27@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stristr
	b	LBB0_24
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpAdd	Lloh129, Lloh130
	.loh AdrpLdrGot	Lloh131, Lloh132
	.loh AdrpAdd	Lloh133, Lloh134
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_ri,24,3                        ; @ri
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_lastValidRenderer"

l_.str.1:                               ; @.str.1
	.asciz	"(uninitialized)"

	.comm	_CVAR_ARCHIVE,4,2               ; @CVAR_ARCHIVE
l_.str.2:                               ; @.str.2
	.asciz	"r_allowSoftwareGL"

l_.str.3:                               ; @.str.3
	.asciz	"0"

	.comm	_CVAR_LATCH,4,2                 ; @CVAR_LATCH
	.comm	_r_allowSoftwareGL,8,3          ; @r_allowSoftwareGL
l_.str.4:                               ; @.str.4
	.asciz	"r_previousglDriver"

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_CVAR_ROM,4,2                   ; @CVAR_ROM
	.comm	_r_previousglDriver,8,3         ; @r_previousglDriver
l_.str.6:                               ; @.str.6
	.asciz	"r_glDriver"

	.comm	_qXErrorHandler,4,2             ; @qXErrorHandler
	.comm	_r_glDriver,8,3                 ; @r_glDriver
	.comm	_OPENGL_DRIVER_NAME,8,3         ; @OPENGL_DRIVER_NAME
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	__3DFX_DRIVER_NAME,8,3          ; @_3DFX_DRIVER_NAME
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.7:                               ; @.str.7
	.asciz	"GLimp_Init() - could not load OpenGL subsystem\n"

	.comm	_GLDRV_ICD,4,2                  ; @GLDRV_ICD
	.comm	_glConfig,48,3                  ; @glConfig
	.comm	_GLHW_GENERIC,8,3               ; @GLHW_GENERIC
	.comm	_GL_VENDOR,4,2                  ; @GL_VENDOR
	.comm	_GL_RENDERER,4,2                ; @GL_RENDERER
	.comm	_GL_VERSION,4,2                 ; @GL_VERSION
	.comm	_GL_EXTENSIONS,4,2              ; @GL_EXTENSIONS
l_.str.8:                               ; @.str.8
	.asciz	"r_textureMode"

l_.str.9:                               ; @.str.9
	.asciz	"GL_LINEAR_MIPMAP_NEAREST"

l_.str.10:                              ; @.str.10
	.asciz	"voodoo graphics/1 tmu/2 mb"

l_.str.11:                              ; @.str.11
	.asciz	"r_picmip"

l_.str.12:                              ; @.str.12
	.asciz	"2"

l_.str.13:                              ; @.str.13
	.asciz	"1"

l_.str.14:                              ; @.str.14
	.asciz	"rage 128"

l_.str.15:                              ; @.str.15
	.asciz	"rage128"

l_.str.16:                              ; @.str.16
	.asciz	"r_finish"

l_.str.17:                              ; @.str.17
	.asciz	"savage3d"

l_.str.18:                              ; @.str.18
	.asciz	"s3 savage4"

l_.str.19:                              ; @.str.19
	.asciz	"r_texturemode"

l_.str.20:                              ; @.str.20
	.asciz	"GL_LINEAR_MIPMAP_LINEAR"

l_.str.21:                              ; @.str.21
	.asciz	"banshee"

l_.str.22:                              ; @.str.22
	.asciz	"Voodoo_Graphics"

	.comm	_GLHW_3DFX_2D3D,8,3             ; @GLHW_3DFX_2D3D
l_.str.23:                              ; @.str.23
	.asciz	"rage pro"

l_.str.24:                              ; @.str.24
	.asciz	"RagePro"

	.comm	_GLHW_RAGEPRO,8,3               ; @GLHW_RAGEPRO
l_.str.25:                              ; @.str.25
	.asciz	"permedia2"

	.comm	_GLHW_PERMEDIA2,8,3             ; @GLHW_PERMEDIA2
l_.str.26:                              ; @.str.26
	.asciz	"riva 128"

	.comm	_GLHW_RIVA128,8,3               ; @GLHW_RIVA128
l_.str.27:                              ; @.str.27
	.asciz	"riva tnt "

.subsections_via_symbols
