//
// GJGameLevel::getCoinKey from 0x701d1c to 0x701da0 (132 bytes)
//
// 27 xrefs:
// > GameManager::verifySyncedCoins @ 0x5e9fe0
// > GameManager::verifySyncedCoins @ 0x5ea00c
// > GameManager::verifySyncedCoins @ 0x5ea038
// > GameManager::verifySyncedCoins @ 0x5ea120
// > GameManager::verifySyncedCoins @ 0x5ea14c
// > GameManager::verifySyncedCoins @ 0x5ea178
// > GameManager::verifyCoinUnlocks @ 0x5f514c
// > GameManager::verifyCoinUnlocks @ 0x5f5178
// > GameManager::verifyCoinUnlocks @ 0x5f51a4
// > GameManager::verifyCoinUnlocks @ 0x5f70a4
// > GameManager::verifyCoinUnlocks @ 0x5f70d0
// > GameManager::verifyCoinUnlocks @ 0x5f70fc
// > LevelCell::loadCustomLevelCell @ 0x610730
// > LevelInfoLayer::updateLabelValues @ 0x6d9f0c
// > GameLevelManager::getLevelLeaderboard @ 0x720afc
// > GameLevelManager::getLevelLeaderboard @ 0x720b4c
// > LevelPage::updateDynamicPage @ 0x79f524
// > GameStatsManager::getCollectedCoinsForLevel @ 0x7a2c80
// > GameStatsManager::checkCoinsForLevel @ 0x7ba2e4
// > EndLevelLayer::customSetup @ 0x7d6390
// > EndLevelLayer::customSetup @ 0x7d67c8
// > EndLevelLayer::customSetup @ 0x7d67ec
// > GJBaseGameLayer::processItems @ 0x85a540
// > GJBaseGameLayer::processItems @ 0x85a5e0
// > GJBaseGameLayer::hasUniqueCoin @ 0x85a6e4
// > LevelAreaInnerLayer::init @ 0xa30e78
// > ??> @ 0x46b90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const char *GJGameLevel::getCoinKey(GJGameLevel *a1, int a2)
{
int random; // w3
cocos2d::CCString *v3; // x0
if ( a1->m_dailyID.random - a1->m_dailyID.seed > 0 )
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i_%i",
(const char *)(unsigned int)(a1->m_levelID.random - a1->m_levelID.seed),
(unsigned int)a2);
}
else
{
random = a1->m_levelID.random;
if ( a1->m_gauntletLevel )
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i_g",
(const char *)(unsigned int)(random - a1->m_levelID.seed),
(unsigned int)a2);
else
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i",
(const char *)(unsigned int)(random - a1->m_levelID.seed),
(unsigned int)a2);
}
return cocos2d::CCString::getCString(v3);
}