//
// cocos2d::CCShaderCache::sharedShaderCache from 0x7efaa0 to 0x7efad6 (54 bytes)
//
// 21 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit @ 0x3941b2
// > CCSpriteWithHue::initShader @ 0x3f2f52
// > CCSpriteWithHue::initShader @ 0x3f2fde
// > ShaderLayer::setupShader @ 0x684e82
// > ShaderLayer::setupShader @ 0x684ea4
// > cocos2d::CCAtlasNode::initWithTexture @ 0x7c314c
// > cocos2d::ccDrawInit @ 0x7cb1e2
// > cocos2d::CCDrawNode::init @ 0x7cc120
// > cocos2d::CCGridBase::initWithSize @ 0x7ce46a
// > cocos2d::CCLabelTTF::initWithString @ 0x7d69d2
// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x7d6b40
// > cocos2d::CCLayerColor::initWithColor @ 0x7d7962
// > cocos2d::CCClippingNode::visit @ 0x7de7b4
// > cocos2d::CCMotionStreak::initWithFade @ 0x7decfa
// > cocos2d::CCProgressTimer::initWithSprite @ 0x7e01d8
// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x7e59c6
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x7e692e
// > cocos2d::CCSprite::initWithTexture @ 0x7f186c
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x7f2cb6
// > cocos2d::CCTexture2D::initWithData @ 0x7ff8f2
// > cocos2d::CCTMXLayer::parseInternalProperties @ 0x80496c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:03 +0000
//
int __fastcall cocos2d::CCShaderCache::sharedShaderCache(cocos2d::CCShaderCache *this)
{
cocos2d::CCShaderCache *v1; // r5
if ( !dword_D2F9E0 )
{
v1 = (cocos2d::CCShaderCache *)operator new(0x38u);
cocos2d::CCShaderCache::CCShaderCache(v1);
dword_D2F9E0 = (int)v1;
if ( !cocos2d::CCShaderCache::init(v1) )
{
if ( dword_D2F9E0 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)dword_D2F9E0 + 8))(dword_D2F9E0);
dword_D2F9E0 = 0;
}
}
}
return dword_D2F9E0;
}