//
// cocos2d::CCEGLView::sharedOpenGLView from 0x5e1000 to 0x5e103e (62 bytes)
//
// 17 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit @ 0x2bdaf4
// > CCScrollLayerExt::preVisitWithClippingRect @ 0x2e81d2
// > GameToolbox::preVisitWithClippingRect @ 0x2ebf34
// > GameToolbox::preVisitWithClipRect @ 0x2ebf72
// > AppDelegate::setupGLView @ 0x3078a2
// > AppDelegate::setupGLView @ 0x3078b4
// > AppDelegate::setupGLView @ 0x3078de
// > DungeonBarsSprite::visit @ 0x4ebf32
// > ParticlePreviewLayer::preVisitWithClippingRect @ 0x5351ca
// > cocos2d::extension::CCScrollView::afterDraw @ 0x5a8b1c
// > cocos2d::extension::CCScrollView::beforeDraw @ 0x5a8c62
// > cocos2d::extension::CCScrollView::beforeDraw @ 0x5a8c76
// > cocos2d::extension::CCScrollView::beforeDraw @ 0x5a8d10
// > cocos2d::extension::CCScrollView::beforeDraw @ 0x5a8d3c
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x5a90ba
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x5a90c6
// > cocos2d::CCDirector::updateScreenScale @ 0x5c3512
//
// 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()
{
char v0; // r3
v0 = byte_AC8FA8;
__dmb(0xFu);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_AC8FA8) )
{
cocos2d::CCEGLView::CCEGLView((cocos2d::CCEGLView *)&unk_AC8FAC);
_cxa_guard_release((__guard *)&byte_AC8FA8);
sub_742B94(&unk_AC8FAC, (void (*)(void *))cocos2d::CCEGLView::~CCEGLView);
}
return (cocos2d::CCEGLView *)&unk_AC8FAC;
}