	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makeContextCurrentGLX
_makeContextCurrentGLX:                 ## @makeContextCurrentGLX
	.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	8(%rbx), %esi
	movq	(%rbx), %rdx
	callq	_glXMakeCurrent
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	_None@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_glXMakeCurrent
	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), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	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	"GLX: Failed to make context current"

	.comm	_None,4,2                       ## @None
L_.str.1:                               ## @.str.1
	.asciz	"GLX: Failed to clear current context"

	.no_dead_strip	_makeContextCurrentGLX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makeContextCurrentGLX
_makeContextCurrentGLX:                 ; @makeContextCurrentGLX
	.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:
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	bl	_glXMakeCurrent
	cbnz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _None@GOTPAGE
Lloh9:
	ldr	x8, [x8, _None@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_glXMakeCurrent
	cbz	w0, LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, __glfw@GOTPAGE
Lloh12:
	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:
Lloh13:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	"GLX: Failed to make context current"

	.comm	_None,4,2                       ; @None
l_.str.1:                               ; @.str.1
	.asciz	"GLX: Failed to clear current context"

	.no_dead_strip	_makeContextCurrentGLX
.subsections_via_symbols
