	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glad_gl_find_core_gl
_glad_gl_find_core_gl:                  ## @glad_gl_find_core_gl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$13, %r14d
	movl	$13, %edx
	movq	%rax, %rdi
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$13, %r14d
	movl	$13, %edx
	movq	%rbx, %rdi
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$10, %r14d
	movl	$10, %edx
	movq	%rbx, %rdi
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	addq	%r14, %rbx
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_GLAD_IMPL_UTIL_SSCANF
	movl	-56(%rbp), %r9d
	movl	-52(%rbp), %esi
	xorl	%eax, %eax
	cmpl	$2, %r9d
	setge	%al
	xorl	%ecx, %ecx
	cmpl	$4, %r9d
	setge	%cl
	cmpl	$3, %esi
	movl	$1, %edx
	movl	%eax, %r10d
	cmovgel	%edx, %r10d
	movl	%ecx, %edi
	cmovgel	%edx, %edi
	cmpl	$3, %r9d
	cmovnel	%ecx, %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	cmpl	$2, %esi
	movl	%eax, %r11d
	cmovgel	%edx, %r11d
	movl	%ecx, %edi
	cmovgel	%edx, %edi
	xorl	%r14d, %r14d
	cmpl	$3, %r9d
	setge	%r14b
	cmovnel	%ecx, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	movl	%esi, %edi
	movl	%eax, %esi
	cmovnsl	%edx, %esi
	movl	%eax, %ebx
	cmovgl	%edx, %ebx
	movl	%r14d, %r8d
	cmovnsl	%edx, %r8d
	movl	%r14d, %r15d
	cmovgl	%edx, %r15d
	movl	%ecx, %r12d
	cmovnsl	%edx, %r12d
	movl	%ecx, %r13d
	cmovgl	%edx, %r13d
	cmpl	$3, %r9d
	cmovnel	%ecx, %r12d
	cmovnel	%ecx, %r13d
	cmpl	$2, %r9d
	cmovnel	%r14d, %r8d
	cmovnel	%r14d, %r15d
	cmpl	$4, %edi
	movl	%edi, %r14d
	movl	%eax, %ecx
	cmovgel	%edx, %ecx
	cmovlel	%eax, %edx
	cmpl	$1, %r9d
	cmovnel	%eax, %esi
	movq	_GLAD_GL_VERSION_1_0@GOTPCREL(%rip), %rdi
	movl	%esi, (%rdi)
	cmovnel	%eax, %ebx
	movq	_GLAD_GL_VERSION_1_1@GOTPCREL(%rip), %rsi
	movl	%ebx, (%rsi)
	cmovnel	%eax, %r11d
	movq	_GLAD_GL_VERSION_1_2@GOTPCREL(%rip), %rsi
	movl	%r11d, (%rsi)
	cmovnel	%eax, %r10d
	movq	_GLAD_GL_VERSION_1_3@GOTPCREL(%rip), %rsi
	movl	%r10d, (%rsi)
	cmovnel	%eax, %ecx
	movq	_GLAD_GL_VERSION_1_4@GOTPCREL(%rip), %rsi
	movl	%ecx, (%rsi)
	cmovnel	%eax, %edx
	movq	_GLAD_GL_VERSION_1_5@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	_GLAD_GL_VERSION_2_0@GOTPCREL(%rip), %rax
	movl	%r8d, (%rax)
	movq	_GLAD_GL_VERSION_2_1@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_GLAD_GL_VERSION_3_0@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movq	_GLAD_GL_VERSION_3_1@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movq	_GLAD_GL_VERSION_3_2@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_GLAD_GL_VERSION_3_3@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	%r9d, %edi
	movl	%r14d, %esi
	callq	_GLAD_MAKE_VERSION
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenGL ES-CM "

L_.str.1:                               ## @.str.1
	.asciz	"OpenGL ES-CL "

