	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choosePixelFormat
_choosePixelFormat:                     ## @choosePixelFormat
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$456, %rsp                      ## imm = 0x1C8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__glfw@GOTPCREL(%rip), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_12
## %bb.1:
	movq	_WGL_NUMBER_PIXEL_FORMATS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -208(%rbp)
	movl	(%r12), %edi
	xorl	%ebx, %ebx
	leaq	-208(%rbp), %r8
	leaq	-372(%rbp), %r9
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_wglGetPixelFormatAttribivARB
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	_WGL_SUPPORT_OPENGL_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_DRAW_TO_WINDOW_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_PIXEL_TYPE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ACCELERATION_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_RED_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_RED_SHIFT_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_GREEN_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_GREEN_SHIFT_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_BLUE_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_BLUE_SHIFT_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ALPHA_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ALPHA_SHIFT_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_DEPTH_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_STENCIL_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ACCUM_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ACCUM_RED_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ACCUM_GREEN_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ACCUM_BLUE_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_ACCUM_ALPHA_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_AUX_BUFFERS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_STEREO_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	_WGL_DOUBLE_BUFFER_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
	movq	__glfw@GOTPCREL(%rip), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_4
## %bb.3:
	movq	_WGL_SAMPLES_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_addAttrib
LBB0_4:
	movq	(%r15), %rax
	movq	_GLFW_OPENGL_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	__glfw@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %rax
	orq	8(%rcx), %rax
	je	LBB0_10
## %bb.6:
	movq	_WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movl	(%r12), %edi
	movl	$1, %esi
	movl	$104, %edx
	xorl	%ecx, %ecx
	callq	_DescribePixelFormat
	movl	%eax, %ebx
	movl	%eax, -372(%rbp)
	jmp	LBB0_13
LBB0_11:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputErrorWin32
	jmp	LBB0_54
LBB0_7:
	movq	__glfw@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movq	_WGL_COLORSPACE_EXT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	callq	_addAttrib
LBB0_10:
	movl	-372(%rbp), %ebx
LBB0_13:
	movl	%ebx, %edi
	movl	$128, %esi
	callq	_calloc
	movq	%rax, %r13
	testl	%ebx, %ebx
	jle	LBB0_49
## %bb.14:
	movq	%r15, -392(%rbp)                ## 8-byte Spill
	movq	%r14, -384(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_33:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 112(%r13,%r15)
LBB0_46:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r14, %rax
	shlq	$7, %rax
	movl	%ebx, (%r13,%rax)
	incl	%r14d
	movl	%r14d, %r15d
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	-372(%rbp), %ebx
	jge	LBB0_48
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %r14
	incl	%ebx
	movq	__glfw@GOTPCREL(%rip), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_36
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-208(%rbp), %r8
	leaq	-368(%rbp), %r9
	callq	_wglGetPixelFormatAttribivARB
	testl	%eax, %eax
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_SUPPORT_OPENGL_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	testq	%rax, %rax
	je	LBB0_47
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_DRAW_TO_WINDOW_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	testq	%rax, %rax
	je	LBB0_47
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_PIXEL_TYPE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	_WGL_TYPE_RGBA_ARB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_47
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_ACCELERATION_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	_WGL_NO_ACCELERATION_ARB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_47
## %bb.24:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_RED_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%r14, %r15
	shlq	$7, %r15
	movq	%rax, 104(%r13,%r15)
	movq	_WGL_GREEN_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 96(%r13,%r15)
	movq	_WGL_BLUE_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 88(%r13,%r15)
	movq	_WGL_ALPHA_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 80(%r13,%r15)
	movq	_WGL_DEPTH_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 72(%r13,%r15)
	movq	_WGL_STENCIL_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 64(%r13,%r15)
	movq	_WGL_ACCUM_RED_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 56(%r13,%r15)
	movq	_WGL_ACCUM_GREEN_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 48(%r13,%r15)
	movq	_WGL_ACCUM_BLUE_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 40(%r13,%r15)
	movq	_WGL_ACCUM_ALPHA_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 32(%r13,%r15)
	movq	_WGL_AUX_BUFFERS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 24(%r13,%r15)
	movq	_WGL_STEREO_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13,%r15)
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_DOUBLE_BUFFER_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13,%r15)
LBB0_28:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_SAMPLES_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	%rax, 120(%r13,%r15)
LBB0_30:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-392(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	_GLFW_OPENGL_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %rax
	orq	8(%rcx), %rax
	je	LBB0_46
## %bb.32:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	testq	%rax, %rax
	jne	LBB0_33
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	movl	$104, %edx
	leaq	-496(%rbp), %rcx
	callq	_DescribePixelFormat
	testl	%eax, %eax
	je	LBB0_56
## %bb.37:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-496(%rbp), %eax
	movq	_PFD_DRAW_TO_WINDOW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_47
## %bb.38:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_PFD_SUPPORT_OPENGL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_47
## %bb.39:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_PFD_GENERIC_ACCELERATED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_40
LBB0_41:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-488(%rbp), %rcx
	movq	_PFD_TYPE_RGBA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_47
## %bb.42:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-400(%rbp), %rdx
	movq	%r14, %rcx
	shlq	$7, %rcx
	movq	%rdx, 104(%r13,%rcx)
	movups	-416(%rbp), %xmm0
	movups	%xmm0, 88(%r13,%rcx)
	movups	-432(%rbp), %xmm0
	movups	%xmm0, 72(%r13,%rcx)
	movups	-448(%rbp), %xmm0
	movups	%xmm0, 56(%r13,%rcx)
	movups	-464(%rbp), %xmm0
	movups	%xmm0, 40(%r13,%rcx)
	movups	-480(%rbp), %xmm0
	movups	%xmm0, 24(%r13,%rcx)
	movq	_PFD_STEREO@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 16(%r13,%rcx)
LBB0_44:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_PFD_DOUBLEBUFFER@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13,%rcx)
	jmp	LBB0_46
