	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DestroyContext                 ## -- Begin function DestroyContext
	.p2align	4, 0x90
_DestroyContext:                        ## @DestroyContext
	.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	%rdi, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	callq	_glXDestroyContext
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
LBB0_3:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	callq	_XDestroyWindow
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
LBB0_5:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	callq	_XFreeColormap
LBB0_7:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_XFree
LBB0_9:
	movq	16(%rbx), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	popq	%rbx
	popq	%rbp
	jmp	_XCloseDisplay                  ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DestroyContext                 ; -- Begin function DestroyContext
	.p2align	2
_DestroyContext:                        ; @DestroyContext
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_3
; %bb.2:
	bl	_glXDestroyContext
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
LBB0_3:
	ldr	x1, [x19]
	cbz	x1, LBB0_5
; %bb.4:
	bl	_XDestroyWindow
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
LBB0_5:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_7
; %bb.6:
	bl	_XFreeColormap
LBB0_7:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_XFree
LBB0_9:
	ldr	x0, [x19, #16]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
