	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GLW_LoadOpenGL
_GLW_LoadOpenGL:                        ## @GLW_LoadOpenGL
	.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	%r12
	pushq	%rbx
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_Q_strncpyz
	movq	%rbx, %rdi
	callq	_Q_strlwr
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	movq	_GLDRV_ICD@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_r_maskMinidriver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_GLDRV_STANDALONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	*(%rax)
	movq	__3DFX_DRIVER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-1072(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_GLDRV_VOODOO@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	(%rcx), %rax
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	__putenv
	leaq	-1072(%rbp), %rdi
	callq	_QGL_Init
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	_r_fullscreen@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_r_mode@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	_r_colorbits@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_GLW_StartDriverAndSetMode
	testl	%eax, %eax
	je	LBB0_7
LBB0_12:
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	_GLDRV_VOODOO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_13
## %bb.14:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, 8(%rcx)
	jmp	LBB0_16
LBB0_13:
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	movq	_glConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GLDRV_ICD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.8:
	movq	(%r12), %rax
	cmpl	$16, (%rax)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jne	LBB0_11
## %bb.9:
	cmpq	%rcx, %rbx
	jne	LBB0_11
## %bb.10:
	movq	(%r15), %rax
	cmpl	$3, (%rax)
	je	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$16, %edx
	callq	_GLW_StartDriverAndSetMode
	testl	%eax, %eax
	jne	LBB0_12
LBB0_15:
	xorl	%eax, %eax
	callq	_QGL_Shutdown
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opengl32"

	.comm	_r_maskMinidriver,8,3           ## @r_maskMinidriver
	.comm	_GLDRV_ICD,8,3                  ## @GLDRV_ICD
	.comm	_glConfig,16,3                  ## @glConfig
	.comm	_GLDRV_STANDALONE,8,3           ## @GLDRV_STANDALONE
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
L_.str.1:                               ## @.str.1
	.asciz	"...assuming '%s' is a standalone driver\n"

	.comm	__3DFX_DRIVER_NAME,8,3          ## @_3DFX_DRIVER_NAME
	.comm	_GLDRV_VOODOO,8,3               ## @GLDRV_VOODOO
L_.str.2:                               ## @.str.2
	.asciz	"FX_GLIDE_NO_SPLASH=0"

	.comm	_r_fullscreen,8,3               ## @r_fullscreen
	.comm	_r_mode,8,3                     ## @r_mode
	.comm	_r_colorbits,8,3                ## @r_colorbits
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_qfalse,8,3                     ## @qfalse
	.no_dead_strip	_GLW_LoadOpenGL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GLW_LoadOpenGL
_GLW_LoadOpenGL:                        ; @GLW_LoadOpenGL
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #1024
	bl	_Q_strncpyz
	add	x0, sp, #8
	bl	_Q_strlwr
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
Lloh5:
	adrp	x22, _GLDRV_ICD@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GLDRV_ICD@GOTPAGEOFF]
Lloh7:
	adrp	x21, _glConfig@GOTPAGE
Lloh8:
	ldr	x21, [x21, _glConfig@GOTPAGEOFF]
	mov	x8, x22
	cbnz	x0, LBB0_5
; %bb.1:
Lloh9:
	adrp	x8, _r_maskMinidriver@GOTPAGE
Lloh10:
	ldr	x8, [x8, _r_maskMinidriver@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _GLDRV_ICD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GLDRV_ICD@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _GLDRV_STANDALONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GLDRV_STANDALONE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh17:
	adrp	x8, _ri@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x9]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	blr	x8
Lloh25:
	adrp	x8, __3DFX_DRIVER_NAME@GOTPAGE
Lloh26:
	ldr	x8, [x8, __3DFX_DRIVER_NAME@GOTPAGEOFF]
Lloh27:
	ldr	x1, [x8]
	add	x0, sp, #8
	bl	_strstr
	cbz	x0, LBB0_6
; %bb.4:
Lloh28:
	adrp	x8, _GLDRV_VOODOO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GLDRV_VOODOO@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_6:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__putenv
	add	x0, sp, #8
	bl	_QGL_Init
	cbz	x0, LBB0_14
; %bb.7:
Lloh32:
	adrp	x8, _r_fullscreen@GOTPAGE
Lloh33:
	ldr	x8, [x8, _r_fullscreen@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh35:
	adrp	x23, _r_mode@GOTPAGE
Lloh36:
	ldr	x23, [x23, _r_mode@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w1, [x8]
Lloh37:
	adrp	x24, _r_colorbits@GOTPAGE
Lloh38:
	ldr	x24, [x24, _r_colorbits@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_GLW_StartDriverAndSetMode
	cbz	w0, LBB0_10
LBB0_8:
	ldr	x9, [x21]
Lloh39:
	adrp	x8, _GLDRV_VOODOO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GLDRV_VOODOO@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x8]
Lloh42:
	adrp	x8, _qtrue@GOTPAGE
Lloh43:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.9:
	ldr	x9, [x8]
	str	x9, [x21, #8]
	b	LBB0_15
LBB0_10:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x24]
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _qtrue@GOTPAGE
Lloh45:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh46:
	ldr	x3, [x9]
	cmp	w8, #16
	ccmp	x20, x3, #0, eq
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #3
	b.eq	LBB0_8
LBB0_13:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #16
	bl	_GLW_StartDriverAndSetMode
	cbnz	w0, LBB0_8
LBB0_14:
	bl	_QGL_Shutdown
Lloh47:
	adrp	x8, _qfalse@GOTPAGE
Lloh48:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_15:
	ldr	x0, [x8]
	ldur	x8, [x29, #-72]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opengl32"

	.comm	_r_maskMinidriver,8,3           ; @r_maskMinidriver
	.comm	_GLDRV_ICD,8,3                  ; @GLDRV_ICD
	.comm	_glConfig,16,3                  ; @glConfig
	.comm	_GLDRV_STANDALONE,8,3           ; @GLDRV_STANDALONE
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
l_.str.1:                               ; @.str.1
	.asciz	"...assuming '%s' is a standalone driver\n"

	.comm	__3DFX_DRIVER_NAME,8,3          ; @_3DFX_DRIVER_NAME
	.comm	_GLDRV_VOODOO,8,3               ; @GLDRV_VOODOO
l_.str.2:                               ; @.str.2
	.asciz	"FX_GLIDE_NO_SPLASH=0"

	.comm	_r_fullscreen,8,3               ; @r_fullscreen
	.comm	_r_mode,8,3                     ; @r_mode
	.comm	_r_colorbits,8,3                ; @r_colorbits
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_qfalse,8,3                     ; @qfalse
	.no_dead_strip	_GLW_LoadOpenGL
.subsections_via_symbols