LBB0_40:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_PFD_GENERIC_FORMAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_47
	jmp	LBB0_41
LBB0_34:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_46
## %bb.35:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_WGL_COLORSPACE_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findAttribValue
	movq	_WGL_COLORSPACE_SRGB_EXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
	jmp	LBB0_46
LBB0_48:
	testl	%r15d, %r15d
	movq	-384(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_49
## %bb.51:
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	__glfwChooseFBConfig
	testq	%rax, %rax
	je	LBB0_52
## %bb.53:
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_54
LBB0_49:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	__glfwInputError
	jmp	LBB0_19
LBB0_17:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_56:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_18:
	callq	__glfwInputErrorWin32
LBB0_19:
	movq	%r13, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_54:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_57
## %bb.55:
	movl	%ebx, %eax
	addq	$456, %rsp                      ## imm = 0x1C8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	movq	_GLFW_FORMAT_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	__glfwInputError
	jmp	LBB0_19
LBB0_57:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,40,3                     ## @_glfw
	.comm	_WGL_NUMBER_PIXEL_FORMATS_ARB,4,2 ## @WGL_NUMBER_PIXEL_FORMATS_ARB
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WGL: Failed to retrieve pixel format attribute"

	.comm	_WGL_SUPPORT_OPENGL_ARB,4,2     ## @WGL_SUPPORT_OPENGL_ARB
	.comm	_WGL_DRAW_TO_WINDOW_ARB,4,2     ## @WGL_DRAW_TO_WINDOW_ARB
	.comm	_WGL_PIXEL_TYPE_ARB,4,2         ## @WGL_PIXEL_TYPE_ARB
	.comm	_WGL_ACCELERATION_ARB,4,2       ## @WGL_ACCELERATION_ARB
	.comm	_WGL_RED_BITS_ARB,4,2           ## @WGL_RED_BITS_ARB
	.comm	_WGL_RED_SHIFT_ARB,4,2          ## @WGL_RED_SHIFT_ARB
	.comm	_WGL_GREEN_BITS_ARB,4,2         ## @WGL_GREEN_BITS_ARB
	.comm	_WGL_GREEN_SHIFT_ARB,4,2        ## @WGL_GREEN_SHIFT_ARB
	.comm	_WGL_BLUE_BITS_ARB,4,2          ## @WGL_BLUE_BITS_ARB
	.comm	_WGL_BLUE_SHIFT_ARB,4,2         ## @WGL_BLUE_SHIFT_ARB
	.comm	_WGL_ALPHA_BITS_ARB,4,2         ## @WGL_ALPHA_BITS_ARB
	.comm	_WGL_ALPHA_SHIFT_ARB,4,2        ## @WGL_ALPHA_SHIFT_ARB
	.comm	_WGL_DEPTH_BITS_ARB,4,2         ## @WGL_DEPTH_BITS_ARB
	.comm	_WGL_STENCIL_BITS_ARB,4,2       ## @WGL_STENCIL_BITS_ARB
	.comm	_WGL_ACCUM_BITS_ARB,4,2         ## @WGL_ACCUM_BITS_ARB
	.comm	_WGL_ACCUM_RED_BITS_ARB,4,2     ## @WGL_ACCUM_RED_BITS_ARB
	.comm	_WGL_ACCUM_GREEN_BITS_ARB,4,2   ## @WGL_ACCUM_GREEN_BITS_ARB
	.comm	_WGL_ACCUM_BLUE_BITS_ARB,4,2    ## @WGL_ACCUM_BLUE_BITS_ARB
	.comm	_WGL_ACCUM_ALPHA_BITS_ARB,4,2   ## @WGL_ACCUM_ALPHA_BITS_ARB
	.comm	_WGL_AUX_BUFFERS_ARB,4,2        ## @WGL_AUX_BUFFERS_ARB
	.comm	_WGL_STEREO_ARB,4,2             ## @WGL_STEREO_ARB
	.comm	_WGL_DOUBLE_BUFFER_ARB,4,2      ## @WGL_DOUBLE_BUFFER_ARB
	.comm	_WGL_SAMPLES_ARB,4,2            ## @WGL_SAMPLES_ARB
	.comm	_GLFW_OPENGL_API,8,3            ## @GLFW_OPENGL_API
	.comm	_WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB,4,2 ## @WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB
	.comm	_WGL_COLORSPACE_EXT,4,2         ## @WGL_COLORSPACE_EXT
L_.str.1:                               ## @.str.1
	.asciz	"WGL: Failed to retrieve pixel format attributes"

	.comm	_WGL_TYPE_RGBA_ARB,8,3          ## @WGL_TYPE_RGBA_ARB
	.comm	_WGL_NO_ACCELERATION_ARB,8,3    ## @WGL_NO_ACCELERATION_ARB
	.comm	_GLFW_TRUE,8,3                  ## @GLFW_TRUE
	.comm	_WGL_COLORSPACE_SRGB_EXT,8,3    ## @WGL_COLORSPACE_SRGB_EXT
L_.str.2:                               ## @.str.2
	.asciz	"WGL: Failed to describe pixel format"

	.comm	_PFD_DRAW_TO_WINDOW,4,2         ## @PFD_DRAW_TO_WINDOW
	.comm	_PFD_SUPPORT_OPENGL,4,2         ## @PFD_SUPPORT_OPENGL
	.comm	_PFD_GENERIC_ACCELERATED,4,2    ## @PFD_GENERIC_ACCELERATED
	.comm	_PFD_GENERIC_FORMAT,4,2         ## @PFD_GENERIC_FORMAT
	.comm	_PFD_TYPE_RGBA,8,3              ## @PFD_TYPE_RGBA
	.comm	_PFD_STEREO,4,2                 ## @PFD_STEREO
	.comm	_PFD_DOUBLEBUFFER,4,2           ## @PFD_DOUBLEBUFFER
	.comm	_GLFW_API_UNAVAILABLE,4,2       ## @GLFW_API_UNAVAILABLE
L_.str.3:                               ## @.str.3
	.asciz	"WGL: The driver does not appear to support OpenGL"

	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ## @GLFW_FORMAT_UNAVAILABLE
L_.str.4:                               ## @.str.4
	.asciz	"WGL: Failed to find a suitable pixel format"

	.no_dead_strip	_choosePixelFormat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choosePixelFormat
_choosePixelFormat:                     ; @choosePixelFormat
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #464
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x25, __glfw@GOTPAGE
Lloh4:
	ldr	x25, [x25, __glfw@GOTPAGEOFF]
	ldr	x8, [x25, #32]
	cbz	x8, LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _WGL_NUMBER_PIXEL_FORMATS_ARB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WGL_NUMBER_PIXEL_FORMATS_ARB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stur	w8, [x29, #-256]
	ldr	w0, [x21]
	sub	x4, x29, #256
	add	x5, sp, #124
	mov	w1, #1
	mov	w2, #0
	mov	w3, #1
	bl	_wglGetPixelFormatAttribivARB
	cbz	w0, LBB0_8
; %bb.2:
Lloh8:
	adrp	x8, _WGL_SUPPORT_OPENGL_ARB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WGL_SUPPORT_OPENGL_ARB@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh11:
	adrp	x8, _WGL_DRAW_TO_WINDOW_ARB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WGL_DRAW_TO_WINDOW_ARB@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh14:
	adrp	x8, _WGL_PIXEL_TYPE_ARB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WGL_PIXEL_TYPE_ARB@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh17:
	adrp	x8, _WGL_ACCELERATION_ARB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WGL_ACCELERATION_ARB@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh20:
	adrp	x8, _WGL_RED_BITS_ARB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WGL_RED_BITS_ARB@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh23:
	adrp	x8, _WGL_RED_SHIFT_ARB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WGL_RED_SHIFT_ARB@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh26:
	adrp	x8, _WGL_GREEN_BITS_ARB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WGL_GREEN_BITS_ARB@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh29:
	adrp	x8, _WGL_GREEN_SHIFT_ARB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WGL_GREEN_SHIFT_ARB@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh32:
	adrp	x8, _WGL_BLUE_BITS_ARB@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WGL_BLUE_BITS_ARB@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh35:
	adrp	x8, _WGL_BLUE_SHIFT_ARB@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WGL_BLUE_SHIFT_ARB@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh38:
	adrp	x8, _WGL_ALPHA_BITS_ARB@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WGL_ALPHA_BITS_ARB@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh41:
	adrp	x8, _WGL_ALPHA_SHIFT_ARB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _WGL_ALPHA_SHIFT_ARB@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh44:
	adrp	x8, _WGL_DEPTH_BITS_ARB@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WGL_DEPTH_BITS_ARB@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh47:
	adrp	x8, _WGL_STENCIL_BITS_ARB@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WGL_STENCIL_BITS_ARB@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh50:
	adrp	x8, _WGL_ACCUM_BITS_ARB@GOTPAGE
Lloh51:
	ldr	x8, [x8, _WGL_ACCUM_BITS_ARB@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh53:
	adrp	x8, _WGL_ACCUM_RED_BITS_ARB@GOTPAGE
Lloh54:
	ldr	x8, [x8, _WGL_ACCUM_RED_BITS_ARB@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh56:
	adrp	x8, _WGL_ACCUM_GREEN_BITS_ARB@GOTPAGE
Lloh57:
	ldr	x8, [x8, _WGL_ACCUM_GREEN_BITS_ARB@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh59:
	adrp	x8, _WGL_ACCUM_BLUE_BITS_ARB@GOTPAGE
Lloh60:
	ldr	x8, [x8, _WGL_ACCUM_BLUE_BITS_ARB@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh62:
	adrp	x8, _WGL_ACCUM_ALPHA_BITS_ARB@GOTPAGE
Lloh63:
	ldr	x8, [x8, _WGL_ACCUM_ALPHA_BITS_ARB@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh65:
	adrp	x8, _WGL_AUX_BUFFERS_ARB@GOTPAGE
Lloh66:
	ldr	x8, [x8, _WGL_AUX_BUFFERS_ARB@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh68:
	adrp	x8, _WGL_STEREO_ARB@GOTPAGE
Lloh69:
	ldr	x8, [x8, _WGL_STEREO_ARB@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	bl	_addAttrib
Lloh71:
	adrp	x8, _WGL_DOUBLE_BUFFER_ARB@GOTPAGE
Lloh72:
	ldr	x8, [x8, _WGL_DOUBLE_BUFFER_ARB@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	bl	_addAttrib
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh74:
	adrp	x8, _WGL_SAMPLES_ARB@GOTPAGE
Lloh75:
	ldr	x8, [x8, _WGL_SAMPLES_ARB@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	bl	_addAttrib
LBB0_4:
	ldr	x8, [x20]
Lloh77:
	adrp	x9, _GLFW_OPENGL_API@GOTPAGE
Lloh78:
	ldr	x9, [x9, _GLFW_OPENGL_API@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldp	x9, x8, [x25, #8]
	orr	x8, x8, x9
	cbz	x8, LBB0_12
; %bb.6:
Lloh80:
	adrp	x8, _WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPAGE
Lloh81:
	ldr	x8, [x8, _WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w0, [x21]
	mov	w1, #1
	mov	w2, #104
	mov	x3, #0
	bl	_DescribePixelFormat
	mov	x23, x0
	str	w0, [sp, #124]
	b	LBB0_13
LBB0_8:
Lloh82:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh83:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
Lloh85:
	adrp	x1, l_.str@PAGE
Lloh86:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputErrorWin32
	b	LBB0_53
LBB0_9:
	ldr	x8, [x25]
	cbz	x8, LBB0_12
; %bb.10:
Lloh87:
	adrp	x8, _WGL_COLORSPACE_EXT@GOTPAGE
Lloh88:
	ldr	x8, [x8, _WGL_COLORSPACE_EXT@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	bl	_addAttrib
LBB0_12:
	ldr	w23, [sp, #124]
LBB0_13:
	mov	x0, x23
	mov	w1, #128
	bl	_calloc
	mov	x22, x0
	cmp	w23, #1
	b.lt	LBB0_48
; %bb.14:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w24, #0
	mov	w23, #0
Lloh89:
	adrp	x26, _PFD_DRAW_TO_WINDOW@GOTPAGE
Lloh90:
	ldr	x26, [x26, _PFD_DRAW_TO_WINDOW@GOTPAGEOFF]
Lloh91:
	adrp	x19, _PFD_SUPPORT_OPENGL@GOTPAGE
Lloh92:
	ldr	x19, [x19, _PFD_SUPPORT_OPENGL@GOTPAGEOFF]
Lloh93:
	adrp	x28, _WGL_SUPPORT_OPENGL_ARB@GOTPAGE
Lloh94:
	ldr	x28, [x28, _WGL_SUPPORT_OPENGL_ARB@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh95:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh96:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh97:
	ldr	x8, [x8]
	add	x9, x22, x27, lsl #7
	str	x8, [x9, #112]
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	lsl	x8, x27, #7
	str	w24, [x22, x8]
	add	w23, w23, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [sp, #124]
	cmp	w24, w8
	b.ge	LBB0_45
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x27, w23
	add	w24, w24, #1
	ldr	x8, [x25, #32]
	cbz	x8, LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x21]
	sub	x4, x29, #256
	add	x5, sp, #128
	mov	x1, x24
	mov	w2, #0
	mov	w3, #0
	bl	_wglGetPixelFormatAttribivARB
	cbz	w0, LBB0_49
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x28]
	bl	_findAttribValue
	cbz	x0, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh98:
	adrp	x8, _WGL_DRAW_TO_WINDOW_ARB@GOTPAGE
Lloh99:
	ldr	x8, [x8, _WGL_DRAW_TO_WINDOW_ARB@GOTPAGEOFF]
Lloh100:
	ldr	w0, [x8]
	bl	_findAttribValue
	cbz	x0, LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh101:
	adrp	x8, _WGL_PIXEL_TYPE_ARB@GOTPAGE
Lloh102:
	ldr	x8, [x8, _WGL_PIXEL_TYPE_ARB@GOTPAGEOFF]
Lloh103:
	ldr	w0, [x8]
	bl	_findAttribValue
Lloh104:
	adrp	x8, _WGL_TYPE_RGBA_ARB@GOTPAGE
Lloh105:
	ldr	x8, [x8, _WGL_TYPE_RGBA_ARB@GOTPAGEOFF]
Lloh106:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh107:
	adrp	x8, _WGL_ACCELERATION_ARB@GOTPAGE
Lloh108:
	ldr	x8, [x8, _WGL_ACCELERATION_ARB@GOTPAGEOFF]
Lloh109:
	ldr	w0, [x8]
	bl	_findAttribValue
Lloh110:
	adrp	x8, _WGL_NO_ACCELERATION_ARB@GOTPAGE
Lloh111:
	ldr	x8, [x8, _WGL_NO_ACCELERATION_ARB@GOTPAGEOFF]
Lloh112:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x19, x26
	mov	x26, x20
Lloh113:
	adrp	x8, _WGL_RED_BITS_ARB@GOTPAGE
Lloh114:
	ldr	x8, [x8, _WGL_RED_BITS_ARB@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x8]
	bl	_findAttribValue
	add	x20, x22, x27, lsl #7
	str	x0, [x20, #104]
Lloh116:
	adrp	x8, _WGL_GREEN_BITS_ARB@GOTPAGE
Lloh117:
	ldr	x8, [x8, _WGL_GREEN_BITS_ARB@GOTPAGEOFF]
Lloh118:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #96]
Lloh119:
	adrp	x8, _WGL_BLUE_BITS_ARB@GOTPAGE
Lloh120:
	ldr	x8, [x8, _WGL_BLUE_BITS_ARB@GOTPAGEOFF]
Lloh121:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #88]
Lloh122:
	adrp	x8, _WGL_ALPHA_BITS_ARB@GOTPAGE
Lloh123:
	ldr	x8, [x8, _WGL_ALPHA_BITS_ARB@GOTPAGEOFF]
Lloh124:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #80]
Lloh125:
	adrp	x8, _WGL_DEPTH_BITS_ARB@GOTPAGE
Lloh126:
	ldr	x8, [x8, _WGL_DEPTH_BITS_ARB@GOTPAGEOFF]
Lloh127:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #72]
Lloh128:
	adrp	x8, _WGL_STENCIL_BITS_ARB@GOTPAGE
Lloh129:
	ldr	x8, [x8, _WGL_STENCIL_BITS_ARB@GOTPAGEOFF]
Lloh130:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #64]
Lloh131:
	adrp	x8, _WGL_ACCUM_RED_BITS_ARB@GOTPAGE
Lloh132:
	ldr	x8, [x8, _WGL_ACCUM_RED_BITS_ARB@GOTPAGEOFF]
Lloh133:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #56]
Lloh134:
	adrp	x8, _WGL_ACCUM_GREEN_BITS_ARB@GOTPAGE
Lloh135:
	ldr	x8, [x8, _WGL_ACCUM_GREEN_BITS_ARB@GOTPAGEOFF]
Lloh136:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #48]
Lloh137:
	adrp	x8, _WGL_ACCUM_BLUE_BITS_ARB@GOTPAGE
Lloh138:
	ldr	x8, [x8, _WGL_ACCUM_BLUE_BITS_ARB@GOTPAGEOFF]
Lloh139:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #40]
Lloh140:
	adrp	x8, _WGL_ACCUM_ALPHA_BITS_ARB@GOTPAGE
Lloh141:
	ldr	x8, [x8, _WGL_ACCUM_ALPHA_BITS_ARB@GOTPAGEOFF]
Lloh142:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #32]
Lloh143:
	adrp	x8, _WGL_AUX_BUFFERS_ARB@GOTPAGE
Lloh144:
	ldr	x8, [x8, _WGL_AUX_BUFFERS_ARB@GOTPAGEOFF]
Lloh145:
	ldr	w0, [x8]
	bl	_findAttribValue
	str	x0, [x20, #24]
Lloh146:
	adrp	x8, _WGL_STEREO_ARB@GOTPAGE
Lloh147:
	ldr	x8, [x8, _WGL_STEREO_ARB@GOTPAGEOFF]
Lloh148:
	ldr	w0, [x8]
	bl	_findAttribValue
	cbz	x0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh149:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh150:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh151:
	ldr	x8, [x8]
	str	x8, [x20, #16]
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh152:
	adrp	x8, _WGL_DOUBLE_BUFFER_ARB@GOTPAGE
Lloh153:
	ldr	x8, [x8, _WGL_DOUBLE_BUFFER_ARB@GOTPAGEOFF]
Lloh154:
	ldr	w0, [x8]
	bl	_findAttribValue
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh155:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh156:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh157:
	ldr	x8, [x8]
	add	x9, x22, x27, lsl #7
	str	x8, [x9, #8]
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x25, #24]
	mov	x20, x26
	cbz	x8, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh158:
	adrp	x8, _WGL_SAMPLES_ARB@GOTPAGE
Lloh159:
	ldr	x8, [x8, _WGL_SAMPLES_ARB@GOTPAGEOFF]
Lloh160:
	ldr	w0, [x8]
	bl	_findAttribValue
	add	x8, x22, x27, lsl #7
	str	x0, [x8, #120]
LBB0_30:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20]
Lloh161:
	adrp	x9, _GLFW_OPENGL_API@GOTPAGE
Lloh162:
	ldr	x9, [x9, _GLFW_OPENGL_API@GOTPAGEOFF]
Lloh163:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	x26, x19
	b.ne	LBB0_43
; %bb.31:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	x9, x8, [x25, #8]
	orr	x8, x8, x9
Lloh164:
	adrp	x19, _PFD_SUPPORT_OPENGL@GOTPAGE
Lloh165:
	ldr	x19, [x19, _PFD_SUPPORT_OPENGL@GOTPAGEOFF]
	cbz	x8, LBB0_16
; %bb.32:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh166:
	adrp	x8, _WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPAGE
Lloh167:
	ldr	x8, [x8, _WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPAGEOFF]
Lloh168:
	ldr	w0, [x8]
	bl	_findAttribValue
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_33:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x21]
	add	x3, sp, #16
	mov	x1, x24
	mov	w2, #104
	bl	_DescribePixelFormat
	cbz	w0, LBB0_50
; %bb.34:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.35:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.36:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh169:
	adrp	x9, _PFD_GENERIC_ACCELERATED@GOTPAGE
Lloh170:
	ldr	x9, [x9, _PFD_GENERIC_ACCELERATED@GOTPAGEOFF]
Lloh171:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_42
LBB0_37:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x9, [sp, #24]
Lloh172:
	adrp	x10, _PFD_TYPE_RGBA@GOTPAGE
Lloh173:
	ldr	x10, [x10, _PFD_TYPE_RGBA@GOTPAGEOFF]
Lloh174:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.38:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	q0, [sp, #96]
	add	x9, x22, x27, lsl #7
	stur	q0, [x9, #88]
	ldp	q1, q0, [sp, #64]
	stur	q0, [x9, #72]
	stur	q1, [x9, #56]
	ldp	q1, q0, [sp, #32]
	stur	q0, [x9, #40]
	ldr	x10, [sp, #112]
	str	x10, [x9, #104]
	stur	q1, [x9, #24]
Lloh175:
	adrp	x10, _PFD_STEREO@GOTPAGE
Lloh176:
	ldr	x10, [x10, _PFD_STEREO@GOTPAGEOFF]
Lloh177:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh178:
	adrp	x10, _GLFW_TRUE@GOTPAGE
Lloh179:
	ldr	x10, [x10, _GLFW_TRUE@GOTPAGEOFF]
Lloh180:
	ldr	x10, [x10]
	str	x10, [x9, #16]
LBB0_40:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh181:
	adrp	x9, _PFD_DOUBLEBUFFER@GOTPAGE
Lloh182:
	ldr	x9, [x9, _PFD_DOUBLEBUFFER@GOTPAGEOFF]
Lloh183:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.41:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh184:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh185:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh186:
	ldr	x8, [x8]
	add	x9, x22, x27, lsl #7
	str	x8, [x9, #8]
	b	LBB0_16
LBB0_42:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh187:
	adrp	x9, _PFD_GENERIC_FORMAT@GOTPAGE
Lloh188:
	ldr	x9, [x9, _PFD_GENERIC_FORMAT@GOTPAGEOFF]
Lloh189:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
	b	LBB0_37
LBB0_43:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x25]
Lloh190:
	adrp	x19, _PFD_SUPPORT_OPENGL@GOTPAGE
Lloh191:
	ldr	x19, [x19, _PFD_SUPPORT_OPENGL@GOTPAGEOFF]
	cbz	x8, LBB0_16
; %bb.44:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh192:
	adrp	x8, _WGL_COLORSPACE_EXT@GOTPAGE
Lloh193:
	ldr	x8, [x8, _WGL_COLORSPACE_EXT@GOTPAGEOFF]
Lloh194:
	ldr	w0, [x8]
	bl	_findAttribValue
Lloh195:
	adrp	x8, _WGL_COLORSPACE_SRGB_EXT@GOTPAGE
Lloh196:
	ldr	x8, [x8, _WGL_COLORSPACE_SRGB_EXT@GOTPAGEOFF]
Lloh197:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_15
	b	LBB0_16
LBB0_45:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	cbz	w23, LBB0_48
; %bb.46:
	mov	x1, x22
	mov	x2, x23
	bl	__glfwChooseFBConfig
	cbz	x0, LBB0_56
; %bb.47:
	ldr	w19, [x0]
	mov	x0, x22
	bl	_free
	b	LBB0_54
LBB0_48:
Lloh198:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh199:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh200:
	ldr	w0, [x8]
Lloh201:
	adrp	x1, l_.str.3@PAGE
Lloh202:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	__glfwInputError
	b	LBB0_52
LBB0_49:
Lloh203:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh204:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh205:
	ldr	w0, [x8]
Lloh206:
	adrp	x1, l_.str.1@PAGE
Lloh207:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_51
LBB0_50:
Lloh208:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh209:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh210:
	ldr	w0, [x8]
Lloh211:
	adrp	x1, l_.str.2@PAGE
Lloh212:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_51:
	bl	__glfwInputErrorWin32
LBB0_52:
	mov	x0, x22
	bl	_free
LBB0_53:
	mov	w19, #0
LBB0_54:
	ldur	x8, [x29, #-96]
Lloh213:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh214:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh215:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_57
; %bb.55:
	mov	x0, x19
	add	sp, sp, #464
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_56:
Lloh216:
	adrp	x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGE
Lloh217:
	ldr	x8, [x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGEOFF]
Lloh218:
	ldr	w0, [x8]
Lloh219:
	adrp	x1, l_.str.4@PAGE
Lloh220:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	__glfwInputError
	b	LBB0_52
LBB0_57:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh161, Lloh162, Lloh163
	.loh AdrpLdrGot	Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.loh AdrpLdrGotLdr	Lloh181, Lloh182, Lloh183
	.loh AdrpLdrGotLdr	Lloh184, Lloh185, Lloh186
	.loh AdrpLdrGotLdr	Lloh187, Lloh188, Lloh189
	.loh AdrpLdrGot	Lloh190, Lloh191
	.loh AdrpLdrGotLdr	Lloh195, Lloh196, Lloh197
	.loh AdrpLdrGotLdr	Lloh192, Lloh193, Lloh194
	.loh AdrpAdd	Lloh201, Lloh202
	.loh AdrpLdrGotLdr	Lloh198, Lloh199, Lloh200
	.loh AdrpAdd	Lloh206, Lloh207
	.loh AdrpLdrGotLdr	Lloh203, Lloh204, Lloh205
	.loh AdrpAdd	Lloh211, Lloh212
	.loh AdrpLdrGotLdr	Lloh208, Lloh209, Lloh210
	.loh AdrpLdrGotLdr	Lloh213, Lloh214, Lloh215
	.loh AdrpAdd	Lloh219, Lloh220
	.loh AdrpLdrGotLdr	Lloh216, Lloh217, Lloh218
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,40,3                     ; @_glfw
	.comm	_WGL_NUMBER_PIXEL_FORMATS_ARB,4,2 ; @WGL_NUMBER_PIXEL_FORMATS_ARB
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WGL: Failed to retrieve pixel format attribute"

	.comm	_WGL_SUPPORT_OPENGL_ARB,4,2     ; @WGL_SUPPORT_OPENGL_ARB
	.comm	_WGL_DRAW_TO_WINDOW_ARB,4,2     ; @WGL_DRAW_TO_WINDOW_ARB
	.comm	_WGL_PIXEL_TYPE_ARB,4,2         ; @WGL_PIXEL_TYPE_ARB
	.comm	_WGL_ACCELERATION_ARB,4,2       ; @WGL_ACCELERATION_ARB
	.comm	_WGL_RED_BITS_ARB,4,2           ; @WGL_RED_BITS_ARB
	.comm	_WGL_RED_SHIFT_ARB,4,2          ; @WGL_RED_SHIFT_ARB
	.comm	_WGL_GREEN_BITS_ARB,4,2         ; @WGL_GREEN_BITS_ARB
	.comm	_WGL_GREEN_SHIFT_ARB,4,2        ; @WGL_GREEN_SHIFT_ARB
	.comm	_WGL_BLUE_BITS_ARB,4,2          ; @WGL_BLUE_BITS_ARB
	.comm	_WGL_BLUE_SHIFT_ARB,4,2         ; @WGL_BLUE_SHIFT_ARB
	.comm	_WGL_ALPHA_BITS_ARB,4,2         ; @WGL_ALPHA_BITS_ARB
	.comm	_WGL_ALPHA_SHIFT_ARB,4,2        ; @WGL_ALPHA_SHIFT_ARB
	.comm	_WGL_DEPTH_BITS_ARB,4,2         ; @WGL_DEPTH_BITS_ARB
	.comm	_WGL_STENCIL_BITS_ARB,4,2       ; @WGL_STENCIL_BITS_ARB
	.comm	_WGL_ACCUM_BITS_ARB,4,2         ; @WGL_ACCUM_BITS_ARB
	.comm	_WGL_ACCUM_RED_BITS_ARB,4,2     ; @WGL_ACCUM_RED_BITS_ARB
	.comm	_WGL_ACCUM_GREEN_BITS_ARB,4,2   ; @WGL_ACCUM_GREEN_BITS_ARB
	.comm	_WGL_ACCUM_BLUE_BITS_ARB,4,2    ; @WGL_ACCUM_BLUE_BITS_ARB
	.comm	_WGL_ACCUM_ALPHA_BITS_ARB,4,2   ; @WGL_ACCUM_ALPHA_BITS_ARB
	.comm	_WGL_AUX_BUFFERS_ARB,4,2        ; @WGL_AUX_BUFFERS_ARB
	.comm	_WGL_STEREO_ARB,4,2             ; @WGL_STEREO_ARB
	.comm	_WGL_DOUBLE_BUFFER_ARB,4,2      ; @WGL_DOUBLE_BUFFER_ARB
	.comm	_WGL_SAMPLES_ARB,4,2            ; @WGL_SAMPLES_ARB
	.comm	_GLFW_OPENGL_API,8,3            ; @GLFW_OPENGL_API
	.comm	_WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB,4,2 ; @WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB
	.comm	_WGL_COLORSPACE_EXT,4,2         ; @WGL_COLORSPACE_EXT
l_.str.1:                               ; @.str.1
	.asciz	"WGL: Failed to retrieve pixel format attributes"

	.comm	_WGL_TYPE_RGBA_ARB,8,3          ; @WGL_TYPE_RGBA_ARB
	.comm	_WGL_NO_ACCELERATION_ARB,8,3    ; @WGL_NO_ACCELERATION_ARB
	.comm	_GLFW_TRUE,8,3                  ; @GLFW_TRUE
	.comm	_WGL_COLORSPACE_SRGB_EXT,8,3    ; @WGL_COLORSPACE_SRGB_EXT
l_.str.2:                               ; @.str.2
	.asciz	"WGL: Failed to describe pixel format"

	.comm	_PFD_DRAW_TO_WINDOW,4,2         ; @PFD_DRAW_TO_WINDOW
	.comm	_PFD_SUPPORT_OPENGL,4,2         ; @PFD_SUPPORT_OPENGL
	.comm	_PFD_GENERIC_ACCELERATED,4,2    ; @PFD_GENERIC_ACCELERATED
	.comm	_PFD_GENERIC_FORMAT,4,2         ; @PFD_GENERIC_FORMAT
	.comm	_PFD_TYPE_RGBA,8,3              ; @PFD_TYPE_RGBA
	.comm	_PFD_STEREO,4,2                 ; @PFD_STEREO
	.comm	_PFD_DOUBLEBUFFER,4,2           ; @PFD_DOUBLEBUFFER
	.comm	_GLFW_API_UNAVAILABLE,4,2       ; @GLFW_API_UNAVAILABLE
l_.str.3:                               ; @.str.3
	.asciz	"WGL: The driver does not appear to support OpenGL"

	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ; @GLFW_FORMAT_UNAVAILABLE
l_.str.4:                               ; @.str.4
	.asciz	"WGL: Failed to find a suitable pixel format"

	.no_dead_strip	_choosePixelFormat
.subsections_via_symbols
