//
// cocos2d::CCShaderCache::sharedShaderCache from 0x10012835c to 0x1001283b0 (84 bytes)
//
// 14 xrefs:
// > cocos2d::CCDrawNode::init @ 0x100041f14
// > cocos2d::CCLabelTTF::initWithString @ 0x10006e8a8
// > cocos2d::CCTexture2D::initWithData @ 0x10012d748
// > cocos2d::CCLayerColor::initWithColor_1 @ 0x100149b68
// > cocos2d::CCMotionStreak::initWithFade @ 0x100176e7c
// > CCSpriteWithHue::initShader @ 0x1001a36c0
// > CCSpriteWithHue::initShader @ 0x1001a37a0
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x1001d70b0
// > cocos2d::CCSprite::initWithTexture @ 0x100237908
// > cocos2d::ccDrawInit @ 0x10024c1bc
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x100253318
// > ShaderLayer::setupShader @ 0x10026dcac
// > ShaderLayer::setupShader @ 0x10026dce4
// > cocos2d::CCProgressTimer::initWithSprite @ 0x1003fd6a4
//
// 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 *__fastcall cocos2d::CCShaderCache::sharedShaderCache()
{
cocos2d::CCShaderCache *result; // x0
cocos2d::CCShaderCache *v1; // x19
result = (cocos2d::CCShaderCache *)qword_10086B2C0;
if ( !qword_10086B2C0 )
{
v1 = (cocos2d::CCShaderCache *)operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v1);
v1->__vftable = (cocos2d::CCShaderCache_vtbl *)off_1007910B8;
v1[1].__vftable = nullptr;
qword_10086B2C0 = (__int64)v1;
cocos2d::CCShaderCache::init(v1);
return (cocos2d::CCShaderCache *)qword_10086B2C0;
}
return result;
}