	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_finish                      ## -- Begin function gl_finish
	.p2align	4, 0x90
_gl_finish:                             ## @gl_finish
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_edpy@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rdx, %rsi
	callq	_eglMakeCurrent
	movq	(%rbx), %rdi
	movq	_ectxt@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_eglDestroyContext
	movl	(%r15), %eax
	movl	%eax, (%r12)
	movq	(%rbx), %rdi
	movq	_esfc@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_eglDestroySurface
	movq	(%r14), %rax
	movq	%rax, (%r15)
	movq	(%rbx), %rdi
	callq	_eglTerminate
	movq	_EGL_NO_DISPLAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_gl_es_display@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	_gl_es_surface@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_platform_finish             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_edpy,8,3                       ## @edpy
	.comm	_EGL_NO_SURFACE,8,3             ## @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ## @EGL_NO_CONTEXT
	.comm	_ectxt,4,2                      ## @ectxt
	.comm	_esfc,8,3                       ## @esfc
	.comm	_EGL_NO_DISPLAY,8,3             ## @EGL_NO_DISPLAY
	.comm	_gl_es_display,8,3              ## @gl_es_display
	.comm	_gl_es_surface,8,3              ## @gl_es_surface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_finish                      ; -- Begin function gl_finish
	.p2align	2
_gl_finish:                             ; @gl_finish
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _edpy@GOTPAGE
Lloh1:
	ldr	x19, [x19, _edpy@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _EGL_NO_SURFACE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EGL_NO_SURFACE@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh4:
	adrp	x21, _EGL_NO_CONTEXT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EGL_NO_CONTEXT@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x2, x1
	bl	_eglMakeCurrent
	ldr	x0, [x19]
Lloh6:
	adrp	x22, _ectxt@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ectxt@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_eglDestroyContext
	ldr	w8, [x21]
	str	w8, [x22]
	ldr	x0, [x19]
Lloh8:
	adrp	x21, _esfc@GOTPAGE
Lloh9:
	ldr	x21, [x21, _esfc@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_eglDestroySurface
	ldr	x8, [x20]
	str	x8, [x21]
	ldr	x0, [x19]
	bl	_eglTerminate
Lloh10:
	adrp	x8, _EGL_NO_DISPLAY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EGL_NO_DISPLAY@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _gl_es_display@GOTPAGE
Lloh14:
	ldr	x9, [x9, _gl_es_display@GOTPAGEOFF]
	str	x8, [x19]
Lloh15:
	str	x8, [x9]
	ldr	x8, [x21]
Lloh16:
	adrp	x9, _gl_es_surface@GOTPAGE
Lloh17:
	ldr	x9, [x9, _gl_es_surface@GOTPAGEOFF]
Lloh18:
	str	x8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gl_platform_finish
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_edpy,8,3                       ; @edpy
	.comm	_EGL_NO_SURFACE,8,3             ; @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ; @EGL_NO_CONTEXT
	.comm	_ectxt,4,2                      ; @ectxt
	.comm	_esfc,8,3                       ; @esfc
	.comm	_EGL_NO_DISPLAY,8,3             ; @EGL_NO_DISPLAY
	.comm	_gl_es_display,8,3              ; @gl_es_display
	.comm	_gl_es_surface,8,3              ; @gl_es_surface
.subsections_via_symbols
