	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_WGL_NUMBER_PIXEL_FORMATS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_getPixelFormatAttrib
	jmp	LBB0_3
LBB0_2:
	movl	(%r12), %edi
	movl	$1, %esi
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_DescribePixelFormat
LBB0_3:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$80, %esi
	callq	_calloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_34
## %bb.4:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	negl	%ebx
	xorl	%edx, %edx
	movl	$1, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PFD_GENERIC_FORMAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	(%rbx,%r15), %eax
	incl	%eax
	movl	%r15d, %ecx
	incl	%ecx
	movl	%ecx, %r15d
	cmpl	$1, %eax
	je	LBB0_33
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rax
	leaq	(%rax,%rax,4), %r13
	shlq	$4, %r13
	addq	%r13, %r14
	cmpq	$0, 32(%r12)
	je	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_SUPPORT_OPENGL_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	testl	%eax, %eax
	je	LBB0_31
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_DRAW_TO_WINDOW_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	testl	%eax, %eax
	je	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_PIXEL_TYPE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movq	_WGL_TYPE_RGBA_ARB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_31
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_ACCELERATION_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movq	_WGL_NO_ACCELERATION_ARB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_31
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_RED_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, (%r14)
	movq	_WGL_GREEN_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 4(%r14,%r13)
	movq	_WGL_BLUE_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 8(%r14,%r13)
	movq	_WGL_ALPHA_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 12(%r14,%r13)
	movq	_WGL_DEPTH_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 16(%r14,%r13)
	movq	_WGL_STENCIL_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 20(%r14,%r13)
	movq	_WGL_ACCUM_RED_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 24(%r14,%r13)
	movq	_WGL_ACCUM_GREEN_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 28(%r14,%r13)
	movq	_WGL_ACCUM_BLUE_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 32(%r14,%r13)
	movq	_WGL_ACCUM_ALPHA_BITS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 36(%r14,%r13)
	movq	_WGL_AUX_BUFFERS_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 40(%r14,%r13)
	movq	_WGL_STEREO_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r14,%r13)
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_DOUBLE_BUFFER_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14,%r13)
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%r12)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_SAMPLES_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	movl	%eax, 44(%r14,%r13)
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%r12)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_30
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_getPixelFormatAttrib
	testl	%eax, %eax
	je	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r14,%r13)
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
	movl	%r15d, %esi
	movl	$64, %edx
	leaq	-136(%rbp), %rcx
	callq	_DescribePixelFormat
	testl	%eax, %eax
	je	LBB0_31
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-136(%rbp), %eax
	movq	_PFD_DRAW_TO_WINDOW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_PFD_SUPPORT_OPENGL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_31
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_PFD_GENERIC_ACCELERATED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp), %rcx
	movq	_PFD_TYPE_RGBA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	movups	-120(%rbp), %xmm0
	movups	%xmm0, (%r14)
	movups	-104(%rbp), %xmm0
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movups	%xmm0, 16(%r14,%r13)
	movl	-88(%rbp), %ecx
	movl	%ecx, 32(%r14,%r13)
	movl	-84(%rbp), %ecx
	movl	%ecx, 36(%r14,%r13)
	movl	-80(%rbp), %ecx
	movl	%ecx, 40(%r14,%r13)
	movq	_PFD_STEREO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_GL_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 64(%r14,%r13)
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PFD_DOUBLEBUFFER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14,%r13)
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, 48(%r14,%r13)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	jmp	LBB0_32
LBB0_33:
	testl	%edx, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_34
## %bb.35:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	__glfwChooseFBConfig
	testq	%rax, %rax
	je	LBB0_36