L_.str.2:                               ## @.str.2
	.asciz	"OpenGL ES "

	.comm	_GL_VERSION,4,2                 ## @GL_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"%d.%d"

	.comm	_GLAD_GL_VERSION_1_0,4,2        ## @GLAD_GL_VERSION_1_0
	.comm	_GLAD_GL_VERSION_1_1,4,2        ## @GLAD_GL_VERSION_1_1
	.comm	_GLAD_GL_VERSION_1_2,4,2        ## @GLAD_GL_VERSION_1_2
	.comm	_GLAD_GL_VERSION_1_3,4,2        ## @GLAD_GL_VERSION_1_3
	.comm	_GLAD_GL_VERSION_1_4,4,2        ## @GLAD_GL_VERSION_1_4
	.comm	_GLAD_GL_VERSION_1_5,4,2        ## @GLAD_GL_VERSION_1_5
	.comm	_GLAD_GL_VERSION_2_0,4,2        ## @GLAD_GL_VERSION_2_0
	.comm	_GLAD_GL_VERSION_2_1,4,2        ## @GLAD_GL_VERSION_2_1
	.comm	_GLAD_GL_VERSION_3_0,4,2        ## @GLAD_GL_VERSION_3_0
	.comm	_GLAD_GL_VERSION_3_1,4,2        ## @GLAD_GL_VERSION_3_1
	.comm	_GLAD_GL_VERSION_3_2,4,2        ## @GLAD_GL_VERSION_3_2
	.comm	_GLAD_GL_VERSION_3_3,4,2        ## @GLAD_GL_VERSION_3_3
	.no_dead_strip	_glad_gl_find_core_gl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glad_gl_find_core_gl
_glad_gl_find_core_gl:                  ; @glad_gl_find_core_gl
	.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	x8, _GL_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glGetString
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w20, #13
	mov	w2, #13
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w20, #13
	mov	x0, x19
	mov	w2, #13
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w20, #10
	mov	x0, x19
	mov	w2, #10
	bl	_strncmp
	cbnz	x0, LBB0_5
LBB0_4:
	add	x19, x19, x20
LBB0_5:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_GLAD_IMPL_UTIL_SSCANF
	ldp	w1, w0, [sp, #8]
	cmp	w0, #1
	cset	w8, eq
	cset	w9, gt
	cmp	w1, #0
	cset	w10, ge
	cset	w11, gt
	tst	w8, w10
	csinc	w12, w9, wzr, eq
Lloh11:
	adrp	x13, _GLAD_GL_VERSION_1_0@GOTPAGE
Lloh12:
	ldr	x13, [x13, _GLAD_GL_VERSION_1_0@GOTPAGEOFF]
Lloh13:
	str	w12, [x13]
	tst	w8, w11
Lloh14:
	adrp	x12, _GLAD_GL_VERSION_1_1@GOTPAGE
Lloh15:
	ldr	x12, [x12, _GLAD_GL_VERSION_1_1@GOTPAGEOFF]
	csinc	w13, w9, wzr, eq
Lloh16:
	str	w13, [x12]
	cmp	w1, #1
	cset	w12, gt
	tst	w8, w12
	csinc	w13, w9, wzr, eq
Lloh17:
	adrp	x14, _GLAD_GL_VERSION_1_2@GOTPAGE
Lloh18:
	ldr	x14, [x14, _GLAD_GL_VERSION_1_2@GOTPAGEOFF]
Lloh19:
	str	w13, [x14]
	cmp	w1, #2
	cset	w13, gt
	tst	w8, w13
	csinc	w14, w9, wzr, eq
Lloh20:
	adrp	x15, _GLAD_GL_VERSION_1_3@GOTPAGE
Lloh21:
	ldr	x15, [x15, _GLAD_GL_VERSION_1_3@GOTPAGEOFF]
Lloh22:
	str	w14, [x15]
	cmp	w1, #3
	cset	w14, gt
	tst	w8, w14
	csinc	w14, w9, wzr, eq
Lloh23:
	adrp	x15, _GLAD_GL_VERSION_1_4@GOTPAGE
Lloh24:
	ldr	x15, [x15, _GLAD_GL_VERSION_1_4@GOTPAGEOFF]
Lloh25:
	str	w14, [x15]
	cmp	w1, #4
	cset	w14, gt
	tst	w8, w14
	csinc	w8, w9, wzr, eq
Lloh26:
	adrp	x9, _GLAD_GL_VERSION_1_5@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GLAD_GL_VERSION_1_5@GOTPAGEOFF]
