//
// GJGameLevel::getCoinKey from 0x4ab388 to 0x4ab3c6 (62 bytes)
//
// 2 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x430840
// > GJGameLevel::getCoinKey @ 0x4ab3de
//
// 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:49:58 +0000
//
int __fastcall GJGameLevel::getCoinKey(GJGameLevel *this, int a2, int a3)
{
bool v3; // cc
int v6; // r2
int v7; // r1
cocos2d::CCString *v8; // r0
char *v9; // r0
v3 = a3 <= 0;
v6 = *((_DWORD *)this + 68);
v7 = *((_DWORD *)this + 67);
if ( v3 )
{
if ( *((_BYTE *)this + 477) )
v9 = "%i_%i_g";
else
v9 = "%i_%i";
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v9, (const char *)(v7 - v6), a2);
}
else
{
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i_%i",
(const char *)(v7 - v6),
a2,
a3);
}
return cocos2d::CCString::getCString(v8);
}