	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glewDestroyContext             ## -- Begin function glewDestroyContext
	.p2align	4, 0x90
_glewDestroyContext:                    ## @glewDestroyContext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_dpy@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	callq	_glXDestroyContext
	movq	(%rbx), %rdi
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	_wnd@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	callq	_XDestroyWindow
	movq	(%rbx), %rdi
LBB0_6:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movq	_cmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	callq	_XFreeColormap
LBB0_9:
	movq	_vis@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.10:
	movq	_vi@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
LBB0_11:
	callq	_XFree
LBB0_12:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.14:
	popq	%rbx
	popq	%rbp
	jmp	_XCloseDisplay                  ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dpy,8,3                        ## @dpy
	.comm	_ctx,8,3                        ## @ctx
	.comm	_wnd,8,3                        ## @wnd
	.comm	_cmap,8,3                       ## @cmap
	.comm	_vis,8,3                        ## @vis
	.comm	_vi,8,3                         ## @vi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glewDestroyContext             ; -- Begin function glewDestroyContext
	.p2align	2
_glewDestroyContext:                    ; @glewDestroyContext
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _dpy@GOTPAGE
Lloh1:
	ldr	x19, [x19, _dpy@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _ctx@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_glXDestroyContext
	ldr	x0, [x19]
LBB0_2:
Lloh5:
	adrp	x8, _wnd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wnd@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:
	bl	_XDestroyWindow
	ldr	x0, [x19]
LBB0_4:
Lloh8:
	adrp	x8, _cmap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cmap@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	b.eq	LBB0_6
; %bb.5:
	bl	_XFreeColormap
LBB0_6:
Lloh11:
	adrp	x8, _vis@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vis@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	cbnz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _vi@GOTPAGE
Lloh15:
	ldr	x8, [x8, _vi@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	cbz	x0, LBB0_9
LBB0_8:
	bl	_XFree
LBB0_9:
	ldr	x0, [x19]
	cbz	x0, LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_XCloseDisplay
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_dpy,8,3                        ; @dpy
	.comm	_ctx,8,3                        ; @ctx
	.comm	_wnd,8,3                        ; @wnd
	.comm	_cmap,8,3                       ; @cmap
	.comm	_vis,8,3                        ; @vis
	.comm	_vi,8,3                         ; @vi
.subsections_via_symbols