## %bb.37:
	movl	48(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_GL_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_38
LBB0_34:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
	movq	_GL_FALSE@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_38
LBB0_36:
	movq	_GLFW_FORMAT_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	__glfwInputError
	movq	_GL_FALSE@GOTPCREL(%rip), %rbx
LBB0_38:
	movq	%r14, %rdi
	callq	_free
	movq	(%rbx), %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WGL_NUMBER_PIXEL_FORMATS_ARB,4,2 ## @WGL_NUMBER_PIXEL_FORMATS_ARB
	.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_TYPE_RGBA_ARB,4,2          ## @WGL_TYPE_RGBA_ARB
	.comm	_WGL_ACCELERATION_ARB,4,2       ## @WGL_ACCELERATION_ARB
	.comm	_WGL_NO_ACCELERATION_ARB,4,2    ## @WGL_NO_ACCELERATION_ARB
	.comm	_WGL_RED_BITS_ARB,4,2           ## @WGL_RED_BITS_ARB
	.comm	_WGL_GREEN_BITS_ARB,4,2         ## @WGL_GREEN_BITS_ARB
	.comm	_WGL_BLUE_BITS_ARB,4,2          ## @WGL_BLUE_BITS_ARB
	.comm	_WGL_ALPHA_BITS_ARB,4,2         ## @WGL_ALPHA_BITS_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_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	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_WGL_DOUBLE_BUFFER_ARB,4,2      ## @WGL_DOUBLE_BUFFER_ARB
	.comm	_WGL_SAMPLES_ARB,4,2            ## @WGL_SAMPLES_ARB
	.comm	_WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB,4,2 ## @WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WGL: The driver does not appear to support OpenGL"

	.comm	_GL_FALSE,8,3                   ## @GL_FALSE
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ## @GLFW_FORMAT_UNAVAILABLE
L_.str.1:                               ## @.str.1
	.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:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	x2, [sp]                        ; 8-byte Folded Spill
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WGL_NUMBER_PIXEL_FORMATS_ARB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WGL_NUMBER_PIXEL_FORMATS_ARB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_getPixelFormatAttrib
	b	LBB0_3
LBB0_2:
	ldr	w0, [x22]
	mov	w1, #1
	mov	w2, #64
	mov	x3, #0
	bl	_DescribePixelFormat
LBB0_3:
	mov	x23, x0
	mov	w26, #80
	mov	w1, #80
	bl	_calloc
	mov	x20, x0
	cmp	w23, #1
	b.lt	LBB0_35
; %bb.4:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w25, #0
	mov	w24, #0
Lloh3:
	adrp	x19, _WGL_SUPPORT_OPENGL_ARB@GOTPAGE
Lloh4:
	ldr	x19, [x19, _WGL_SUPPORT_OPENGL_ARB@GOTPAGEOFF]
Lloh5:
	adrp	x28, _WGL_DRAW_TO_WINDOW_ARB@GOTPAGE
Lloh6:
	ldr	x28, [x28, _WGL_DRAW_TO_WINDOW_ARB@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	madd	x8, x21, x26, x20
	str	w25, [x8, #48]
	add	w24, w24, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, w25
	b.eq	LBB0_32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w25, w25, #1
	sxtw	x21, w24
	smaddl	x27, w24, w26, x20
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x19]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	cbz	w0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x28]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	cbz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh7:
	adrp	x8, _WGL_PIXEL_TYPE_ARB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WGL_PIXEL_TYPE_ARB@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
Lloh10:
	adrp	x8, _WGL_TYPE_RGBA_ARB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WGL_TYPE_RGBA_ARB@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh13:
	adrp	x8, _WGL_ACCELERATION_ARB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WGL_ACCELERATION_ARB@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
Lloh16:
	adrp	x8, _WGL_NO_ACCELERATION_ARB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WGL_NO_ACCELERATION_ARB@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh19:
	adrp	x8, _WGL_RED_BITS_ARB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WGL_RED_BITS_ARB@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27]
