//
// cocos2d::CCShaderCache::addProgram from 0x7efc28 to 0x7efc78 (80 bytes)
//
// 2 xrefs:
// > CCSpriteWithHue::initShader @ 0x3f3002
// > ShaderLayer::setupShader @ 0x684eb0
//
// 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::addProgram(
cocos2d::CCShaderCache *this,
cocos2d::CCGLProgram *a2,
const char *a3,
int a4)
{
int v6; // r8
size_t v7; // r0
cocos2d::CCShaderCache *v9; // [sp+0h] [bp-10h] BYREF
cocos2d::CCGLProgram *v10; // [sp+4h] [bp-Ch]
const char *v11; // [sp+8h] [bp-8h]
int v12; // [sp+Ch] [bp-4h]
v9 = this;
v10 = a2;
v11 = a3;
v12 = a4;
v6 = *((_DWORD *)this + 13);
v9 = nullptr;
v10 = nullptr;
v11 = nullptr;
v7 = strlen(a3);
std::string::__init((int *)&v9, a3, v7);
cocos2d::CCDictionary::setObject(v6, a2, (int)&v9);
return std::string::~string((int)&v9);
}