//
// GJBaseGameLayer::getParticleKey2 from 0x59ca08 to 0x59ca44 (60 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::unclaimParticle @ 0x59cac6
// > GJBaseGameLayer::claimParticle @ 0x59cbec
// > GJBaseGameLayer::createParticle @ 0x5bed16
//
// 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 11:53:13 +0000
//
int *__fastcall GJBaseGameLayer::getParticleKey2(int *a1, int a2, int a3)
{
const char *v4; // r1
cocos2d::CCString *v5; // r0
const char *CString; // r0
const char *v7; // r5
size_t v8; // r0
if ( (*(_BYTE *)a3 & 1) != 0 )
v4 = *(const char **)(a3 + 8);
else
v4 = (const char *)(a3 + 1);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%s", v4, "#2");
CString = (const char *)cocos2d::CCString::getCString(v5);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v7 = CString;
v8 = strlen(CString);
std::string::__init(a1, v7, v8);
return a1;
}