	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GLW_StartOpenGL
_GLW_StartOpenGL:                       ## @GLW_StartOpenGL
	.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	_qfalse@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_r_glDriver@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	8(%rax), %edi
	callq	_GLW_LoadOpenGL
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	(%r12), %rax
	movl	8(%rax), %edi
	movq	_OPENGL_DRIVER_NAME@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r12), %rax
	movl	8(%rax), %edi
	movq	__3DFX_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_stricmp
	movq	%rbx, %rcx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_5:
	movq	%rbx, %r13
	movq	%rcx, %rbx
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_15:
	testq	%r13, %r13
	jne	LBB0_10
## %bb.16:
	movl	(%r15), %edi
	callq	_GLW_LoadOpenGL
	testq	%rax, %rax
	je	LBB0_17
LBB0_14:
	movq	_ri@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	jmp	LBB0_9
LBB0_2:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%rbx, %rbx
	jne	LBB0_15
LBB0_7:
	movq	__3DFX_DRIVER_NAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_GLW_LoadOpenGL
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_ri@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	*8(%rax)
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testq	%r13, %r13
	je	LBB0_12
LBB0_17:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ERR_FATAL@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_12:
	movl	(%r15), %edi
	callq	_GLW_LoadOpenGL
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	*(%rax)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_r_glDriver,8,3                 ## @r_glDriver
	.comm	_OPENGL_DRIVER_NAME,4,2         ## @OPENGL_DRIVER_NAME
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	__3DFX_DRIVER_NAME,4,2          ## @_3DFX_DRIVER_NAME
	.comm	_ri,16,3                        ## @ri
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_glDriver"

	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"GLW_StartOpenGL() - could not load OpenGL subsystem\n"

	.no_dead_strip	_GLW_StartOpenGL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GLW_StartOpenGL
_GLW_StartOpenGL:                       ; @GLW_StartOpenGL
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _qfalse@GOTPAGE
Lloh1:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	ldr	x22, [x20]
Lloh2:
	adrp	x19, _r_glDriver@GOTPAGE
Lloh3:
	ldr	x19, [x19, _r_glDriver@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_GLW_LoadOpenGL
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
Lloh4:
	adrp	x21, _OPENGL_DRIVER_NAME@GOTPAGE
Lloh5:
	ldr	x21, [x21, _OPENGL_DRIVER_NAME@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_Q_stricmp
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
Lloh6:
	adrp	x8, __3DFX_DRIVER_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, __3DFX_DRIVER_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_Q_stricmp
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w0, #0
	mov	x23, x22
	csel	x22, x8, x22, eq
	cbz	x22, LBB0_7
LBB0_3:
	cbnz	x23, LBB0_10
; %bb.4:
	ldr	w0, [x21]
	bl	_GLW_LoadOpenGL
	cbz	x0, LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, _ri@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8, #8]
	ldr	w1, [x21]
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _qtrue@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x8]
	cbnz	x22, LBB0_3
LBB0_7:
Lloh18:
	adrp	x22, __3DFX_DRIVER_NAME@GOTPAGE
Lloh19:
	ldr	x22, [x22, __3DFX_DRIVER_NAME@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_GLW_LoadOpenGL
	cbz	x0, LBB0_11
; %bb.8:
Lloh20:
	adrp	x8, _ri@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8, #8]
	ldr	w1, [x22]
LBB0_9:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	blr	x8
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbz	x23, LBB0_13
LBB0_12:
Lloh25:
	adrp	x8, _ri@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh27:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh29:
	ldr	x2, [x8]
Lloh30:
	ldr	w0, [x9]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
LBB0_13:
	ldr	w0, [x21]
	bl	_GLW_LoadOpenGL
	cbnz	x0, LBB0_5
; %bb.14:
Lloh33:
	adrp	x8, _ri@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x9]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_r_glDriver,8,3                 ; @r_glDriver
	.comm	_OPENGL_DRIVER_NAME,4,2         ; @OPENGL_DRIVER_NAME
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	__3DFX_DRIVER_NAME,4,2          ; @_3DFX_DRIVER_NAME
	.comm	_ri,16,3                        ; @ri
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_glDriver"

	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"GLW_StartOpenGL() - could not load OpenGL subsystem\n"

	.no_dead_strip	_GLW_StartOpenGL
.subsections_via_symbols
