	.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	_ri@GOTPCREL(%rip), %r12
	movq	_CVAR_ARCHIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	*8(%r12)
	movq	%rax, %r14
	movq	_PRINT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	*24(%r12)
	xorl	%eax, %eax
	callq	_GLW_CheckOSVersion
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	*16(%r12)
LBB0_2:
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %r15
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	*8(%r12)
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rbx
	movq	_g_wv@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_sscanf
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	*8(%r12)
	movl	(%rax), %edi
	movq	_glw_state@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_sscanf
	movq	_CVAR_LATCH@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.8(%rip), %rdi
	leaq	L_.str.9(%rip), %rbx
	movq	%rbx, %rsi
	callq	*8(%r12)
	movq	_r_allowSoftwareGL@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r13), %edx
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rsi
	callq	*8(%r12)
	movq	_r_maskMinidriver@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_GLW_StartOpenGL
	movq	_glConfig@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	_GL_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	8(%r15), %rbx
	movq	_GL_RENDERER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	16(%r15), %rbx
	movq	_GL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	24(%r15), %rbx
	movq	_GL_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglGetString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	8(%r15), %rsi
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_Q_strncpyz
	movq	%rbx, %rdi
	callq	_Q_strlwr
	movl	(%r14), %edi
	movq	8(%r15), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	_GLHW_GENERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	*(%r12)
	leaq	L_.str.13(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	movq	(%r12), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.14(%rip), %rbx
	leaq	L_.str.15(%rip), %rsi
	movq	%rbx, %rdi
	callq	*%rcx
	movl	(%r13), %edx
	movq	_CVAR_ARCHIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	L_.str.16(%rip), %rsi
	movq	%rbx, %rdi
	callq	*8(%r12)
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.14(%rip), %rdi
	leaq	L_.str.16(%rip), %rsi
	callq	*%rcx
	leaq	L_.str.17(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.18(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	leaq	L_.str.19(%rip), %rdi
	leaq	L_.str.9(%rip), %rsi
LBB0_11:
	callq	*(%r12)
LBB0_12:
	leaq	L_.str.24(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.25(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_16
LBB0_14:
	movq	_GLHW_3DFX_2D3D@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
LBB0_28:
	movq	8(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	*(%r12)
	xorl	%eax, %eax
	callq	_GLW_InitExtensions
	xorl	%eax, %eax
	callq	_WG_CheckHardwareGamma
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.13(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_28
## %bb.17:
	leaq	L_.str.26(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_28
## %bb.18:
	leaq	L_.str.27(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:
	leaq	L_.str.28(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.29(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_22
LBB0_21:
	movq	_GLHW_RAGEPRO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	leaq	L_.str.20(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.21(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	leaq	L_.str.22(%rip), %rdi
	leaq	L_.str.23(%rip), %rsi
	jmp	LBB0_11
LBB0_22:
	leaq	L_.str.17(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_28
## %bb.23:
	leaq	L_.str.30(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_GLHW_PERMEDIA2@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_25:
	leaq	L_.str.31(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	_GLHW_RIVA128@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_27:
	leaq	L_.str.32(%rip), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	jmp	LBB0_28
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ri,32,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
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
L_.str.2:                               ## @.str.2
	.asciz	"Initializing OpenGL subsystem\n"

	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.3:                               ## @.str.3
	.asciz	"GLimp_Init() - incorrect operating system\n"

L_.str.4:                               ## @.str.4
	.asciz	"win_hinstance"

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

L_.str.6:                               ## @.str.6
	.asciz	"%i"

	.comm	_g_wv,4,2                       ## @g_wv
L_.str.7:                               ## @.str.7
	.asciz	"win_wndproc"

	.comm	_glw_state,4,2                  ## @glw_state
L_.str.8:                               ## @.str.8
	.asciz	"r_allowSoftwareGL"

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

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

	.comm	_r_maskMinidriver,8,3           ## @r_maskMinidriver
	.comm	_glConfig,40,3                  ## @glConfig
	.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
	.comm	_GLHW_GENERIC,4,2               ## @GLHW_GENERIC
L_.str.11:                              ## @.str.11
	.asciz	"r_textureMode"

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

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

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

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

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

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

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

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

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

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

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

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

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

L_.str.25:                              ## @.str.25
	.asciz	"voodoo3"

	.comm	_GLHW_3DFX_2D3D,4,2             ## @GLHW_3DFX_2D3D
L_.str.26:                              ## @.str.26
	.asciz	"glzicd"

L_.str.27:                              ## @.str.27
	.asciz	"rage pro"

L_.str.28:                              ## @.str.28
	.asciz	"Rage Pro"

L_.str.29:                              ## @.str.29
	.asciz	"ragepro"

	.comm	_GLHW_RAGEPRO,4,2               ## @GLHW_RAGEPRO
L_.str.30:                              ## @.str.30
	.asciz	"permedia2"

	.comm	_GLHW_PERMEDIA2,4,2             ## @GLHW_PERMEDIA2
L_.str.31:                              ## @.str.31
	.asciz	"riva 128"

	.comm	_GLHW_RIVA128,4,2               ## @GLHW_RIVA128
L_.str.32:                              ## @.str.32
	.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, #-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 w27, -72
	.cfi_offset w28, -80
	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, #-72]
Lloh3:
	adrp	x22, _ri@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ri@GOTPAGEOFF]
	ldr	x8, [x22, #8]
Lloh5:
	adrp	x23, _CVAR_ARCHIVE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CVAR_ARCHIVE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
	mov	x19, x0
	ldr	x8, [x22, #24]
Lloh11:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	blr	x8
	bl	_GLW_CheckOSVersion
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x22, #16]
Lloh16:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	blr	x8
LBB0_2:
	ldr	x8, [x22, #8]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh23:
	adrp	x20, l_.str.5@PAGE
Lloh24:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x1, x20
	mov	w2, #0
	blr	x8
	ldr	w0, [x0]
Lloh25:
	adrp	x21, l_.str.6@PAGE
Lloh26:
	add	x21, x21, l_.str.6@PAGEOFF
Lloh27:
	adrp	x2, _g_wv@GOTPAGE
Lloh28:
	ldr	x2, [x2, _g_wv@GOTPAGEOFF]
	mov	x1, x21
	bl	_sscanf
	ldr	x8, [x22, #8]
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	mov	w2, #0
	blr	x8
	ldr	w0, [x0]
Lloh31:
	adrp	x2, _glw_state@GOTPAGE
Lloh32:
	ldr	x2, [x2, _glw_state@GOTPAGEOFF]
	mov	x1, x21
	bl	_sscanf
	ldr	x8, [x22, #8]
Lloh33:
	adrp	x24, _CVAR_LATCH@GOTPAGE
Lloh34:
	ldr	x24, [x24, _CVAR_LATCH@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh35:
	adrp	x0, l_.str.8@PAGE
Lloh36:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh37:
	adrp	x20, l_.str.9@PAGE
Lloh38:
	add	x20, x20, l_.str.9@PAGEOFF
	mov	x1, x20
	blr	x8
Lloh39:
	adrp	x8, _r_allowSoftwareGL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _r_allowSoftwareGL@GOTPAGEOFF]
Lloh41:
	str	x0, [x8]
	ldr	x8, [x22, #8]
	ldr	w2, [x24]
Lloh42:
	adrp	x0, l_.str.10@PAGE
Lloh43:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x20
	blr	x8
Lloh44:
	adrp	x8, _r_maskMinidriver@GOTPAGE
Lloh45:
	ldr	x8, [x8, _r_maskMinidriver@GOTPAGEOFF]
Lloh46:
	str	x0, [x8]
	bl	_GLW_StartOpenGL
Lloh47:
	adrp	x21, _glConfig@GOTPAGE
Lloh48:
	ldr	x21, [x21, _glConfig@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh49:
	adrp	x8, _GL_VENDOR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _GL_VENDOR@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x20, [x21, #8]
Lloh52:
	adrp	x8, _GL_RENDERER@GOTPAGE
Lloh53:
	ldr	x8, [x8, _GL_RENDERER@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x20, [x21, #16]
Lloh55:
	adrp	x8, _GL_VERSION@GOTPAGE
Lloh56:
	ldr	x8, [x8, _GL_VERSION@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x20, [x21, #24]
Lloh58:
	adrp	x8, _GL_EXTENSIONS@GOTPAGE
Lloh59:
	ldr	x8, [x8, _GL_EXTENSIONS@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	bl	_qglGetString
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x1, [x21, #8]
	add	x0, sp, #8
	mov	w2, #1024
	bl	_Q_strncpyz
	add	x0, sp, #8
	bl	_Q_strlwr
	ldr	w0, [x19]
	ldr	x1, [x21, #8]
	bl	_Q_stricmp
	cbz	x0, LBB0_9
; %bb.3:
Lloh61:
	adrp	x8, _GLHW_GENERIC@GOTPAGE
Lloh62:
	ldr	x8, [x8, _GLHW_GENERIC@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	ldr	x8, [x22]
Lloh64:
	adrp	x0, l_.str.11@PAGE
Lloh65:
	add	x0, x0, l_.str.11@PAGEOFF
Lloh66:
	adrp	x1, l_.str.12@PAGE
Lloh67:
	add	x1, x1, l_.str.12@PAGEOFF
	blr	x8
Lloh68:
	adrp	x1, l_.str.13@PAGE
Lloh69:
	add	x1, x1, l_.str.13@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	ldr	x8, [x22]
	cbz	x0, LBB0_5
; %bb.4:
Lloh70:
	adrp	x19, l_.str.14@PAGE
Lloh71:
	add	x19, x19, l_.str.14@PAGEOFF
Lloh72:
	adrp	x1, l_.str.15@PAGE
Lloh73:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	blr	x8
	ldr	x8, [x22, #8]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w2, w10, w9
Lloh74:
	adrp	x1, l_.str.16@PAGE
Lloh75:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x19
	blr	x8
	b	LBB0_9
LBB0_5:
Lloh76:
	adrp	x0, l_.str.14@PAGE
Lloh77:
	add	x0, x0, l_.str.14@PAGEOFF
Lloh78:
	adrp	x1, l_.str.16@PAGE
Lloh79:
	add	x1, x1, l_.str.16@PAGEOFF
	blr	x8
Lloh80:
	adrp	x1, l_.str.17@PAGE
Lloh81:
	add	x1, x1, l_.str.17@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_7
; %bb.6:
Lloh82:
	adrp	x1, l_.str.18@PAGE
Lloh83:
	add	x1, x1, l_.str.18@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbz	x0, LBB0_21
LBB0_7:
	ldr	x8, [x22]
Lloh84:
	adrp	x0, l_.str.19@PAGE
Lloh85:
	add	x0, x0, l_.str.19@PAGEOFF
Lloh86:
	adrp	x1, l_.str.9@PAGE
Lloh87:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_8:
	blr	x8
LBB0_9:
Lloh88:
	adrp	x1, l_.str.24@PAGE
Lloh89:
	add	x1, x1, l_.str.24@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_11
; %bb.10:
Lloh90:
	adrp	x1, l_.str.25@PAGE
Lloh91:
	add	x1, x1, l_.str.25@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbz	x0, LBB0_15
LBB0_11:
Lloh92:
	adrp	x8, _GLHW_3DFX_2D3D@GOTPAGE
Lloh93:
	ldr	x8, [x8, _GLHW_3DFX_2D3D@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x21, #32]
LBB0_13:
	ldr	x8, [x22]
	ldr	x1, [x21, #8]
Lloh94:
	adrp	x0, l_.str@PAGE
Lloh95:
	add	x0, x0, l_.str@PAGEOFF
	blr	x8
	bl	_GLW_InitExtensions
	bl	_WG_CheckHardwareGamma
	ldur	x8, [x29, #-72]
Lloh96:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh97:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh98:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.14:
	add	sp, sp, #1040
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh99:
	adrp	x1, l_.str.13@PAGE
Lloh100:
	add	x1, x1, l_.str.13@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_13
; %bb.16:
Lloh101:
	adrp	x1, l_.str.26@PAGE
Lloh102:
	add	x1, x1, l_.str.26@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_13
; %bb.17:
Lloh103:
	adrp	x1, l_.str.27@PAGE
Lloh104:
	add	x1, x1, l_.str.27@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_20
; %bb.18:
Lloh105:
	adrp	x1, l_.str.28@PAGE
Lloh106:
	add	x1, x1, l_.str.28@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_20
; %bb.19:
Lloh107:
	adrp	x1, l_.str.29@PAGE
Lloh108:
	add	x1, x1, l_.str.29@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbz	x0, LBB0_24
LBB0_20:
Lloh109:
	adrp	x8, _GLHW_RAGEPRO@GOTPAGE
Lloh110:
	ldr	x8, [x8, _GLHW_RAGEPRO@GOTPAGEOFF]
	b	LBB0_12
LBB0_21:
Lloh111:
	adrp	x1, l_.str.20@PAGE
Lloh112:
	add	x1, x1, l_.str.20@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_23
; %bb.22:
Lloh113:
	adrp	x1, l_.str.21@PAGE
Lloh114:
	add	x1, x1, l_.str.21@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbz	x0, LBB0_9
LBB0_23:
	ldr	x8, [x22]
Lloh115:
	adrp	x0, l_.str.22@PAGE
Lloh116:
	add	x0, x0, l_.str.22@PAGEOFF
Lloh117:
	adrp	x1, l_.str.23@PAGE
Lloh118:
	add	x1, x1, l_.str.23@PAGEOFF
	b	LBB0_8
LBB0_24:
Lloh119:
	adrp	x1, l_.str.17@PAGE
Lloh120:
	add	x1, x1, l_.str.17@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbnz	x0, LBB0_13
; %bb.25:
Lloh121:
	adrp	x1, l_.str.30@PAGE
Lloh122:
	add	x1, x1, l_.str.30@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbz	x0, LBB0_27
; %bb.26:
Lloh123:
	adrp	x8, _GLHW_PERMEDIA2@GOTPAGE
Lloh124:
	ldr	x8, [x8, _GLHW_PERMEDIA2@GOTPAGEOFF]
	b	LBB0_12
LBB0_27:
Lloh125:
	adrp	x1, l_.str.31@PAGE
Lloh126:
	add	x1, x1, l_.str.31@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	cbz	x0, LBB0_29
; %bb.28:
Lloh127:
	adrp	x8, _GLHW_RIVA128@GOTPAGE
Lloh128:
	ldr	x8, [x8, _GLHW_RIVA128@GOTPAGEOFF]
	b	LBB0_12
LBB0_29:
Lloh129:
	adrp	x1, l_.str.32@PAGE
Lloh130:
	add	x1, x1, l_.str.32@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	b	LBB0_13
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh109, Lloh110
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpAdd	Lloh115, Lloh116
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGot	Lloh123, Lloh124
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpAdd	Lloh129, Lloh130
	.cfi_endproc
                                        ; -- End function
	.comm	_ri,32,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
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
l_.str.2:                               ; @.str.2
	.asciz	"Initializing OpenGL subsystem\n"

	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.3:                               ; @.str.3
	.asciz	"GLimp_Init() - incorrect operating system\n"

l_.str.4:                               ; @.str.4
	.asciz	"win_hinstance"

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

l_.str.6:                               ; @.str.6
	.asciz	"%i"

	.comm	_g_wv,4,2                       ; @g_wv
l_.str.7:                               ; @.str.7
	.asciz	"win_wndproc"

	.comm	_glw_state,4,2                  ; @glw_state
l_.str.8:                               ; @.str.8
	.asciz	"r_allowSoftwareGL"

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

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

	.comm	_r_maskMinidriver,8,3           ; @r_maskMinidriver
	.comm	_glConfig,40,3                  ; @glConfig
	.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
	.comm	_GLHW_GENERIC,4,2               ; @GLHW_GENERIC
l_.str.11:                              ; @.str.11
	.asciz	"r_textureMode"

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

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

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

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

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

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

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

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

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

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

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

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

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

l_.str.25:                              ; @.str.25
	.asciz	"voodoo3"

	.comm	_GLHW_3DFX_2D3D,4,2             ; @GLHW_3DFX_2D3D
l_.str.26:                              ; @.str.26
	.asciz	"glzicd"

l_.str.27:                              ; @.str.27
	.asciz	"rage pro"

l_.str.28:                              ; @.str.28
	.asciz	"Rage Pro"

l_.str.29:                              ; @.str.29
	.asciz	"ragepro"

	.comm	_GLHW_RAGEPRO,4,2               ; @GLHW_RAGEPRO
l_.str.30:                              ; @.str.30
	.asciz	"permedia2"

	.comm	_GLHW_PERMEDIA2,4,2             ; @GLHW_PERMEDIA2
l_.str.31:                              ; @.str.31
	.asciz	"riva 128"

	.comm	_GLHW_RIVA128,4,2               ; @GLHW_RIVA128
l_.str.32:                              ; @.str.32
	.asciz	"riva tnt "

.subsections_via_symbols
