	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitOSMesa                ## -- Begin function _glfwInitOSMesa
	.p2align	4, 0x90
__glfwInitOSMesa:                       ## @_glfwInitOSMesa
	.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	__glfw@GOTPCREL(%rip), %rbx
	movq	_GLFW_TRUE@GOTPCREL(%rip), %r14
	cmpq	$0, 48(%rbx)
	jne	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__glfw_dlopen
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	__glfw_dlsym
	movq	%rax, 40(%rbx)
	movq	48(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 56(%rbx)
	movq	48(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 32(%rbx)
	movq	48(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 24(%rbx)
	movq	48(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 16(%rbx)
	movq	48(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, 8(%rbx)
	movq	48(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	__glfw_dlsym
	movq	%rax, (%rbx)
	cmpq	$0, 40(%rbx)
	je	LBB0_9
## %bb.4:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.5:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.6:
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	__glfwInputError
	xorl	%eax, %eax
	callq	__glfwTerminateOSMesa
	jmp	LBB0_10
LBB0_2:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	__glfwInputError
LBB0_10:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r14
LBB0_11:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libOSMesa.8.dylib"

	.comm	__glfw,64,3                     ## @_glfw
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.comm	_GLFW_API_UNAVAILABLE,4,2       ## @GLFW_API_UNAVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"OSMesa: Library not found"

	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
L_.str.2:                               ## @.str.2
	.asciz	"OSMesaCreateContextExt"

L_.str.3:                               ## @.str.3
	.asciz	"OSMesaCreateContextAttribs"

L_.str.4:                               ## @.str.4
	.asciz	"OSMesaDestroyContext"

L_.str.5:                               ## @.str.5
	.asciz	"OSMesaMakeCurrent"

L_.str.6:                               ## @.str.6
	.asciz	"OSMesaGetColorBuffer"

L_.str.7:                               ## @.str.7
	.asciz	"OSMesaGetDepthBuffer"

L_.str.8:                               ## @.str.8
	.asciz	"OSMesaGetProcAddress"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
L_.str.9:                               ## @.str.9
	.asciz	"OSMesa: Failed to load required entry points"

	.comm	__GLFW_OSMESA_LIBRARY,8,3       ## @_GLFW_OSMESA_LIBRARY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitOSMesa                ; -- Begin function _glfwInitOSMesa
	.p2align	2
__glfwInitOSMesa:                       ; @_glfwInitOSMesa
	.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
Lloh0:
	adrp	x19, __glfw@GOTPAGE
Lloh1:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	__glfw_dlopen
	str	x0, [x19, #48]
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #40]
	ldr	x0, [x19, #48]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #56]
	ldr	x0, [x19, #48]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #32]
	ldr	x0, [x19, #48]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #24]
	ldr	x0, [x19, #48]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #16]
	ldr	x0, [x19, #48]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19, #8]
	ldr	x0, [x19, #48]
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	__glfw_dlsym
	str	x0, [x19]
	ldp	q1, q0, [x19, #16]
	cmeq.2d	v0, v0, #0
	cmeq.2d	v1, v1, #0
	uzp1.4s	v0, v1, v0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v0[2]
	and	w9, w9, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v0[3]
	bfi	w8, w9, #3, #29
	and	w8, w8, #0xf
	ldr	x9, [x19, #8]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_1
; %bb.4:
Lloh20:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	__glfwInputError
	bl	__glfwTerminateOSMesa
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	__glfwInputError
LBB0_6:
Lloh30:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libOSMesa.8.dylib"

	.comm	__glfw,64,3                     ; @_glfw
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.comm	_GLFW_API_UNAVAILABLE,4,2       ; @GLFW_API_UNAVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"OSMesa: Library not found"

	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
l_.str.2:                               ; @.str.2
	.asciz	"OSMesaCreateContextExt"

l_.str.3:                               ; @.str.3
	.asciz	"OSMesaCreateContextAttribs"

l_.str.4:                               ; @.str.4
	.asciz	"OSMesaDestroyContext"

l_.str.5:                               ; @.str.5
	.asciz	"OSMesaMakeCurrent"

l_.str.6:                               ; @.str.6
	.asciz	"OSMesaGetColorBuffer"

l_.str.7:                               ; @.str.7
	.asciz	"OSMesaGetDepthBuffer"

l_.str.8:                               ; @.str.8
	.asciz	"OSMesaGetProcAddress"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
l_.str.9:                               ; @.str.9
	.asciz	"OSMesa: Failed to load required entry points"

	.comm	__GLFW_OSMESA_LIBRARY,8,3       ; @_GLFW_OSMESA_LIBRARY
.subsections_via_symbols
