	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwCreateContext             ## -- Begin function _glfwCreateContext
	.p2align	4, 0x90
__glfwCreateContext:                    ## @_glfwCreateContext
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %r13
	jmp	LBB0_3
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	leaq	-276(%rbp), %rax
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_chooseFBConfigs
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	(%r15), %rax
	movq	_GLFW_OPENGL_ES_API@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.5:
	movq	_EGL_OPENGL_ES_API@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__glfw_eglBindAPI
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__glfw_eglGetError
	movl	%eax, %edi
	callq	_getErrorString
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_41
LBB0_7:
	movq	_GLFW_FORMAT_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	__glfwInputError
	jmp	LBB0_42
LBB0_8:
	movq	_EGL_OPENGL_API@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__glfw_eglBindAPI
	testl	%eax, %eax
	je	LBB0_18
LBB0_9:
	movq	__glfw@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%rbx)
	movq	(%r15), %rcx
	je	LBB0_15
## %bb.10:
	movq	%r13, -288(%rbp)                ## 8-byte Spill
	movq	_GLFW_OPENGL_API@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movl	$0, %r13d
	movl	$0, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_22
## %bb.11:
	xorl	%eax, %eax
	cmpq	$0, 40(%r15)
	je	LBB0_13
## %bb.12:
	movq	_EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movq	8(%r15), %rcx
	movq	_GLFW_OPENGL_CORE_PROFILE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_19
## %bb.14:
	movq	_EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_15:
	cmpq	(%r12), %rcx
	jne	LBB0_17
## %bb.16:
	movq	_EGL_CONTEXT_CLIENT_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	callq	_setEGLattrib
LBB0_17:
	movq	_EGL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	callq	_setEGLattrib
	jmp	LBB0_39
LBB0_18:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__glfw_eglGetError
	movl	%eax, %edi
	callq	_getErrorString
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_41
LBB0_19:
	movq	_GLFW_OPENGL_COMPAT_PROFILE@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	cmpq	(%rdx), %rcx
	jne	LBB0_22
## %bb.20:
	movq	_EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR@GOTPCREL(%rip), %rcx
LBB0_21:
	movl	(%rcx), %r13d
LBB0_22:
	cmpq	$0, 32(%r15)
	je	LBB0_24
## %bb.23:
	movq	_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_24:
	orl	%eax, %r12d
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.25:
	movq	_GLFW_NO_RESET_NOTIFICATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.26:
	movq	_EGL_NO_RESET_NOTIFICATION_KHR@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_27:
	movq	_GLFW_LOSE_CONTEXT_ON_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.28:
	movq	_EGL_LOSE_CONTEXT_ON_RESET_KHR@GOTPCREL(%rip), %rax
LBB0_29:
	movq	_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_setEGLattrib
LBB0_30:
	movq	_EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_31:
	movl	24(%r15), %esi
	cmpl	$1, %esi
	jne	LBB0_33
## %bb.32:
	cmpl	$0, 28(%r15)
	je	LBB0_34
LBB0_33:
	movq	_EGL_CONTEXT_MAJOR_VERSION_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setEGLattrib
	movq	_EGL_CONTEXT_MINOR_VERSION_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r15), %esi
	callq	_setEGLattrib
LBB0_34:
	testl	%r13d, %r13d
	je	LBB0_36
## %bb.35:
	movq	_EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_setEGLattrib
LBB0_36:
	testl	%r12d, %r12d
	je	LBB0_38
## %bb.37:
	movq	_EGL_CONTEXT_FLAGS_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_setEGLattrib
LBB0_38:
	movq	_EGL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	callq	_setEGLattrib
	movq	_GLFW_OPENGL_ES_API@GOTPCREL(%rip), %r12
	movq	__glfw@GOTPCREL(%rip), %rbx
	movq	-288(%rbp), %r13                ## 8-byte Reload
