	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loadWGLExtensions
_loadWGLExtensions:                     ## @loadWGLExtensions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %r12
	movl	128(%r12), %edi
	callq	_GetDC
	movl	%eax, %r15d
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r12)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ZeroMemory
	movabsq	$4294967316, %rax               ## imm = 0x100000014
	movq	%rax, -56(%rbp)
	movq	_PFD_DRAW_TO_WINDOW@GOTPCREL(%rip), %rax
	movq	_PFD_SUPPORT_OPENGL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PFD_DOUBLEBUFFER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	_PFD_TYPE_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$24, -44(%rbp)
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_ChoosePixelFormat
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_SetPixelFormat
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%r15d, %edi
	callq	_wglCreateContext
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_wglMakeCurrent
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_wglGetProcAddress
	movq	%rax, 112(%r12)
	leaq	L_.str.4(%rip), %rdi
	callq	_wglGetProcAddress
	movq	%rax, 104(%r12)
	leaq	L_.str.5(%rip), %rdi
	callq	_wglGetProcAddress
	movq	%rax, 96(%r12)
	leaq	L_.str.6(%rip), %rdi
	callq	_wglGetProcAddress
	movq	%rax, 88(%r12)
	leaq	L_.str.7(%rip), %rdi
	callq	_wglGetProcAddress
	movq	%rax, 80(%r12)
	leaq	L_.str.8(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 72(%r12)
	leaq	L_.str.9(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 64(%r12)
	leaq	L_.str.10(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 56(%r12)
	leaq	L_.str.11(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 48(%r12)
	leaq	L_.str.12(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 40(%r12)
	leaq	L_.str.13(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 32(%r12)
	leaq	L_.str.14(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 24(%r12)
	leaq	L_.str.15(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 16(%r12)
	leaq	L_.str.16(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, 8(%r12)
	leaq	L_.str.17(%rip), %rdi
	callq	_extensionSupportedWGL
	movq	%rax, (%r12)
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_wglMakeCurrent
	movq	%r14, %rdi
	callq	_wglDeleteContext
	jmp	LBB0_8
LBB0_4:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_wglDeleteContext
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	callq	__glfwInputError
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,136,3                    ## @_glfw
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.comm	_PFD_DRAW_TO_WINDOW,4,2         ## @PFD_DRAW_TO_WINDOW
	.comm	_PFD_SUPPORT_OPENGL,4,2         ## @PFD_SUPPORT_OPENGL
	.comm	_PFD_DOUBLEBUFFER,4,2           ## @PFD_DOUBLEBUFFER
	.comm	_PFD_TYPE_RGBA,4,2              ## @PFD_TYPE_RGBA
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WGL: Failed to set pixel format for dummy context"

L_.str.1:                               ## @.str.1
	.asciz	"WGL: Failed to create dummy context"

L_.str.2:                               ## @.str.2
	.asciz	"WGL: Failed to make dummy context current"

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

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

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

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

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

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

L_.str.9:                               ## @.str.9
	.asciz	"WGL_ARB_framebuffer_sRGB"

L_.str.10:                              ## @.str.10
	.asciz	"WGL_EXT_framebuffer_sRGB"

L_.str.11:                              ## @.str.11
	.asciz	"WGL_ARB_create_context"

L_.str.12:                              ## @.str.12
	.asciz	"WGL_ARB_create_context_profile"

L_.str.13:                              ## @.str.13
	.asciz	"WGL_EXT_create_context_es2_profile"

L_.str.14:                              ## @.str.14
	.asciz	"WGL_ARB_create_context_robustness"

L_.str.15:                              ## @.str.15
	.asciz	"WGL_EXT_swap_control"

L_.str.16:                              ## @.str.16
	.asciz	"WGL_ARB_pixel_format"

L_.str.17:                              ## @.str.17
	.asciz	"WGL_ARB_context_flush_control"

	.no_dead_strip	_loadWGLExtensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function loadWGLExtensions
lCPI0_0:
	.long	20                              ; 0x14
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_loadWGLExtensions:                     ; @loadWGLExtensions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, __glfw@GOTPAGE
Lloh1:
	ldr	x21, [x21, __glfw@GOTPAGEOFF]
	ldr	w0, [x21, #128]
	bl	_GetDC
	mov	x19, x0
Lloh2:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21, #120]
	add	x0, sp, #8
	mov	w1, #20
	bl	_ZeroMemory
Lloh5:
	adrp	x8, _PFD_DRAW_TO_WINDOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PFD_DRAW_TO_WINDOW@GOTPAGEOFF]
Lloh7:
	adrp	x9, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PFD_SUPPORT_OPENGL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PFD_SUPPORT_OPENGL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _PFD_DOUBLEBUFFER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PFD_DOUBLEBUFFER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _PFD_TYPE_RGBA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PFD_TYPE_RGBA@GOTPAGEOFF]
	str	d0, [sp, #8]
Lloh18:
	ldr	w10, [x9]
	mov	w9, #24
	str	w8, [sp, #16]
	stp	w9, w10, [sp, #20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ChoosePixelFormat
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	bl	_SetPixelFormat
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_wglCreateContext
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_wglMakeCurrent
	cbz	w0, LBB0_6
; %bb.3:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_wglGetProcAddress
	str	x0, [x21, #112]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_wglGetProcAddress
	str	x0, [x21, #104]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_wglGetProcAddress
	str	x0, [x21, #96]
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_wglGetProcAddress
	str	x0, [x21, #88]
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_wglGetProcAddress
	str	x0, [x21, #80]
Lloh29:
	adrp	x0, l_.str.8@PAGE
Lloh30:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #72]
Lloh31:
	adrp	x0, l_.str.9@PAGE
Lloh32:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #64]
Lloh33:
	adrp	x0, l_.str.10@PAGE
Lloh34:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #56]
Lloh35:
	adrp	x0, l_.str.11@PAGE
Lloh36:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #48]
Lloh37:
	adrp	x0, l_.str.12@PAGE
Lloh38:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #40]
Lloh39:
	adrp	x0, l_.str.13@PAGE
Lloh40:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #32]
Lloh41:
	adrp	x0, l_.str.14@PAGE
Lloh42:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #24]
Lloh43:
	adrp	x0, l_.str.15@PAGE
Lloh44:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #16]
Lloh45:
	adrp	x0, l_.str.16@PAGE
Lloh46:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21, #8]
Lloh47:
	adrp	x0, l_.str.17@PAGE
Lloh48:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_extensionSupportedWGL
	str	x0, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_wglMakeCurrent
	mov	x0, x20
	bl	_wglDeleteContext
	b	LBB0_8
LBB0_4:
Lloh49:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh54:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.1@PAGE
Lloh58:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_wglDeleteContext
Lloh59:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.2@PAGE
Lloh63:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	bl	__glfwInputError
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdrp	Lloh7, Lloh10
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,136,3                    ; @_glfw
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.comm	_PFD_DRAW_TO_WINDOW,4,2         ; @PFD_DRAW_TO_WINDOW
	.comm	_PFD_SUPPORT_OPENGL,4,2         ; @PFD_SUPPORT_OPENGL
	.comm	_PFD_DOUBLEBUFFER,4,2           ; @PFD_DOUBLEBUFFER
	.comm	_PFD_TYPE_RGBA,4,2              ; @PFD_TYPE_RGBA
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WGL: Failed to set pixel format for dummy context"

l_.str.1:                               ; @.str.1
	.asciz	"WGL: Failed to create dummy context"

l_.str.2:                               ; @.str.2
	.asciz	"WGL: Failed to make dummy context current"

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

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

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

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

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

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

l_.str.9:                               ; @.str.9
	.asciz	"WGL_ARB_framebuffer_sRGB"

l_.str.10:                              ; @.str.10
	.asciz	"WGL_EXT_framebuffer_sRGB"

l_.str.11:                              ; @.str.11
	.asciz	"WGL_ARB_create_context"

l_.str.12:                              ; @.str.12
	.asciz	"WGL_ARB_create_context_profile"

l_.str.13:                              ; @.str.13
	.asciz	"WGL_EXT_create_context_es2_profile"

l_.str.14:                              ; @.str.14
	.asciz	"WGL_ARB_create_context_robustness"

l_.str.15:                              ; @.str.15
	.asciz	"WGL_EXT_swap_control"

l_.str.16:                              ; @.str.16
	.asciz	"WGL_ARB_pixel_format"

l_.str.17:                              ; @.str.17
	.asciz	"WGL_ARB_context_flush_control"

	.no_dead_strip	_loadWGLExtensions
.subsections_via_symbols