Lloh28:
	str	w8, [x9]
	cmp	w0, #2
	cset	w8, eq
	cset	w9, gt
	tst	w8, w10
Lloh29:
	adrp	x14, _GLAD_GL_VERSION_2_0@GOTPAGE
Lloh30:
	ldr	x14, [x14, _GLAD_GL_VERSION_2_0@GOTPAGEOFF]
	csinc	w15, w9, wzr, eq
Lloh31:
	str	w15, [x14]
	tst	w8, w11
	csinc	w8, w9, wzr, eq
Lloh32:
	adrp	x9, _GLAD_GL_VERSION_2_1@GOTPAGE
Lloh33:
	ldr	x9, [x9, _GLAD_GL_VERSION_2_1@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
	cmp	w0, #3
	cset	w8, eq
	cset	w9, gt
	tst	w8, w10
	csinc	w10, w9, wzr, eq
Lloh35:
	adrp	x14, _GLAD_GL_VERSION_3_0@GOTPAGE
Lloh36:
	ldr	x14, [x14, _GLAD_GL_VERSION_3_0@GOTPAGEOFF]
Lloh37:
	str	w10, [x14]
	tst	w8, w11
Lloh38:
	adrp	x10, _GLAD_GL_VERSION_3_1@GOTPAGE
Lloh39:
	ldr	x10, [x10, _GLAD_GL_VERSION_3_1@GOTPAGEOFF]
	csinc	w11, w9, wzr, eq
Lloh40:
	str	w11, [x10]
	tst	w8, w12
	csinc	w10, w9, wzr, eq
Lloh41:
	adrp	x11, _GLAD_GL_VERSION_3_2@GOTPAGE
Lloh42:
	ldr	x11, [x11, _GLAD_GL_VERSION_3_2@GOTPAGEOFF]
Lloh43:
	str	w10, [x11]
	tst	w8, w13
	csinc	w8, w9, wzr, eq
Lloh44:
	adrp	x9, _GLAD_GL_VERSION_3_3@GOTPAGE
Lloh45:
	ldr	x9, [x9, _GLAD_GL_VERSION_3_3@GOTPAGEOFF]
Lloh46:
	str	w8, [x9]
	bl	_GLAD_MAKE_VERSION
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenGL ES-CM "

l_.str.1:                               ; @.str.1
	.asciz	"OpenGL ES-CL "

l_.str.2:                               ; @.str.2
	.asciz	"OpenGL ES "

	.comm	_GL_VERSION,4,2                 ; @GL_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"%d.%d"

	.comm	_GLAD_GL_VERSION_1_0,4,2        ; @GLAD_GL_VERSION_1_0
	.comm	_GLAD_GL_VERSION_1_1,4,2        ; @GLAD_GL_VERSION_1_1
	.comm	_GLAD_GL_VERSION_1_2,4,2        ; @GLAD_GL_VERSION_1_2
	.comm	_GLAD_GL_VERSION_1_3,4,2        ; @GLAD_GL_VERSION_1_3
	.comm	_GLAD_GL_VERSION_1_4,4,2        ; @GLAD_GL_VERSION_1_4
	.comm	_GLAD_GL_VERSION_1_5,4,2        ; @GLAD_GL_VERSION_1_5
	.comm	_GLAD_GL_VERSION_2_0,4,2        ; @GLAD_GL_VERSION_2_0
	.comm	_GLAD_GL_VERSION_2_1,4,2        ; @GLAD_GL_VERSION_2_1
	.comm	_GLAD_GL_VERSION_3_0,4,2        ; @GLAD_GL_VERSION_3_0
	.comm	_GLAD_GL_VERSION_3_1,4,2        ; @GLAD_GL_VERSION_3_1
	.comm	_GLAD_GL_VERSION_3_2,4,2        ; @GLAD_GL_VERSION_3_2
	.comm	_GLAD_GL_VERSION_3_3,4,2        ; @GLAD_GL_VERSION_3_3
	.no_dead_strip	_glad_gl_find_core_gl
.subsections_via_symbols
