	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glewCreateContext              ## -- Begin function glewCreateContext
	.p2align	4, 0x90
_glewCreateContext:                     ## @glewCreateContext
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GLX_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_GLX_DOUBLEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_None@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)
	callq	_XOpenDisplay
	movq	_dpy@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-88(%rbp), %rsi
	leaq	-84(%rbp), %rdx
	movq	%rax, %rdi
	callq	_glXQueryExtension
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	$-1, (%r13)
	je	LBB0_4
## %bb.6:
	movq	(%rbx), %rdi
	leaq	-80(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_XGetVisualInfo
	movq	_vis@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	cmpl	$0, -80(%rbp)
	jle	LBB0_12
## %bb.7:
	movl	$1, %ebx
	xorl	%r15d, %r15d
	movq	_vi@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%r15), %edi
	callq	_XVisualIDFromVisual
	cmpl	%eax, (%r13)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, (%r12)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	-80(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rax
	addq	$12, %r15
	incq	%rbx
	jmp	LBB0_8
LBB0_12:
	movq	_vi@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	movq	_dpy@GOTPCREL(%rip), %rbx
	movq	_None@GOTPCREL(%rip), %r15
	jne	LBB0_13
	jmp	LBB0_1
LBB0_4:
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_DefaultScreen
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_glXChooseVisual
	movq	_vi@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movl	(%rax), %edi
	callq	_XVisualIDFromVisual
	movl	%eax, (%r13)
	movq	(%r14), %rsi
LBB0_13:
	movq	(%rbx), %rdi
	movl	(%r15), %edx
	movq	_True@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_glXCreateContext
	movq	_ctx@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	(%rbx), %r12
	movq	%rbx, %r14
	movq	_vi@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	_RootWindow
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movq	_AllocNone@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_XCreateColormap
	movq	_cmap@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	$0, -72(%rbp)
	movl	%eax, -80(%rbp)
	movq	(%rbx), %r12
	movq	(%r15), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	_RootWindow
	movq	(%r15), %rcx
	movl	(%rcx), %r10d
	movl	4(%rcx), %r11d
	movq	_InputOutput@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_CWBorderPixel@GOTPCREL(%rip), %rcx
	movq	_CWColormap@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	leaq	-80(%rbp), %r13
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	pushq	%r13
	pushq	%rbx
	pushq	%r10
	pushq	%r15
	pushq	%r11
	pushq	$0
	callq	_XCreateWindow
	addq	$48, %rsp
	movq	_wnd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rdi
	movq	_ctx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%eax, %esi
	callq	_glXMakeCurrent
	testl	%eax, %eax
	je	LBB0_1
## %bb.15:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_1:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GLX_RGBA,4,2                   ## @GLX_RGBA
	.comm	_GLX_DOUBLEBUFFER,4,2           ## @GLX_DOUBLEBUFFER
	.comm	_None,4,2                       ## @None
	.comm	_dpy,8,3                        ## @dpy
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_vi,8,3                         ## @vi
	.comm	_vis,8,3                        ## @vis
	.comm	_True,4,2                       ## @True
	.comm	_ctx,8,3                        ## @ctx
	.comm	_AllocNone,4,2                  ## @AllocNone
	.comm	_cmap,4,2                       ## @cmap
	.comm	_InputOutput,4,2                ## @InputOutput
	.comm	_CWBorderPixel,4,2              ## @CWBorderPixel
	.comm	_CWColormap,4,2                 ## @CWColormap
	.comm	_wnd,4,2                        ## @wnd
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glewCreateContext              ; -- Begin function glewCreateContext
	.p2align	2
_glewCreateContext:                     ; @glewCreateContext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _GLX_RGBA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLX_RGBA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GLX_DOUBLEBUFFER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GLX_DOUBLEBUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #60]
Lloh9:
	adrp	x23, _None@GOTPAGE
Lloh10:
	ldr	x23, [x23, _None@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #68]
	bl	_XOpenDisplay
Lloh11:
	adrp	x21, _dpy@GOTPAGE
Lloh12:
	ldr	x21, [x21, _dpy@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_15
; %bb.1:
	add	x1, sp, #56
	add	x2, sp, #52
	bl	_glXQueryExtension
	cbz	w0, LBB0_15
; %bb.2:
	ldr	w8, [x19]
Lloh13:
	adrp	x22, _vi@GOTPAGE
Lloh14:
	ldr	x22, [x22, _vi@GOTPAGEOFF]
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.3:
	ldr	x0, [x21]
	add	x3, sp, #32
	mov	w1, #0
	mov	x2, #0
	bl	_XGetVisualInfo
Lloh15:
	adrp	x20, _vis@GOTPAGE
Lloh16:
	ldr	x20, [x20, _vis@GOTPAGEOFF]
	str	x0, [x20]
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x24, #0
	mov	w25, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x0, x24]
	bl	_XVisualIDFromVisual
	ldr	w8, [x19]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x24
	str	x8, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [sp, #32]
	cmp	x25, x8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	add	x24, x24, #12
	add	x25, x25, #1
	b	LBB0_5
LBB0_9:
	ldr	x1, [x22]
	cbnz	x1, LBB0_12
	b	LBB0_15
LBB0_10:
	ldr	x20, [x21]
	mov	x0, x20
	bl	_DefaultScreen
	mov	x1, x0
	add	x2, sp, #60
	mov	x0, x20
	bl	_glXChooseVisual
	str	x0, [x22]
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x0]
	bl	_XVisualIDFromVisual
	str	w0, [x19]
	ldr	x1, [x22]
LBB0_12:
	ldr	x0, [x21]
	ldr	w2, [x23]
Lloh17:
	adrp	x8, _True@GOTPAGE
Lloh18:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_glXCreateContext
Lloh20:
	adrp	x20, _ctx@GOTPAGE
Lloh21:
	ldr	x20, [x20, _ctx@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x19, [x21]
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_RootWindow
	mov	x1, x0
	ldr	x8, [x22]
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _AllocNone@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AllocNone@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_XCreateColormap
Lloh25:
	adrp	x8, _cmap@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cmap@GOTPAGEOFF]
Lloh27:
	str	w0, [x8]
	str	xzr, [sp, #40]
	str	w0, [sp, #32]
	ldr	x19, [x21]
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_RootWindow
	mov	x1, x0
	ldr	x8, [x22]
Lloh28:
	adrp	x9, _InputOutput@GOTPAGE
Lloh29:
	ldr	x9, [x9, _InputOutput@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _CWBorderPixel@GOTPAGE
Lloh32:
	ldr	x10, [x10, _CWBorderPixel@GOTPAGEOFF]
	ldp	w8, w7, [x8]
Lloh33:
	ldr	w10, [x10]
Lloh34:
	adrp	x11, _CWColormap@GOTPAGE
Lloh35:
	ldr	x11, [x11, _CWColormap@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
	orr	w10, w11, w10
	add	x11, sp, #32
	str	x11, [sp, #16]
	stp	w8, w10, [sp, #4]
	str	w9, [sp]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_XCreateWindow
	mov	x1, x0
Lloh37:
	adrp	x8, _wnd@GOTPAGE
Lloh38:
	ldr	x8, [x8, _wnd@GOTPAGEOFF]
Lloh39:
	str	w0, [x8]
	ldr	x0, [x21]
	ldr	x2, [x20]
	bl	_glXMakeCurrent
	cbz	w0, LBB0_15
; %bb.14:
Lloh40:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh42:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldr	x8, [sp, #72]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GLX_RGBA,4,2                   ; @GLX_RGBA
	.comm	_GLX_DOUBLEBUFFER,4,2           ; @GLX_DOUBLEBUFFER
	.comm	_None,4,2                       ; @None
	.comm	_dpy,8,3                        ; @dpy
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_vi,8,3                         ; @vi
	.comm	_vis,8,3                        ; @vis
	.comm	_True,4,2                       ; @True
	.comm	_ctx,8,3                        ; @ctx
	.comm	_AllocNone,4,2                  ; @AllocNone
	.comm	_cmap,4,2                       ; @cmap
	.comm	_InputOutput,4,2                ; @InputOutput
	.comm	_CWBorderPixel,4,2              ; @CWBorderPixel
	.comm	_CWColormap,4,2                 ; @CWColormap
	.comm	_wnd,4,2                        ; @wnd
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
.subsections_via_symbols
