//
// cocos2d::CCEGLView::sharedOpenGLView from 0x10012a810 to 0x10012a888 (120 bytes)
//
// 14 xrefs:
// > GameToolbox::preVisitWithClippingRect @ 0x100044210
// > GameToolbox::preVisitWithClipRect @ 0x100044254
// > cocos2d::CCDirector::updateScreenScale @ 0x100175c10
// > -[CustomUITextField textRectForBounds:] @ 0x100235afc
// > AppDelegate::setupGLView @ 0x1002691f8
// > AppDelegate::setupGLView @ 0x10026920c
// > AppDelegate::setupGLView @ 0x100269240
// > CCScrollLayerExt::preVisitWithClippingRect @ 0x100301898
// > DungeonBarsSprite::visit @ 0x100311a40
// > -[EAGLView touchesBegan:withEvent:] @ 0x10041b1c8
// > -[EAGLView touchesMoved:withEvent:] @ 0x10041b384
// > -[EAGLView touchesEnded:withEvent:] @ 0x10041b540
// > -[EAGLView touchesCancelled:withEvent:] @ 0x10041b6fc
// > -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:] @ 0x10041c03c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCEGLView *__fastcall cocos2d::CCEGLView::sharedOpenGLView()
{
unsigned __int8 v0; // w8
v0 = atomic_load((unsigned __int8 *)&byte_10086B3D8);
if ( (v0 & 1) == 0 && __cxa_guard_acquire((__guard *)&byte_10086B3D8) )
{
cocos2d::CCEGLView::CCEGLView(flt_10086B360);
__cxa_atexit((void (__fastcall *)(void *))j_nullsub_151, flt_10086B360, (void *)&_mh_execute_header);
__cxa_guard_release((__guard *)&byte_10086B3D8);
}
return (cocos2d::CCEGLView *)flt_10086B360;
}