Lloh22:
	adrp	x8, _WGL_GREEN_BITS_ARB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WGL_GREEN_BITS_ARB@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	madd	x27, x21, x26, x20
	str	w0, [x27, #4]
Lloh25:
	adrp	x8, _WGL_BLUE_BITS_ARB@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WGL_BLUE_BITS_ARB@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #8]
Lloh28:
	adrp	x8, _WGL_ALPHA_BITS_ARB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WGL_ALPHA_BITS_ARB@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #12]
Lloh31:
	adrp	x8, _WGL_DEPTH_BITS_ARB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WGL_DEPTH_BITS_ARB@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #16]
Lloh34:
	adrp	x8, _WGL_STENCIL_BITS_ARB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WGL_STENCIL_BITS_ARB@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #20]
Lloh37:
	adrp	x8, _WGL_ACCUM_RED_BITS_ARB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WGL_ACCUM_RED_BITS_ARB@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #24]
Lloh40:
	adrp	x8, _WGL_ACCUM_GREEN_BITS_ARB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WGL_ACCUM_GREEN_BITS_ARB@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #28]
Lloh43:
	adrp	x8, _WGL_ACCUM_BLUE_BITS_ARB@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WGL_ACCUM_BLUE_BITS_ARB@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #32]
Lloh46:
	adrp	x8, _WGL_ACCUM_ALPHA_BITS_ARB@GOTPAGE
Lloh47:
	ldr	x8, [x8, _WGL_ACCUM_ALPHA_BITS_ARB@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #36]
Lloh49:
	adrp	x8, _WGL_AUX_BUFFERS_ARB@GOTPAGE
Lloh50:
	ldr	x8, [x8, _WGL_AUX_BUFFERS_ARB@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	str	w0, [x27, #40]
Lloh52:
	adrp	x8, _WGL_STEREO_ARB@GOTPAGE
Lloh53:
	ldr	x8, [x8, _WGL_STEREO_ARB@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	cbz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh55:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	madd	x9, x21, x26, x20
	str	x8, [x9, #64]
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh58:
	adrp	x8, _WGL_DOUBLE_BUFFER_ARB@GOTPAGE
Lloh59:
	ldr	x8, [x8, _WGL_DOUBLE_BUFFER_ARB@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	cbz	w0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh61:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	madd	x9, x21, x26, x20
	str	x8, [x9, #56]
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh64:
	adrp	x8, _WGL_SAMPLES_ARB@GOTPAGE
Lloh65:
	ldr	x8, [x8, _WGL_SAMPLES_ARB@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	madd	x8, x21, x26, x20
	str	w0, [x8, #44]
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh67:
	adrp	x8, _WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPAGE
Lloh68:
	ldr	x8, [x8, _WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_getPixelFormatAttrib
	cbz	w0, LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh70:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh71:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh72:
	ldr	x8, [x8]
	madd	x9, x21, x26, x20
	str	x8, [x9, #72]
	b	LBB0_5
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22]
	add	x3, sp, #16
	mov	x1, x25
	mov	w2, #64
	bl	_DescribePixelFormat
	cbz	w0, LBB0_6
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #16]
Lloh73:
	adrp	x9, _PFD_DRAW_TO_WINDOW@GOTPAGE
Lloh74:
	ldr	x9, [x9, _PFD_DRAW_TO_WINDOW@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh76:
	adrp	x9, _PFD_SUPPORT_OPENGL@GOTPAGE
Lloh77:
	ldr	x9, [x9, _PFD_SUPPORT_OPENGL@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh79:
	adrp	x9, _PFD_GENERIC_ACCELERATED@GOTPAGE
Lloh80:
	ldr	x9, [x9, _PFD_GENERIC_ACCELERATED@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [sp, #24]
Lloh82:
	adrp	x10, _PFD_TYPE_RGBA@GOTPAGE
Lloh83:
	ldr	x10, [x10, _PFD_TYPE_RGBA@GOTPAGEOFF]
Lloh84:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	q0, q1, [sp, #32]
	str	q0, [x27]
	madd	x9, x21, x26, x20
	str	q1, [x9, #16]
	ldr	d0, [sp, #64]
	str	d0, [x9, #32]
	ldr	w10, [sp, #72]
	str	w10, [x9, #40]
Lloh85:
	adrp	x9, _PFD_STEREO@GOTPAGE
Lloh86:
	ldr	x9, [x9, _PFD_STEREO@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh88:
	adrp	x9, _GL_TRUE@GOTPAGE
Lloh89:
	ldr	x9, [x9, _GL_TRUE@GOTPAGEOFF]
Lloh90:
	ldr	x9, [x9]
	madd	x10, x21, x26, x20
	str	x9, [x10, #64]
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh91:
	adrp	x9, _PFD_DOUBLEBUFFER@GOTPAGE
Lloh92:
	ldr	x9, [x9, _PFD_DOUBLEBUFFER@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh94:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh96:
	ldr	x8, [x8]
	madd	x9, x21, x26, x20
	str	x8, [x9, #56]
	b	LBB0_5
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh97:
	adrp	x9, _PFD_GENERIC_FORMAT@GOTPAGE
Lloh98:
	ldr	x9, [x9, _PFD_GENERIC_FORMAT@GOTPAGEOFF]
Lloh99:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
	b	LBB0_26
LBB0_32:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	cbz	w24, LBB0_35
; %bb.33:
	mov	x1, x20
	mov	x2, x24
	bl	__glfwChooseFBConfig
	cbz	x0, LBB0_36
; %bb.34:
	ldr	w8, [x0, #48]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
Lloh100:
	adrp	x19, _GL_TRUE@GOTPAGE
Lloh101:
	ldr	x19, [x19, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_38
LBB0_35:
Lloh102:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh103:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh104:
	ldr	w0, [x8]
Lloh105:
	adrp	x1, l_.str@PAGE
Lloh106:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_37
LBB0_36:
Lloh107:
	adrp	x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGE
Lloh108:
	ldr	x8, [x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGEOFF]
Lloh109:
	ldr	w0, [x8]
Lloh110:
	adrp	x1, l_.str.1@PAGE
Lloh111:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_37:
	bl	__glfwInputError
Lloh112:
	adrp	x19, _GL_FALSE@GOTPAGE
Lloh113:
	ldr	x19, [x19, _GL_FALSE@GOTPAGEOFF]
LBB0_38:
	mov	x0, x20
	bl	_free
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh112, Lloh113
	.cfi_endproc
                                        ; -- End function
	.comm	_WGL_NUMBER_PIXEL_FORMATS_ARB,4,2 ; @WGL_NUMBER_PIXEL_FORMATS_ARB
	.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_TYPE_RGBA_ARB,4,2          ; @WGL_TYPE_RGBA_ARB
	.comm	_WGL_ACCELERATION_ARB,4,2       ; @WGL_ACCELERATION_ARB
	.comm	_WGL_NO_ACCELERATION_ARB,4,2    ; @WGL_NO_ACCELERATION_ARB
	.comm	_WGL_RED_BITS_ARB,4,2           ; @WGL_RED_BITS_ARB
	.comm	_WGL_GREEN_BITS_ARB,4,2         ; @WGL_GREEN_BITS_ARB
	.comm	_WGL_BLUE_BITS_ARB,4,2          ; @WGL_BLUE_BITS_ARB
	.comm	_WGL_ALPHA_BITS_ARB,4,2         ; @WGL_ALPHA_BITS_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_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	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_WGL_DOUBLE_BUFFER_ARB,4,2      ; @WGL_DOUBLE_BUFFER_ARB
	.comm	_WGL_SAMPLES_ARB,4,2            ; @WGL_SAMPLES_ARB
	.comm	_WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB,4,2 ; @WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WGL: The driver does not appear to support OpenGL"

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

	.no_dead_strip	_choosePixelFormat
.subsections_via_symbols
