	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwChooseVisualGLX           ## -- Begin function _glfwChooseVisualGLX
	.p2align	4, 0x90
__glfwChooseVisualGLX:                  ## @_glfwChooseVisualGLX
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %rdi
	leaq	-20(%rbp), %rsi
	callq	_chooseGLXFBConfig
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-20(%rbp), %esi
	callq	_glXGetVisualFromFBConfig
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	8(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	%rax, %rdi
	callq	_XFree
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_GLFW_FORMAT_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	__glfwInputError
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ## @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GLX: Failed to find a suitable GLXFBConfig"

	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	__glfw,4,2                      ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"GLX: Failed to retrieve Visual for GLXFBConfig"

	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwChooseVisualGLX           ; -- Begin function _glfwChooseVisualGLX
	.p2align	2
__glfwChooseVisualGLX:                  ; @_glfwChooseVisualGLX
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x0, x2
	add	x1, sp, #12
	bl	_chooseGLXFBConfig
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, __glfw@GOTPAGE
Lloh1:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_glXGetVisualFromFBConfig
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
	str	x8, [x20]
	ldr	w8, [x0]
	str	w8, [x19]
	bl	_XFree
Lloh3:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	__glfwInputError
Lloh15:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ; @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GLX: Failed to find a suitable GLXFBConfig"

	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	__glfw,4,2                      ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"GLX: Failed to retrieve Visual for GLXFBConfig"

	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
.subsections_via_symbols