LBB0_39:
	movl	(%rbx), %edi
	movl	-276(%rbp), %esi
	leaq	-208(%rbp), %rcx
	movq	%r13, %rdx
	callq	__glfw_eglCreateContext
	movl	%eax, 8(%r14)
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_46
## %bb.40:
	movq	_GLFW_VERSION_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__glfw_eglGetError
	movl	%eax, %edi
	callq	_getErrorString
	leaq	L_.str.3(%rip), %rsi
LBB0_41:
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	__glfwInputError
LBB0_42:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
LBB0_43:
	movl	(%rax), %eax
LBB0_44:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_59
## %bb.45:
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	movl	-276(%rbp), %eax
	movl	%eax, 4(%r14)
	movq	l___const._glfwCreateContext.es1sonames+16(%rip), %rax
	movq	%rax, -224(%rbp)
	movaps	l___const._glfwCreateContext.es1sonames(%rip), %xmm0
	movaps	%xmm0, -240(%rbp)
	movaps	l___const._glfwCreateContext.es2sonames(%rip), %xmm0
	movaps	%xmm0, -256(%rbp)
	movaps	l___const._glfwCreateContext.glsonames(%rip), %xmm0
	movaps	%xmm0, -272(%rbp)
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_49
## %bb.47:
	cmpl	$1, 24(%r15)
	jne	LBB0_50
## %bb.48:
	leaq	-240(%rbp), %rbx
	jmp	LBB0_51
LBB0_49:
	leaq	-272(%rbp), %rbx
	jmp	LBB0_51
LBB0_50:
	leaq	-256(%rbp), %rbx
LBB0_51:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_55
## %bb.52:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	callq	__glfw_dlopen
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_56
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_53
	jmp	LBB0_57
LBB0_55:
	cmpl	$0, (%r14)
	je	LBB0_57
LBB0_56:
	xorl	%ecx, %ecx
                                        ## implicit-def: $eax
	testb	%cl, %cl
	jne	LBB0_44
	jmp	LBB0_58
LBB0_57:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	__glfwInputError
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movb	$1, %cl
	testb	%cl, %cl
	jne	LBB0_44
LBB0_58:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_59:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ## @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EGL: Failed to find a suitable EGLConfig"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GLFW_OPENGL_ES_API,8,3         ## @GLFW_OPENGL_ES_API
	.comm	_EGL_OPENGL_ES_API,4,2          ## @EGL_OPENGL_ES_API
	.comm	_GLFW_API_UNAVAILABLE,4,2       ## @GLFW_API_UNAVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"EGL: Failed to bind OpenGL ES: %s"

	.comm	_EGL_OPENGL_API,4,2             ## @EGL_OPENGL_API
L_.str.2:                               ## @.str.2
	.asciz	"EGL: Failed to bind OpenGL: %s"

	.comm	__glfw,24,3                     ## @_glfw
	.comm	_GLFW_OPENGL_API,8,3            ## @GLFW_OPENGL_API
	.comm	_EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR,4,2 ## @EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR
	.comm	_GLFW_OPENGL_CORE_PROFILE,8,3   ## @GLFW_OPENGL_CORE_PROFILE
	.comm	_EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR,4,2 ## @EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR
	.comm	_GLFW_OPENGL_COMPAT_PROFILE,8,3 ## @GLFW_OPENGL_COMPAT_PROFILE
	.comm	_EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR,4,2 ## @EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR
	.comm	_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR,4,2 ## @EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
	.comm	_GLFW_NO_RESET_NOTIFICATION,8,3 ## @GLFW_NO_RESET_NOTIFICATION
	.comm	_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR,4,2 ## @EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR
	.comm	_EGL_NO_RESET_NOTIFICATION_KHR,4,2 ## @EGL_NO_RESET_NOTIFICATION_KHR
	.comm	_GLFW_LOSE_CONTEXT_ON_RESET,8,3 ## @GLFW_LOSE_CONTEXT_ON_RESET
	.comm	_EGL_LOSE_CONTEXT_ON_RESET_KHR,4,2 ## @EGL_LOSE_CONTEXT_ON_RESET_KHR
	.comm	_EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR,4,2 ## @EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR
	.comm	_EGL_CONTEXT_MAJOR_VERSION_KHR,4,2 ## @EGL_CONTEXT_MAJOR_VERSION_KHR
	.comm	_EGL_CONTEXT_MINOR_VERSION_KHR,4,2 ## @EGL_CONTEXT_MINOR_VERSION_KHR
	.comm	_EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR,4,2 ## @EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR
	.comm	_EGL_CONTEXT_FLAGS_KHR,4,2      ## @EGL_CONTEXT_FLAGS_KHR
	.comm	_EGL_NONE,4,2                   ## @EGL_NONE
	.comm	_EGL_CONTEXT_CLIENT_VERSION,4,2 ## @EGL_CONTEXT_CLIENT_VERSION
	.comm	_EGL_NO_CONTEXT,4,2             ## @EGL_NO_CONTEXT
	.comm	_GLFW_VERSION_UNAVAILABLE,4,2   ## @GLFW_VERSION_UNAVAILABLE
