//
// GJGameLevel::getCoinKey from 0x140264630 to 0x140264691 (97 bytes)
//
// 19 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x14014b55e
// > EndLevelLayer::customSetup @ 0x1402054ac
// > EndLevelLayer::customSetup @ 0x140205515
// > EndLevelLayer::customSetup @ 0x140205571
// > GameLevelManager::updateLevelRewards @ 0x14021dfb3
// > GameLevelManager::getLevelLeaderboard @ 0x140238b98
// > GameLevelManager::getLevelLeaderboard @ 0x140238be7
// > GJGameLevel::getCoinKey_1 @ 0x14026461e
// > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14a0
// > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14c9
// > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14f7
// > GJBaseGameLayer::processItems @ 0x14031d89f
// > GJBaseGameLayer::processItems @ 0x14031dac3
// > GJBaseGameLayer::hasUniqueCoin @ 0x14031dcf2
// > LevelAreaInnerLayer::init @ 0x1403dffb3
// > LevelInfoLayer::updateLabelValues @ 0x140425d03
// > LevelPage::updateDynamicPage @ 0x140444516
// > PauseLayer::customSetup @ 0x1404d83d5
// > ??> @ 0x14091c874
//
// 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:28:49 +0000
//
const char *__fastcall GJGameLevel::getCoinKey(__int64 a1, unsigned int a2, int a3)
{
__int64 v4; // r8
__int64 v5; // rdx
cocos2d::CCString *v6; // rax
bool v8; // zf
const char *v9; // rcx
cocos2d::CCString *v10; // rax
v4 = a2;
v5 = (unsigned int)(*(_DWORD *)(a1 + 328) - *(_DWORD *)(a1 + 332));
if ( a3 <= 0 )
{
v8 = *(_BYTE *)(a1 + 721) == 0;
v9 = "%i_%i_g";
if ( v8 )
v9 = "%i_%i";
v10 = cocos2d::CCString::createWithFormat(v9, v5, v4);
return cocos2d::CCString::getCString(v10);
}
else
{
v6 = cocos2d::CCString::createWithFormat("%i_%i_%i", v5, v4, a3);
return cocos2d::CCString::getCString(v6);
}
}