	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GLW_InitDriver
_GLW_InitDriver:                        ## @GLW_InitDriver
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_ri@GOTPCREL(%rip), %r15
	movq	_PRINT_ALL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%r15)
	movq	_glw_state@GOTPCREL(%rip), %r13
	cmpq	$0, 8(%r13)
	je	LBB0_1
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_6
LBB0_5:
	movl	(%r13), %r14d
LBB0_6:
	movq	_r_depthbits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	$17, %r14d
	setge	%cl
	testl	%eax, %eax
	leal	16(,%rcx,8), %ebx
	cmovnel	%eax, %ebx
	xorl	%r15d, %r15d
	cmpl	$24, %ebx
	jl	LBB0_8
## %bb.7:
	movq	_r_stencilbits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r15d
LBB0_8:
	cmpl	$0, 16(%r13)
	je	LBB0_9
LBB0_24:
	movl	_GLW_InitDriver.pfd+24(%rip), %eax
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	_GLW_InitDriver.pfd+16(%rip), %eax
	movl	%eax, 4(%rcx)
	movl	_GLW_InitDriver.pfd+8(%rip), %eax
	movl	%eax, 8(%rcx)
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	*(%r15)
	movq	_g_wv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetDC
	movq	%rax, 8(%r13)
	movq	(%r15), %rcx
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	callq	*%rcx
	testl	%r14d, %r14d
	je	LBB0_5
	jmp	LBB0_6
LBB0_9:
	movq	_r_stereo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	leaq	_GLW_InitDriver.pfd(%rip), %r12
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_GLW_CreatePFD
	movq	%r12, %rdi
	callq	_GLW_MakeContext
	movq	_TRY_PFD_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_10
LBB0_21:
	movq	_PFD_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, _GLW_InitDriver.pfd(%rip)
	movq	_ri@GOTPCREL(%rip), %rcx
	movq	_PRINT_ALL@GOTPCREL(%rip), %rdx
	jne	LBB0_24
## %bb.22:
	movq	_r_stereo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.23:
	movl	(%rdx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	*(%rcx)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movl	%eax, 12(%rcx)
	jmp	LBB0_24
LBB0_10:
	movq	_TRY_PFD_FAIL_HARD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.11:
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	callq	*%rcx
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_13:
	movq	_r_colorbits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13), %esi
	cmpl	%esi, (%rax)
	jne	LBB0_16
## %bb.14:
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.15:
	movq	_g_wv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rsi
	jmp	LBB0_19
LBB0_16:
	cmpl	%esi, %r14d
	cmovll	%r14d, %esi
	movq	_r_stereo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	leaq	_GLW_InitDriver.pfd(%rip), %r14
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_GLW_CreatePFD
	movq	%r14, %rdi
	callq	_GLW_MakeContext
	cmpl	(%r12), %eax
	je	LBB0_21
## %bb.17:
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.18:
	movq	_g_wv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_19:
	callq	_ReleaseDC
	movq	$0, 8(%r13)
LBB0_20:
	movq	_PRINT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_12:
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_GLW_InitDriver.pfd,32,3 ## @GLW_InitDriver.pfd
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing OpenGL driver\n"

	.comm	_glw_state,24,3                 ## @glw_state
L_.str.1:                               ## @.str.1
	.asciz	"...getting DC: "

	.comm	_g_wv,4,2                       ## @g_wv
L_.str.2:                               ## @.str.2
	.asciz	"failed\n"

	.comm	_qfalse,4,2                     ## @qfalse
L_.str.3:                               ## @.str.3
	.asciz	"succeeded\n"

	.comm	_r_depthbits,8,3                ## @r_depthbits
	.comm	_r_stencilbits,8,3              ## @r_stencilbits
	.comm	_r_stereo,8,3                   ## @r_stereo
	.comm	_TRY_PFD_SUCCESS,4,2            ## @TRY_PFD_SUCCESS
	.comm	_TRY_PFD_FAIL_HARD,4,2          ## @TRY_PFD_FAIL_HARD
	.comm	_PRINT_WARNING,4,2              ## @PRINT_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"...failed hard\n"

	.comm	_r_colorbits,8,3                ## @r_colorbits