L_.str.3:                               ## @.str.3
	.asciz	"EGL: Failed to create context: %s"

L_.str.4:                               ## @.str.4
	.asciz	"libGLESv1_CM.so.1"

L_.str.5:                               ## @.str.5
	.asciz	"libGLES_CM.so.1"

	.section	__DATA,__const
	.p2align	4                               ## @__const._glfwCreateContext.es1sonames
l___const._glfwCreateContext.es1sonames:
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"libGLESv2.so.2"

	.section	__DATA,__const
	.p2align	4                               ## @__const._glfwCreateContext.es2sonames
l___const._glfwCreateContext.es2sonames:
	.quad	L_.str.6
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str.7:                               ## @.str.7
	.asciz	"libGL.so.1"

	.section	__DATA,__const
	.p2align	4                               ## @__const._glfwCreateContext.glsonames
l___const._glfwCreateContext.glsonames:
	.quad	L_.str.7
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str.8:                               ## @.str.8
	.asciz	"EGL: Failed to load client library"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_EGL_ALPHA_SIZE,4,2             ## @EGL_ALPHA_SIZE
	.comm	_EGL_BLUE_SIZE,4,2              ## @EGL_BLUE_SIZE
	.comm	_EGL_GREEN_SIZE,4,2             ## @EGL_GREEN_SIZE
	.comm	_EGL_NATIVE_VISUAL_ID,4,2       ## @EGL_NATIVE_VISUAL_ID
	.comm	_EGL_RED_SIZE,4,2               ## @EGL_RED_SIZE
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.comm	_VisualDepthMask,4,2            ## @VisualDepthMask
	.comm	_VisualIDMask,4,2               ## @VisualIDMask
	.comm	_VisualScreenMask,4,2           ## @VisualScreenMask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwCreateContext             ; -- Begin function _glfwCreateContext
	.p2align	2
__glfwCreateContext:                    ; @_glfwCreateContext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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 w25, -72
	.cfi_offset w26, -80
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-72]
	ldr	x9, [x1, #48]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x21, [x9]
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x8
	bl	_chooseFBConfigs
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x20]
Lloh3:
	adrp	x24, _GLFW_OPENGL_ES_API@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GLFW_OPENGL_ES_API@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _EGL_OPENGL_ES_API@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EGL_OPENGL_ES_API@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	__glfw_eglBindAPI
	cbnz	w0, LBB0_9
; %bb.6:
Lloh8:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	bl	__glfw_eglGetError
	bl	_getErrorString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_35
LBB0_7:
Lloh13:
	adrp	x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_36
LBB0_8:
Lloh18:
	adrp	x8, _EGL_OPENGL_API@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EGL_OPENGL_API@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	__glfw_eglBindAPI
	cbz	w0, LBB0_16
LBB0_9:
Lloh21:
	adrp	x25, __glfw@GOTPAGE
