	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_Shutdown                 ## -- Begin function GLimp_Shutdown
	.p2align	4, 0x90
_GLimp_Shutdown:                        ## @GLimp_Shutdown
	.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	_egl_display@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	callq	_eglMakeCurrent
	movl	%eax, %edi
	callq	_RETURN_IF_EGL_ERROR
	movl	(%rbx), %edi
	movq	_egl_surface@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eglDestroySurface
	movl	%eax, %edi
	callq	_RETURN_IF_EGL_ERROR
	movl	(%rbx), %edi
	movq	_egl_context@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eglDestroyContext
	movl	%eax, %edi
	callq	_RETURN_IF_EGL_ERROR
	movl	(%rbx), %edi
	callq	_TerminateInitializedEGLDisplay
	movl	%eax, %edi
	callq	_RETURN_IF_EGL_ERROR
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ShutDownEGLSubsystem           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_egl_display,4,2                ## @egl_display
	.comm	_EGL_NO_SURFACE,4,2             ## @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ## @EGL_NO_CONTEXT
	.comm	_egl_surface,4,2                ## @egl_surface
	.comm	_egl_context,4,2                ## @egl_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_Shutdown                 ; -- Begin function GLimp_Shutdown
	.p2align	2
_GLimp_Shutdown:                        ; @GLimp_Shutdown
	.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, _egl_display@GOTPAGE
Lloh1:
	ldr	x19, [x19, _egl_display@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _EGL_NO_CONTEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EGL_NO_CONTEXT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x2, x1
	bl	_eglMakeCurrent
	bl	_RETURN_IF_EGL_ERROR
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _egl_surface@GOTPAGE
Lloh9:
	ldr	x8, [x8, _egl_surface@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_eglDestroySurface
	bl	_RETURN_IF_EGL_ERROR
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _egl_context@GOTPAGE
Lloh12:
	ldr	x8, [x8, _egl_context@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_eglDestroyContext
	bl	_RETURN_IF_EGL_ERROR
	ldr	w0, [x19]
	bl	_TerminateInitializedEGLDisplay
	bl	_RETURN_IF_EGL_ERROR
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ShutDownEGLSubsystem
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_egl_display,4,2                ; @egl_display
	.comm	_EGL_NO_SURFACE,4,2             ; @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ; @EGL_NO_CONTEXT
	.comm	_egl_surface,4,2                ; @egl_surface
	.comm	_egl_context,4,2                ; @egl_context
.subsections_via_symbols
