//
// cocos2d::CCShaderCache::sharedShaderCache from 0xb12cdc to 0xb12d54 (120 bytes)
//
// 23 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit @ 0x4eb808
// > CCSpriteWithHue::initShader @ 0x5bc774
// > CCSpriteWithHue::initShader @ 0x5bc89c
// > ShaderLayer::setupShader @ 0x9f727c
// > ShaderLayer::setupShader @ 0x9f7648
// > cocos2d::CCAtlasNode::initWithTexture @ 0xaca460
// > sub_AD7B20 @ 0xad7b2c
// > cocos2d::ccDrawInit @ 0xad7bb4
// > cocos2d::CCDrawNode::init @ 0xad90cc
// > cocos2d::CCGridBase::initWithSize @ 0xadbf20
// > cocos2d::CCLabelTTF::initWithString @ 0xae9998
// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0xae9b88
// > cocos2d::CCLayerColor::initWithColor @ 0xaeb000
// > cocos2d::CCClippingNode::visit @ 0xaf70d4
// > cocos2d::CCMotionStreak::initWithFade @ 0xaf7c54
// > cocos2d::CCProgressTimer::initWithSprite @ 0xaf91e8
// > cocos2d::CCParticleBatchNode::initWithTexture @ 0xb02080
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0xb03950
// > cocos2d::CCSprite::initWithTexture @ 0xb16138
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0xb18284
// > cocos2d::CCTexture2D::initWithData @ 0xb31a80
// > cocos2d::CCTMXLayer::parseInternalProperties @ 0xb3888c
// > ??> @ 0x855f0
//
// 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::CCShaderCache *cocos2d::CCShaderCache::sharedShaderCache()
{
cocos2d::CCShaderCache *v0; // x19
cocos2d::CCShaderCache *v2; // x21
v0 = (cocos2d::CCShaderCache *)qword_1245A70;
if ( !qword_1245A70 )
{
v2 = (cocos2d::CCShaderCache *)operator new(0x40u);
cocos2d::CCShaderCache::CCShaderCache(v2);
qword_1245A70 = (__int64)v2;
if ( cocos2d::CCShaderCache::init(v2) )
{
return (cocos2d::CCShaderCache *)qword_1245A70;
}
else if ( qword_1245A70 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1245A70 + 16LL))(qword_1245A70);
qword_1245A70 = 0;
}
}
return v0;
}