	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformMakeContextCurrent ## -- Begin function _glfwPlatformMakeContextCurrent
	.p2align	4, 0x90
__glfwPlatformMakeContextCurrent:       ## @_glfwPlatformMakeContextCurrent
	.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
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rdx
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rdx
	jne	LBB0_4
## %bb.2:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	movq	__GLFW_EGL_NATIVE_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	__glfw_eglCreateWindowSurface
	movq	%rax, %rdx
	movq	%rax, (%rbx)
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.3:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	__glfw_eglGetError
	movl	%eax, %edi
	callq	_getErrorString
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	__glfwInputError
	movq	(%rbx), %rdx
LBB0_4:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %ecx
	jmp	LBB0_6
LBB0_5:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	movq	%rdx, %rsi
	callq	__glfw_eglMakeCurrent
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__glfwSetContextTLS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_NO_SURFACE,8,3             ## @EGL_NO_SURFACE
	.comm	__glfw,4,2                      ## @_glfw
	.comm	__GLFW_EGL_NATIVE_WINDOW,8,3    ## @_GLFW_EGL_NATIVE_WINDOW
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EGL: Failed to create window surface: %s"

	.comm	_EGL_NO_CONTEXT,4,2             ## @EGL_NO_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformMakeContextCurrent ; -- Begin function _glfwPlatformMakeContextCurrent
	.p2align	2
__glfwPlatformMakeContextCurrent:       ; @_glfwPlatformMakeContextCurrent
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x1, [x19]
Lloh0:
	adrp	x20, _EGL_NO_SURFACE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EGL_NO_SURFACE@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, __glfw@GOTPAGE
Lloh3:
	ldr	x21, [x21, __glfw@GOTPAGEOFF]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x21]
	ldr	w1, [x19, #12]
Lloh4:
	adrp	x8, __GLFW_EGL_NATIVE_WINDOW@GOTPAGE
Lloh5:
	ldr	x8, [x8, __GLFW_EGL_NATIVE_WINDOW@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x3, #0
	bl	__glfw_eglCreateWindowSurface
	mov	x1, x0
	str	x0, [x19]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	bl	__glfw_eglGetError
	bl	_getErrorString
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	__glfwInputError
	ldr	x1, [x19]
LBB0_4:
	ldr	w0, [x21]
	ldr	w3, [x19, #8]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, __glfw@GOTPAGE
Lloh13:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	adrp	x8, _EGL_NO_CONTEXT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EGL_NO_CONTEXT@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
LBB0_6:
	mov	x2, x1
	bl	__glfw_eglMakeCurrent
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__glfwSetContextTLS
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_NO_SURFACE,8,3             ; @EGL_NO_SURFACE
	.comm	__glfw,4,2                      ; @_glfw
	.comm	__GLFW_EGL_NATIVE_WINDOW,8,3    ; @_GLFW_EGL_NATIVE_WINDOW
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EGL: Failed to create window surface: %s"

	.comm	_EGL_NO_CONTEXT,4,2             ; @EGL_NO_CONTEXT
.subsections_via_symbols
