//
// cocos2d::CCShaderCache::sharedShaderCache from 0x1001e4960 to 0x1001e49d7 (119 bytes)
//
// 32 xrefs:
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x10015587a
// > cocos2d::ccDrawInit @ 0x1001eb51d
// > cocos2d::ccDrawPoint @ 0x1001eb5d2
// > cocos2d::ccDrawPoints @ 0x1001eb6e5
// > cocos2d::ccDrawLines @ 0x1001eb7f5
// > cocos2d::ccDrawLine @ 0x1001eb918
// > cocos2d::ccDrawSolidPoly @ 0x1001ebbe0
// > cocos2d::ccDrawPoly @ 0x1001ebcdb
// > cocos2d::ccDrawCircle @ 0x1001ebe0c
// > cocos2d::ccDrawCircleSegment @ 0x1001ec280
// > cocos2d::ccDrawFilledCircle @ 0x1001ec6ae
// > cocos2d::ccDrawQuadBezier @ 0x1001eca74
// > cocos2d::ccDrawCardinalSpline @ 0x1001ecc85
// > cocos2d::ccDrawCubicBezier @ 0x1001ecf2d
// > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1002443bf
// > cocos2d::CCSprite::initWithTexture @ 0x100273dd3
// > cocos2d::CCAtlasNode::initWithTexture @ 0x1003163b5
// > cocos2d::CCLabelTTF::initWithString @ 0x1003a6ae9
// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x1003a6cdb
// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x1003a6db0
// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x1003b1f56
// > ShaderLayer::setupShader @ 0x1003b3c6f
// > ShaderLayer::setupShader @ 0x1003b3cbe
// > cocos2d::CCTexture2D::initWithData @ 0x10046cec8
// > cocos2d::CCLayerColor::initWithColor_1 @ 0x1004ac19e
// > cocos2d::CCGridBase::initWithSize @ 0x1004de7ee
// > cocos2d::CCMotionStreak::initWithFade @ 0x1005a3b98
// > CCSpriteWithHue::initShader @ 0x1006c3110
// > CCSpriteWithHue::initShader @ 0x1006c31dd
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x1006d9b1f
// > cocos2d::CCProgressTimer::initWithSprite @ 0x1006dbd59
// > cocos2d::CCDrawNode::init @ 0x1006ed98a
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:26:29 +0000
//
__int64 cocos2d::CCShaderCache::sharedShaderCache()
{
__int64 result; // rax
_QWORD *v1; // rbx
void *v2; // r14
result = qword_100BE14C8;
if ( !qword_100BE14C8 )
{
v1 = operator new(0x40u);
cocos2d::CCObject::CCObject(v1);
*v1 = off_100AE00A0;
v1[7] = 0;
qword_100BE14C8 = (__int64)v1;
v2 = operator new(0x48u);
cocos2d::CCDictionary::CCDictionary(v2);
v1[7] = v2;
cocos2d::CCShaderCache::loadDefaultShaders(v1);
return qword_100BE14C8;
}
return result;
}