Lloh22:
	ldr	x25, [x25, __glfw@GOTPAGEOFF]
	ldr	x9, [x25, #8]
	ldr	x8, [x20]
	cbz	x9, LBB0_13
; %bb.10:
Lloh23:
	adrp	x9, _GLFW_OPENGL_API@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GLFW_OPENGL_API@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.11:
	ldr	x8, [x20, #40]
Lloh26:
	adrp	x9, _EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	ldr	x9, [x20, #8]
Lloh29:
	adrp	x10, _GLFW_OPENGL_CORE_PROFILE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _GLFW_OPENGL_CORE_PROFILE@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.12:
Lloh32:
	adrp	x9, _EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x9]
	b	LBB0_18
LBB0_13:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.14:
Lloh35:
	adrp	x8, _EGL_CONTEXT_CLIENT_VERSION@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EGL_CONTEXT_CLIENT_VERSION@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w1, [x20, #24]
	b	LBB0_32
LBB0_15:
	mov	w22, #0
	mov	w8, #0
	b	LBB0_18
LBB0_16:
Lloh38:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh40:
	ldr	w19, [x8]
	bl	__glfw_eglGetError
	bl	_getErrorString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_35
LBB0_17:
Lloh43:
	adrp	x10, _GLFW_OPENGL_COMPAT_PROFILE@GOTPAGE
Lloh44:
	ldr	x10, [x10, _GLFW_OPENGL_COMPAT_PROFILE@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x10]
Lloh46:
	adrp	x11, _EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR@GOTPAGE
Lloh47:
	ldr	x11, [x11, _EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR@GOTPAGEOFF]
Lloh48:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w22, w11, wzr, eq
LBB0_18:
Lloh49:
	adrp	x9, _EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR@GOTPAGE
Lloh50:
	ldr	x9, [x9, _EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR@GOTPAGEOFF]
	ldr	x10, [x20, #32]
Lloh51:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w23, w9, w8
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_25
; %bb.19:
Lloh52:
	adrp	x9, _GLFW_NO_RESET_NOTIFICATION@GOTPAGE
Lloh53:
	ldr	x9, [x9, _GLFW_NO_RESET_NOTIFICATION@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
Lloh55:
	adrp	x8, _EGL_NO_RESET_NOTIFICATION_KHR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EGL_NO_RESET_NOTIFICATION_KHR@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
Lloh57:
	adrp	x9, _GLFW_LOSE_CONTEXT_ON_RESET@GOTPAGE
Lloh58:
	ldr	x9, [x9, _GLFW_LOSE_CONTEXT_ON_RESET@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:
Lloh60:
	adrp	x8, _EGL_LOSE_CONTEXT_ON_RESET_KHR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _EGL_LOSE_CONTEXT_ON_RESET_KHR@GOTPAGEOFF]
LBB0_23:
Lloh62:
	adrp	x9, _EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR@GOTPAGE
Lloh63:
	ldr	x9, [x9, _EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_setEGLattrib
LBB0_24:
Lloh65:
	adrp	x8, _EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_25:
	ldr	w1, [x20, #24]
	cmp	w1, #1
	b.ne	LBB0_27
; %bb.26:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_28
LBB0_27:
Lloh68:
	adrp	x8, _EGL_CONTEXT_MAJOR_VERSION_KHR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EGL_CONTEXT_MAJOR_VERSION_KHR@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	bl	_setEGLattrib
Lloh71:
	adrp	x8, _EGL_CONTEXT_MINOR_VERSION_KHR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _EGL_CONTEXT_MINOR_VERSION_KHR@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	ldr	w1, [x20, #28]
	bl	_setEGLattrib
LBB0_28:
	cbz	w22, LBB0_30
; %bb.29:
Lloh74:
	adrp	x8, _EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR@GOTPAGE
Lloh75:
	ldr	x8, [x8, _EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_setEGLattrib
LBB0_30:
	cbz	w23, LBB0_33
; %bb.31:
Lloh77:
	adrp	x8, _EGL_CONTEXT_FLAGS_KHR@GOTPAGE
Lloh78:
	ldr	x8, [x8, _EGL_CONTEXT_FLAGS_KHR@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	mov	x1, x23
LBB0_32:
	bl	_setEGLattrib
LBB0_33:
Lloh80:
	adrp	x8, _EGL_NONE@GOTPAGE
Lloh81:
	ldr	x8, [x8, _EGL_NONE@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	mov	x1, x0
	bl	_setEGLattrib
	ldr	w0, [x25]
	ldr	w1, [sp, #12]
	add	x3, sp, #72
	mov	x2, x21
	bl	__glfw_eglCreateContext
	str	w0, [x19, #8]
Lloh83:
	adrp	x8, _EGL_NO_CONTEXT@GOTPAGE
Lloh84:
	ldr	x8, [x8, _EGL_NO_CONTEXT@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_39
; %bb.34:
Lloh86:
	adrp	x8, _GLFW_VERSION_UNAVAILABLE@GOTPAGE
Lloh87:
	ldr	x8, [x8, _GLFW_VERSION_UNAVAILABLE@GOTPAGEOFF]
Lloh88:
	ldr	w19, [x8]
	bl	__glfw_eglGetError
	bl	_getErrorString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh89:
	adrp	x1, l_.str.3@PAGE
Lloh90:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_35:
	mov	x0, x19
LBB0_36:
	bl	__glfwInputError
Lloh91:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh92:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
LBB0_37:
	ldur	x8, [x29, #-72]
Lloh94:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh95:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh96:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.38:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_39:
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
Lloh97:
	adrp	x8, l___const._glfwCreateContext.es1sonames@PAGE
Lloh98:
	add	x8, x8, l___const._glfwCreateContext.es1sonames@PAGEOFF
	ldr	q1, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #64]
Lloh99:
	adrp	x8, l___const._glfwCreateContext.es2sonames@PAGE
Lloh100:
	add	x8, x8, l___const._glfwCreateContext.es2sonames@PAGEOFF
Lloh101:
	ldr	q0, [x8]
	adrp	x8, l___const._glfwCreateContext.glsonames@PAGE
	add	x8, x8, l___const._glfwCreateContext.glsonames@PAGEOFF
	stp	q0, q1, [sp, #32]
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.40:
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.ne	LBB0_46
; %bb.41:
	add	x8, sp, #48
	ldr	x0, [x8]
	cbnz	x0, LBB0_43
	b	LBB0_47
LBB0_42:
	add	x8, sp, #16
	ldr	x0, [x8]
	cbz	x0, LBB0_47
LBB0_43:
	add	x20, x8, #8
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	bl	__glfw_dlopen
	str	w0, [x19]
	cbnz	w0, LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x0, [x20], #8
	cbnz	x0, LBB0_44
	b	LBB0_49
LBB0_46:
	add	x8, sp, #32
	ldr	x0, [x8]
	cbnz	x0, LBB0_43
LBB0_47:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
LBB0_48:
	mov	w8, #0
                                        ; implicit-def: $w9
	b	LBB0_50
LBB0_49:
Lloh102:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh103:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh104:
	ldr	w0, [x8]
Lloh105:
	adrp	x1, l_.str.8@PAGE
Lloh106:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	__glfwInputError
Lloh107:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh108:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh109:
	ldr	w9, [x8]
	mov	w8, #1
LBB0_50:
Lloh110:
	adrp	x10, _GL_TRUE@GOTPAGE
Lloh111:
	ldr	x10, [x10, _GL_TRUE@GOTPAGEOFF]
Lloh112:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w0, w9, w10, ne
	b	LBB0_37
LBB0_51:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAddLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ; @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EGL: Failed to find a suitable EGLConfig"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GLFW_OPENGL_ES_API,8,3         ; @GLFW_OPENGL_ES_API
	.comm	_EGL_OPENGL_ES_API,4,2          ; @EGL_OPENGL_ES_API
	.comm	_GLFW_API_UNAVAILABLE,4,2       ; @GLFW_API_UNAVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"EGL: Failed to bind OpenGL ES: %s"

	.comm	_EGL_OPENGL_API,4,2             ; @EGL_OPENGL_API
l_.str.2:                               ; @.str.2
	.asciz	"EGL: Failed to bind OpenGL: %s"

	.comm	__glfw,24,3                     ; @_glfw
	.comm	_GLFW_OPENGL_API,8,3            ; @GLFW_OPENGL_API
	.comm	_EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR,4,2 ; @EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR
	.comm	_GLFW_OPENGL_CORE_PROFILE,8,3   ; @GLFW_OPENGL_CORE_PROFILE
	.comm	_EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR,4,2 ; @EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR
	.comm	_GLFW_OPENGL_COMPAT_PROFILE,8,3 ; @GLFW_OPENGL_COMPAT_PROFILE
	.comm	_EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR,4,2 ; @EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR
	.comm	_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR,4,2 ; @EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
	.comm	_GLFW_NO_RESET_NOTIFICATION,8,3 ; @GLFW_NO_RESET_NOTIFICATION
	.comm	_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR,4,2 ; @EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR
	.comm	_EGL_NO_RESET_NOTIFICATION_KHR,4,2 ; @EGL_NO_RESET_NOTIFICATION_KHR
	.comm	_GLFW_LOSE_CONTEXT_ON_RESET,8,3 ; @GLFW_LOSE_CONTEXT_ON_RESET
	.comm	_EGL_LOSE_CONTEXT_ON_RESET_KHR,4,2 ; @EGL_LOSE_CONTEXT_ON_RESET_KHR
	.comm	_EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR,4,2 ; @EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR
	.comm	_EGL_CONTEXT_MAJOR_VERSION_KHR,4,2 ; @EGL_CONTEXT_MAJOR_VERSION_KHR
	.comm	_EGL_CONTEXT_MINOR_VERSION_KHR,4,2 ; @EGL_CONTEXT_MINOR_VERSION_KHR
	.comm	_EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR,4,2 ; @EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR
	.comm	_EGL_CONTEXT_FLAGS_KHR,4,2      ; @EGL_CONTEXT_FLAGS_KHR
	.comm	_EGL_NONE,4,2                   ; @EGL_NONE
	.comm	_EGL_CONTEXT_CLIENT_VERSION,4,2 ; @EGL_CONTEXT_CLIENT_VERSION
	.comm	_EGL_NO_CONTEXT,4,2             ; @EGL_NO_CONTEXT
	.comm	_GLFW_VERSION_UNAVAILABLE,4,2   ; @GLFW_VERSION_UNAVAILABLE
l_.str.3:                               ; @.str.3
	.asciz	"EGL: Failed to create context: %s"

l_.str.4:                               ; @.str.4
	.asciz	"libGLESv1_CM.so.1"

l_.str.5:                               ; @.str.5
	.asciz	"libGLES_CM.so.1"

	.section	__DATA,__const
	.p2align	3                               ; @__const._glfwCreateContext.es1sonames
l___const._glfwCreateContext.es1sonames:
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"libGLESv2.so.2"

	.section	__DATA,__const
	.p2align	3                               ; @__const._glfwCreateContext.es2sonames
l___const._glfwCreateContext.es2sonames:
	.quad	l_.str.6
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str.7:                               ; @.str.7
	.asciz	"libGL.so.1"

	.section	__DATA,__const
	.p2align	3                               ; @__const._glfwCreateContext.glsonames
l___const._glfwCreateContext.glsonames:
	.quad	l_.str.7
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str.8:                               ; @.str.8
	.asciz	"EGL: Failed to load client library"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_EGL_ALPHA_SIZE,4,2             ; @EGL_ALPHA_SIZE
	.comm	_EGL_BLUE_SIZE,4,2              ; @EGL_BLUE_SIZE
	.comm	_EGL_GREEN_SIZE,4,2             ; @EGL_GREEN_SIZE
	.comm	_EGL_NATIVE_VISUAL_ID,4,2       ; @EGL_NATIVE_VISUAL_ID
	.comm	_EGL_RED_SIZE,4,2               ; @EGL_RED_SIZE
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.comm	_VisualDepthMask,4,2            ; @VisualDepthMask
	.comm	_VisualIDMask,4,2               ; @VisualIDMask
	.comm	_VisualScreenMask,4,2           ; @VisualScreenMask
.subsections_via_symbols
