	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitContextAPI            ## -- Begin function _glfwInitContextAPI
	.p2align	4, 0x90
__glfwInitContextAPI:                   ## @_glfwInitContextAPI
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	__glfwCreateContextTLS
	movq	_GL_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__glfw_dlopen
	movq	__glfw@GOTPCREL(%rip), %rbx
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	__glfw_dlsym
	movq	%rax, 152(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 144(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 136(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 128(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 120(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 112(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 104(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 96(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 88(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 80(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 72(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 64(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 56(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 48(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.16(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 40(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.17(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 32(%rbx)
	movq	__GLFW_EGL_NATIVE_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__glfw_eglGetDisplay
	movq	%rax, (%rbx)
	movq	_EGL_NO_DISPLAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__glfw_eglGetError
	movl	%eax, %edi
	callq	_getErrorString
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	__glfwInputError
	jmp	LBB0_9
LBB0_6:
	leaq	16(%rbx), %rsi
	leaq	12(%rbx), %rdx
	movq	%rax, %rdi
	callq	__glfw_eglInitialize
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.20(%rip), %rdi
	callq	__glfwPlatformExtensionSupported
	movl	%eax, 8(%rbx)
	movq	_GL_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_9
LBB0_7:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__glfw_eglGetError
	movl	%eax, %edi
	callq	_getErrorString
	leaq	L_.str.19(%rip), %rsi
LBB0_5:
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	__glfwInputError
LBB0_9:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libEGL.so.1"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	__glfw,160,3                    ## @_glfw
	.comm	_GLFW_API_UNAVAILABLE,4,2       ## @GLFW_API_UNAVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"EGL: Failed to load EGL"

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

L_.str.3:                               ## @.str.3
	.asciz	"eglGetConfigs"

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

L_.str.5:                               ## @.str.5
	.asciz	"eglGetError"

L_.str.6:                               ## @.str.6
	.asciz	"eglInitialize"

L_.str.7:                               ## @.str.7
	.asciz	"eglTerminate"

L_.str.8:                               ## @.str.8
	.asciz	"eglBindAPI"

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

L_.str.10:                              ## @.str.10
	.asciz	"eglDestroySurface"

L_.str.11:                              ## @.str.11
	.asciz	"eglDestroyContext"

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

L_.str.13:                              ## @.str.13
	.asciz	"eglMakeCurrent"

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

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

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

L_.str.17:                              ## @.str.17
	.asciz	"eglGetProcAddress"

	.comm	__GLFW_EGL_NATIVE_DISPLAY,8,3   ## @_GLFW_EGL_NATIVE_DISPLAY
	.comm	_EGL_NO_DISPLAY,8,3             ## @EGL_NO_DISPLAY
L_.str.18:                              ## @.str.18
	.asciz	"EGL: Failed to get EGL display: %s"

L_.str.19:                              ## @.str.19
	.asciz	"EGL: Failed to initialize EGL: %s"

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

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitContextAPI            ; -- Begin function _glfwInitContextAPI
	.p2align	2
__glfwInitContextAPI:                   ; @_glfwInitContextAPI
	.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
	bl	__glfwCreateContextTLS
	cbz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__glfw_dlopen
Lloh2:
	adrp	x19, __glfw@GOTPAGE
Lloh3:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	str	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #152]
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #144]
	ldr	x0, [x19, #24]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #136]
	ldr	x0, [x19, #24]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #128]
	ldr	x0, [x19, #24]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #120]
	ldr	x0, [x19, #24]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #112]
	ldr	x0, [x19, #24]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #104]
	ldr	x0, [x19, #24]
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #96]
	ldr	x0, [x19, #24]
Lloh20:
	adrp	x1, l_.str.10@PAGE
Lloh21:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #88]
	ldr	x0, [x19, #24]
Lloh22:
	adrp	x1, l_.str.11@PAGE
Lloh23:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #80]
	ldr	x0, [x19, #24]
Lloh24:
	adrp	x1, l_.str.12@PAGE
Lloh25:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #72]
	ldr	x0, [x19, #24]
Lloh26:
	adrp	x1, l_.str.13@PAGE
Lloh27:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #64]
	ldr	x0, [x19, #24]
Lloh28:
	adrp	x1, l_.str.14@PAGE
Lloh29:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #56]
	ldr	x0, [x19, #24]
Lloh30:
	adrp	x1, l_.str.15@PAGE
Lloh31:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #48]
	ldr	x0, [x19, #24]
Lloh32:
	adrp	x1, l_.str.16@PAGE
Lloh33:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #40]
	ldr	x0, [x19, #24]
Lloh34:
	adrp	x1, l_.str.17@PAGE
Lloh35:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #32]
Lloh36:
	adrp	x8, __GLFW_EGL_NATIVE_DISPLAY@GOTPAGE
Lloh37:
	ldr	x8, [x8, __GLFW_EGL_NATIVE_DISPLAY@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	__glfw_eglGetDisplay
	str	x0, [x19]
Lloh39:
	adrp	x8, _EGL_NO_DISPLAY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EGL_NO_DISPLAY@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
Lloh42:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh44:
	ldr	w19, [x8]
	bl	__glfw_eglGetError
	bl	_getErrorString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh45:
	adrp	x1, l_.str.18@PAGE
Lloh46:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh47:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	add	x1, x19, #16
	add	x2, x19, #12
	bl	__glfw_eglInitialize
	cbz	w0, LBB0_7
; %bb.6:
Lloh52:
	adrp	x0, l_.str.20@PAGE
Lloh53:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	__glfwPlatformExtensionSupported
	str	w0, [x19, #8]
Lloh54:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh56:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh58:
	ldr	w19, [x8]
	bl	__glfw_eglGetError
	bl	_getErrorString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh59:
	adrp	x1, l_.str.19@PAGE
Lloh60:
	add	x1, x1, l_.str.19@PAGEOFF
LBB0_8:
	mov	x0, x19
LBB0_9:
	bl	__glfwInputError
LBB0_10:
Lloh61:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libEGL.so.1"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	__glfw,160,3                    ; @_glfw
	.comm	_GLFW_API_UNAVAILABLE,4,2       ; @GLFW_API_UNAVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"EGL: Failed to load EGL"

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

l_.str.3:                               ; @.str.3
	.asciz	"eglGetConfigs"

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

l_.str.5:                               ; @.str.5
	.asciz	"eglGetError"

l_.str.6:                               ; @.str.6
	.asciz	"eglInitialize"

l_.str.7:                               ; @.str.7
	.asciz	"eglTerminate"

l_.str.8:                               ; @.str.8
	.asciz	"eglBindAPI"

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

l_.str.10:                              ; @.str.10
	.asciz	"eglDestroySurface"

l_.str.11:                              ; @.str.11
	.asciz	"eglDestroyContext"

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

l_.str.13:                              ; @.str.13
	.asciz	"eglMakeCurrent"

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

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

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

l_.str.17:                              ; @.str.17
	.asciz	"eglGetProcAddress"

	.comm	__GLFW_EGL_NATIVE_DISPLAY,8,3   ; @_GLFW_EGL_NATIVE_DISPLAY
	.comm	_EGL_NO_DISPLAY,8,3             ; @EGL_NO_DISPLAY
l_.str.18:                              ; @.str.18
	.asciz	"EGL: Failed to get EGL display: %s"

l_.str.19:                              ; @.str.19
	.asciz	"EGL: Failed to initialize EGL: %s"

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

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
.subsections_via_symbols
