//
// cocos2d::CCEGLView::sharedOpenGLView from 0xb0aa08 to 0xb0aa88 (128 bytes)
//
// 18 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit @ 0x4eb844
// > CCScrollLayerExt::preVisitWithClippingRect @ 0x5794cc
// > GameToolbox::preVisitWithClippingRect @ 0x57feb4
// > GameToolbox::preVisitWithClipRect @ 0x57ff20
// > AppDelegate::setupGLView @ 0x5bdf4c
// > AppDelegate::setupGLView @ 0x5bdf60
// > AppDelegate::setupGLView @ 0x5bdf90
// > DungeonBarsSprite::visit @ 0x93aacc
// > ParticlePreviewLayer::preVisitWithClippingRect @ 0x9c9914
// > cocos2d::extension::CCScrollView::afterDraw @ 0xaa606c
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xaa6230
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xaa6258
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xaa62f0
// > cocos2d::extension::CCScrollView::beforeDraw @ 0xaa631c
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0xaa69f0
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0xaa69fc
// > cocos2d::CCDirector::updateScreenScale @ 0xad6a98
// > ??> @ 0x78b58
//
// 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 *cocos2d::CCEGLView::sharedOpenGLView()
{
unsigned __int8 v0; // w0
v0 = atomic_load((unsigned __int8 *)&byte_1245760);
if ( (v0 & 1) != 0 || !_cxa_guard_acquire((__guard *)&byte_1245760) )
return (cocos2d::CCEGLView *)&algn_1245761[7];
cocos2d::CCEGLView::CCEGLView((cocos2d::CCEGLView *)&algn_1245761[7]);
_cxa_guard_release((__guard *)&byte_1245760);
__cxa_atexit((void (*)(void *))cocos2d::CCEGLView::~CCEGLView, &algn_1245761[7], &unk_122F000);
return (cocos2d::CCEGLView *)&algn_1245761[7];
}