//
// cocos2d::CCShaderCache::programForKey from 0x18008c1a0 to 0x18008c240 (160 bytes)
//
// 28 xrefs:
// > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cce
// > cocos2d::ccDrawInit @ 0x180011fbc
// > cocos2d::CCDrawNode::init @ 0x180015213
// > cocos2d::CCGridBase::initWithSize @ 0x180023bfe
// > cocos2d::CCLabelTTF::init @ 0x1800501fc
// > cocos2d::CCLabelTTF::initWithString @ 0x180050354
// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x180050448
// > cocos2d::CCLayerColor::initWithColor @ 0x180052016
// > cocos2d::CCClippingNode::visit @ 0x18005e818
// > cocos2d::CCMotionStreak::initWithFade @ 0x18005f077
// > cocos2d::CCProgressTimer::initWithSprite @ 0x180060146
// > cocos2d::CCParticleBatchNode::initWithTexture @ 0x180063bab
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006cc12
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c284
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c300
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c37c
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c3e3
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c44a
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c4b1
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c52d
// > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c57f
// > cocos2d::CCSprite::initWithTexture @ 0x18008eff9
// > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008f703
// > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x1800919a7
// > cocos2d::CCTexture2D::initWithData @ 0x1800a93d0
// > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800afeba
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfbf8
//
// 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 11:22:06 +0000
//
// Alternative name is '?animationByName@CCAnimationCache@cocos2d@@QEAAPEAVCCAnimation@2@PEBD@Z'
// Hidden C++ exception states: #wind=1
struct cocos2d::CCGLProgram *__fastcall cocos2d::CCShaderCache::programForKey(cocos2d::CCShaderCache *this, char *a2)
{
__int64 v3; // rbx
void *v4; // r8
void *Block[3]; // [rsp+30h] [rbp-38h] BYREF
unsigned __int64 v7; // [rsp+48h] [rbp-20h]
sub_180005A10(Block, a2);
v3 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 7), (__int64)Block);
if ( v7 > 0xF )
{
v4 = Block[0];
if ( v7 + 1 >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v4);
}
return (struct cocos2d::CCGLProgram *)v3;
}