//
// cocos2d::CCEGLView::end from 0x1005022c0 to 0x100502324 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b64b08
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:31:30 +0000
//
id __fastcall cocos2d::CCEGLView::end(__int64 a1)
{
id v1; // rax
id v2; // rax
id result; // rax
v1 = +[CCDirectorCaller sharedDirectorCaller](&OBJC_CLASS___CCDirectorCaller, "sharedDirectorCaller");
objc_msgSend(v1, "end");
v2 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
result = objc_msgSend(v2, "removeFromSuperview");
if ( a1 )
return (id)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 8LL))(a1);
return result;
}