L_.str.5:                               ## @.str.5
	.asciz	"...failed to find an appropriate PIXELFORMAT\n"

	.comm	_PFD_STEREO,4,2                 ## @PFD_STEREO
L_.str.6:                               ## @.str.6
	.asciz	"...failed to select stereo pixel format\n"

	.comm	_glConfig,16,2                  ## @glConfig
	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_GLW_InitDriver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GLW_InitDriver
_GLW_InitDriver:                        ; @GLW_InitDriver
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x23, _ri@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ri@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x24, _PRINT_ALL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PRINT_ALL@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
Lloh6:
	adrp	x25, _glw_state@GOTPAGE
Lloh7:
	ldr	x25, [x25, _glw_state@GOTPAGEOFF]
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x23]
	ldr	w0, [x24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
Lloh10:
	adrp	x8, _g_wv@GOTPAGE
Lloh11:
	ldr	x8, [x8, _g_wv@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_GetDC
	mov	x8, x0
	str	x0, [x25, #8]
	ldr	x9, [x23]
	ldr	w0, [x24]
	cbz	x8, LBB0_11
; %bb.2:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	blr	x9
LBB0_3:
	ldr	w8, [x25]
	cmp	w19, #0
	csel	w19, w8, w19, eq
Lloh15:
	adrp	x8, _r_depthbits@GOTPAGE
Lloh16:
	ldr	x8, [x8, _r_depthbits@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #16
	mov	w10, #24
	cmp	w19, #16
	csel	w9, w10, w9, gt
Lloh18:
	adrp	x10, _r_stencilbits@GOTPAGE
Lloh19:
	ldr	x10, [x10, _r_stencilbits@GOTPAGEOFF]
	cmp	w8, #0
	csel	w20, w9, w8, eq
Lloh20:
	ldr	x8, [x10]
	ldr	w8, [x8]
	cmp	w20, #24
	csel	w21, wzr, w8, lt
	ldr	w8, [x25, #16]
	cbz	w8, LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _GLW_InitDriver.pfd@PAGE+8
Lloh22:
	add	x8, x8, _GLW_InitDriver.pfd@PAGEOFF+8
	ldur	q0, [x8, #8]
	xtn.2s	v0, v0
Lloh23:
	adrp	x9, _glConfig@GOTPAGE
Lloh24:
	ldr	x9, [x9, _glConfig@GOTPAGEOFF]
	rev64.2s	v0, v0
	str	d0, [x9]
	ldr	x8, [x8]
	str	w8, [x9, #8]
Lloh25:
	adrp	x8, _qtrue@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_21
LBB0_5:
Lloh27:
	adrp	x26, _r_stereo@GOTPAGE
Lloh28:
	ldr	x26, [x26, _r_stereo@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x4, [x8]
Lloh29:
	adrp	x22, _GLW_InitDriver.pfd@PAGE
Lloh30:
	add	x22, x22, _GLW_InitDriver.pfd@PAGEOFF
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_GLW_CreatePFD
	mov	x0, x22
	bl	_GLW_MakeContext
Lloh31:
	adrp	x22, _TRY_PFD_SUCCESS@GOTPAGE
Lloh32:
	ldr	x22, [x22, _TRY_PFD_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_6:
Lloh33:
	adrp	x8, _GLW_InitDriver.pfd@PAGE
Lloh34:
	ldr	w8, [x8, _GLW_InitDriver.pfd@PAGEOFF]
Lloh35:
	adrp	x9, _PFD_STEREO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PFD_STEREO@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.7:
	ldr	x8, [x26]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.8:
	ldr	x8, [x23]
	ldr	w0, [x24]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	blr	x8
Lloh40:
	adrp	x8, _qfalse@GOTPAGE
Lloh41:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _glConfig@GOTPAGE
Lloh44:
	ldr	x9, [x9, _glConfig@GOTPAGEOFF]
Lloh45:
	str	w8, [x9, #12]
	b	LBB0_4
LBB0_9:
Lloh46:
	adrp	x8, _TRY_PFD_FAIL_HARD@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TRY_PFD_FAIL_HARD@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x23]
Lloh49:
	adrp	x9, _PRINT_WARNING@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PRINT_WARNING@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x9]
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_11:
Lloh54:
	adrp	x1, l_.str.2@PAGE
Lloh55:
	add	x1, x1, l_.str.2@PAGEOFF
	blr	x9
	b	LBB0_20
LBB0_12:
Lloh56:
	adrp	x8, _r_colorbits@GOTPAGE
Lloh57:
	ldr	x8, [x8, _r_colorbits@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	ldr	w9, [x8]
	ldr	w8, [x25]
	cmp	w9, w8
	ccmp	w21, #0, #0, eq
	b.eq	LBB0_16
; %bb.13:
	cmp	w19, w8
	csel	w1, w19, w8, lt
	ldr	x8, [x26]
	ldr	x4, [x8]
Lloh59:
	adrp	x19, _GLW_InitDriver.pfd@PAGE
Lloh60:
	add	x19, x19, _GLW_InitDriver.pfd@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_GLW_CreatePFD
	mov	x0, x19
	bl	_GLW_MakeContext
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.14:
	ldr	x1, [x25, #8]
	cbz	x1, LBB0_18
; %bb.15:
Lloh61:
	adrp	x8, _g_wv@GOTPAGE
Lloh62:
	ldr	x8, [x8, _g_wv@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_16:
Lloh64:
	adrp	x8, _g_wv@GOTPAGE
Lloh65:
	ldr	x8, [x8, _g_wv@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	ldr	x1, [x25, #8]
LBB0_17:
	bl	_ReleaseDC
	str	xzr, [x25, #8]
LBB0_18:
	ldr	x8, [x23]
	ldr	w0, [x24]
Lloh67:
	adrp	x1, l_.str.5@PAGE
Lloh68:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_19:
	blr	x8
LBB0_20:
Lloh69:
	adrp	x8, _qfalse@GOTPAGE
Lloh70:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_GLW_InitDriver.pfd,32,3 ; @GLW_InitDriver.pfd
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing OpenGL driver\n"

	.comm	_glw_state,24,3                 ; @glw_state
l_.str.1:                               ; @.str.1
	.asciz	"...getting DC: "

	.comm	_g_wv,4,2                       ; @g_wv
l_.str.2:                               ; @.str.2
	.asciz	"failed\n"

	.comm	_qfalse,4,2                     ; @qfalse
l_.str.3:                               ; @.str.3
	.asciz	"succeeded\n"

	.comm	_r_depthbits,8,3                ; @r_depthbits
	.comm	_r_stencilbits,8,3              ; @r_stencilbits
	.comm	_r_stereo,8,3                   ; @r_stereo
	.comm	_TRY_PFD_SUCCESS,4,2            ; @TRY_PFD_SUCCESS
	.comm	_TRY_PFD_FAIL_HARD,4,2          ; @TRY_PFD_FAIL_HARD
	.comm	_PRINT_WARNING,4,2              ; @PRINT_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"...failed hard\n"

	.comm	_r_colorbits,8,3                ; @r_colorbits
l_.str.5:                               ; @.str.5
	.asciz	"...failed to find an appropriate PIXELFORMAT\n"

	.comm	_PFD_STEREO,4,2                 ; @PFD_STEREO
l_.str.6:                               ; @.str.6
	.asciz	"...failed to select stereo pixel format\n"

	.comm	_glConfig,16,2                  ; @glConfig
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_GLW_InitDriver
.subsections_via_symbols
