//
// GJGameLevel::getCoinKey from 0x805108 to 0x805184 (124 bytes)
//
// 3 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x7464e4
// > GJGameLevel::getCoinKey @ 0x805190
// > ??> @ 0xa9d80
//
// This function is hookable on this platform (idp: arm, 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:54:45 +0000
//
__int64 __fastcall GJGameLevel::getCoinKey(GJGameLevel *this, unsigned int a2, int a3)
{
int v3; // w3
cocos2d::CCString *v5; // x0
if ( a3 <= 0 )
{
v3 = *((_DWORD *)this + 82);
if ( *((_BYTE *)this + 649) )
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i_g",
(const char *)(unsigned int)(v3 - *((_DWORD *)this + 83)),
a2);
else
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i",
(const char *)(unsigned int)(v3 - *((_DWORD *)this + 83)),
a2);
}
else
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i_%i",
(const char *)(unsigned int)(*((_DWORD *)this + 82) - *((_DWORD *)this + 83)),
a2,
(unsigned int)a3);
}
return cocos2d::CCString::getCString(v5);
}