	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitContextAPI            ## -- Begin function _glfwInitContextAPI
	.p2align	4, 0x90
__glfwInitContextAPI:                   ## @_glfwInitContextAPI
	.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
	xorl	%eax, %eax
	callq	__glfwCreateContextTLS
	movq	_GL_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	l_.str(%rip), %rdi
	callq	_LoadLibraryW
	movq	__glfw@GOTPCREL(%rip), %rbx
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_GetProcAddress
	movq	%rax, 32(%rbx)
	movl	40(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_GetProcAddress
	movq	%rax, 24(%rbx)
	movl	40(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_GetProcAddress
	movq	%rax, 16(%rbx)
	movl	40(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_GetProcAddress
	movq	%rax, 8(%rbx)
	movl	40(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_GetProcAddress
	movq	%rax, (%rbx)
	cmpq	$0, 32(%rbx)
	leaq	L_.str.7(%rip), %rsi
	je	LBB0_3
## %bb.5:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.6:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.8:
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	_GL_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__glfwInputError
LBB0_10:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	111                             ## 0x6f
	.long	112                             ## 0x70
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	103                             ## 0x67
	.long	108                             ## 0x6c
	.long	51                              ## 0x33
	.long	50                              ## 0x32
	.long	46                              ## 0x2e
	.long	100                             ## 0x64
	.long	108                             ## 0x6c
	.long	108                             ## 0x6c
	.long	0                               ## 0x0

	.comm	__glfw,48,3                     ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"WGL: Failed to load opengl32.dll"

L_.str.2:                               ## @.str.2
	.asciz	"wglCreateContext"

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

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

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

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

L_.str.7:                               ## @.str.7
	.asciz	"WGL: Failed to load opengl32 functions"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitContextAPI            ; -- Begin function _glfwInitContextAPI
	.p2align	2
__glfwInitContextAPI:                   ; @_glfwInitContextAPI
	.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
	bl	__glfwCreateContextTLS
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LoadLibraryW
Lloh2:
	adrp	x19, __glfw@GOTPAGE
Lloh3:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	str	w0, [x19, #40]
	cbz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GetProcAddress
	str	x0, [x19, #32]
	ldr	w0, [x19, #40]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_GetProcAddress
	str	x0, [x19, #24]
	ldr	w0, [x19, #40]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_GetProcAddress
	str	x0, [x19, #16]
	ldr	w0, [x19, #40]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_GetProcAddress
	str	x0, [x19, #8]
	ldr	w0, [x19, #40]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_GetProcAddress
	str	x0, [x19]
	ldur	q0, [x19, #24]
	ldur	q1, [x19, #8]
	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
	cmp	w8, #0
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_7
; %bb.3:
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
Lloh18:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	__glfwInputError
LBB0_6:
Lloh21:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
LBB0_8:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	111                             ; 0x6f
	.long	112                             ; 0x70
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	103                             ; 0x67
	.long	108                             ; 0x6c
	.long	51                              ; 0x33
	.long	50                              ; 0x32
	.long	46                              ; 0x2e
	.long	100                             ; 0x64
	.long	108                             ; 0x6c
	.long	108                             ; 0x6c
	.long	0                               ; 0x0

	.comm	__glfw,48,3                     ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"WGL: Failed to load opengl32.dll"

l_.str.2:                               ; @.str.2
	.asciz	"wglCreateContext"

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

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

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

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

l_.str.7:                               ; @.str.7
	.asciz	"WGL: Failed to load opengl32 functions"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
.subsections_via_symbols
