	.file	"extr_gl.c_gl_finish.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gl_finish
	.type	gl_finish, @function
gl_finish:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rsi, QWORD PTR EGL_NO_SURFACE[rip]
	mov	ecx, DWORD PTR EGL_NO_CONTEXT[rip]
	mov	rdi, QWORD PTR edpy[rip]
	mov	rdx, rsi
	call	eglMakeCurrent@PLT
	mov	esi, DWORD PTR ectxt[rip]
	mov	rdi, QWORD PTR edpy[rip]
	call	eglDestroyContext@PLT
	mov	eax, DWORD PTR EGL_NO_CONTEXT[rip]
	mov	rsi, QWORD PTR esfc[rip]
	mov	rdi, QWORD PTR edpy[rip]
	mov	DWORD PTR ectxt[rip], eax
	call	eglDestroySurface@PLT
	mov	rax, QWORD PTR EGL_NO_SURFACE[rip]
	mov	rdi, QWORD PTR edpy[rip]
	mov	QWORD PTR esfc[rip], rax
	call	eglTerminate@PLT
	mov	rax, QWORD PTR EGL_NO_DISPLAY[rip]
	mov	QWORD PTR edpy[rip], rax
	mov	QWORD PTR gl_es_display[rip], rax
	mov	rax, QWORD PTR esfc[rip]
	mov	QWORD PTR gl_es_surface[rip], rax
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	gl_platform_finish@PLT
	.cfi_endproc
.LFE0:
	.size	gl_finish, .-gl_finish
	.comm	gl_es_surface,8,8
	.comm	gl_es_display,8,8
	.comm	esfc,8,8
	.comm	edpy,8,8
	.comm	ectxt,4,4
	.comm	EGL_NO_SURFACE,8,8
	.comm	EGL_NO_DISPLAY,8,8
	.comm	EGL_NO_CONTEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gl.c_gl_finish.c"
	.text
	.align	2
	.global	gl_finish
	.syntax unified
	.arm
	.fpu softvfp
	.type	gl_finish, %function
gl_finish:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L4
	ldr	r4, .L4+4
	ldr	r2, [r6]
	ldr	r8, .L4+8
	ldr	r7, .L4+12
	mov	r1, r2
	ldr	r3, [r8]
	ldr	r0, [r4]
	bl	eglMakeCurrent
	ldr	r5, .L4+16
	ldr	r1, [r7]
	ldr	r0, [r4]
	bl	eglDestroyContext
	ldr	r3, [r8]
	ldr	r1, [r5]
	ldr	r0, [r4]
	str	r3, [r7]
	bl	eglDestroySurface
	ldr	r3, [r6]
	ldr	r0, [r4]
	str	r3, [r5]
	bl	eglTerminate
	ldr	r3, .L4+20
	ldr	r0, [r5]
	ldr	r3, [r3]
	ldr	r1, .L4+24
	ldr	r2, .L4+28
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	str	r0, [r1]
	str	r3, [r2]
	b	gl_platform_finish
.L5:
	.align	2
.L4:
	.word	EGL_NO_SURFACE
	.word	edpy
	.word	EGL_NO_CONTEXT
	.word	ectxt
	.word	esfc
	.word	EGL_NO_DISPLAY
	.word	gl_es_surface
	.word	gl_es_display
	.size	gl_finish, .-gl_finish
	.comm	gl_es_surface,4,4
	.comm	gl_es_display,4,4
	.comm	esfc,4,4
	.comm	edpy,4,4
	.comm	ectxt,4,4
	.comm	EGL_NO_SURFACE,4,4
	.comm	EGL_NO_DISPLAY,4,4
	.comm	EGL_NO_CONTEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
