	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makeContextCurrentEGL
_makeContextCurrentEGL:                 ## @makeContextCurrentEGL
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	4(%rax), %edi
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	%edx, %esi
	callq	_eglMakeCurrent
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_eglGetError
	movl	%eax, %edi
	callq	_getEGLErrorString
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	callq	_eglMakeCurrent
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	__glfw@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__glfwPlatformSetTls            ## TAILCALL
LBB0_5:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_eglGetError
	movl	%eax, %edi
	callq	_getEGLErrorString
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movl	%ebx, %edi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,8,2                      ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EGL: Failed to make context current: %s"

	.comm	_EGL_NO_SURFACE,4,2             ## @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ## @EGL_NO_CONTEXT
L_.str.1:                               ## @.str.1
	.asciz	"EGL: Failed to clear current context: %s"

	.no_dead_strip	_makeContextCurrentEGL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makeContextCurrentEGL
_makeContextCurrentEGL:                 ; @makeContextCurrentEGL
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, __glfw@GOTPAGE
Lloh1:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8, #4]
	cbz	x19, LBB0_3
; %bb.1:
	ldp	w3, w1, [x19]
	mov	x2, x1
	bl	_eglMakeCurrent
	cbnz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_eglGetError
	bl	_getEGLErrorString
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _EGL_NO_CONTEXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EGL_NO_CONTEXT@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x2, x1
	bl	_eglMakeCurrent
	cbz	w0, LBB0_5
LBB0_4:
Lloh14:
	adrp	x0, __glfw@GOTPAGE
Lloh15:
	ldr	x0, [x0, __glfw@GOTPAGEOFF]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwPlatformSetTls
LBB0_5:
Lloh16:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	bl	_eglGetError
	bl	_getEGLErrorString
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwInputError
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,8,2                      ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EGL: Failed to make context current: %s"

	.comm	_EGL_NO_SURFACE,4,2             ; @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ; @EGL_NO_CONTEXT
l_.str.1:                               ; @.str.1
	.asciz	"EGL: Failed to clear current context: %s"

	.no_dead_strip	_makeContextCurrentEGL
.subsections_via_symbols
