	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitOpenGL
_InitOpenGL:                            ## @InitOpenGL
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_glConfig@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GLimp_Init
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_GLimp_InitExtraExtensions
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_GL_MAX_TEXTURE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %r15
	movq	%r15, %rsi
	callq	_qglGetIntegerv
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	cmovlel	%r14d, %eax
	movl	%eax, 8(%rbx)
	movq	_GL_MAX_TEXTURE_IMAGE_UNITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_qglGetIntegerv
	movl	-28(%rbp), %eax
	movl	%eax, 12(%rbx)
	movq	_GL_MAX_VERTEX_UNIFORM_COMPONENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_qglGetIntegerv
	movq	_IQM_MAX_JOINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %edx
	leal	-160(%rdx), %eax
	addl	$-145, %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$4, %edx
	xorl	%edi, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_Com_Clamp
	cmpl	$12, %eax
	cmovll	%r14d, %eax
	movq	_glRefConfig@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	xorl	%eax, %eax
	callq	_GL_SetDefaultState
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_glConfig,24,3                  ## @glConfig
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_GL_MAX_TEXTURE_SIZE,4,2        ## @GL_MAX_TEXTURE_SIZE
	.comm	_GL_MAX_TEXTURE_IMAGE_UNITS,4,2 ## @GL_MAX_TEXTURE_IMAGE_UNITS
	.comm	_GL_MAX_VERTEX_UNIFORM_COMPONENTS,4,2 ## @GL_MAX_VERTEX_UNIFORM_COMPONENTS
	.comm	_IQM_MAX_JOINTS,4,2             ## @IQM_MAX_JOINTS
	.comm	_glRefConfig,4,2                ## @glRefConfig
	.no_dead_strip	_InitOpenGL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitOpenGL
_InitOpenGL:                            ; @InitOpenGL
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _glConfig@GOTPAGE
Lloh1:
	ldr	x19, [x19, _glConfig@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_GLimp_Init
	bl	_GLimp_InitExtraExtensions
Lloh5:
	adrp	x8, _qtrue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _GL_MAX_TEXTURE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_MAX_TEXTURE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_qglGetIntegerv
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	str	w8, [x19, #8]
Lloh11:
	adrp	x8, _GL_MAX_TEXTURE_IMAGE_UNITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_MAX_TEXTURE_IMAGE_UNITS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_qglGetIntegerv
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
Lloh14:
	adrp	x8, _GL_MAX_VERTEX_UNIFORM_COMPONENTS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_MAX_VERTEX_UNIFORM_COMPONENTS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_qglGetIntegerv
Lloh17:
	adrp	x8, _IQM_MAX_JOINTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IQM_MAX_JOINTS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
	sub	w9, w8, #160
	sub	w8, w8, #145
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #4
	mov	w0, #0
	bl	_Com_Clamp
	cmp	w0, #12
	csel	w8, wzr, w0, lt
Lloh20:
	adrp	x9, _glRefConfig@GOTPAGE
Lloh21:
	ldr	x9, [x9, _glRefConfig@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
LBB0_2:
	bl	_GL_SetDefaultState
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_glConfig,24,3                  ; @glConfig
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_GL_MAX_TEXTURE_SIZE,4,2        ; @GL_MAX_TEXTURE_SIZE
	.comm	_GL_MAX_TEXTURE_IMAGE_UNITS,4,2 ; @GL_MAX_TEXTURE_IMAGE_UNITS
	.comm	_GL_MAX_VERTEX_UNIFORM_COMPONENTS,4,2 ; @GL_MAX_VERTEX_UNIFORM_COMPONENTS
	.comm	_IQM_MAX_JOINTS,4,2             ; @IQM_MAX_JOINTS
	.comm	_glRefConfig,4,2                ; @glRefConfig
	.no_dead_strip	_InitOpenGL
.subsections_via_symbols
