//
// GJGameLevel::getCoinKey from 0x3c5584 to 0x3c55c8 (68 bytes)
//
// 26 xrefs:
// > GameManager::verifySyncedCoins @ 0x32150a
// > GameManager::verifySyncedCoins @ 0x321524
// > GameManager::verifySyncedCoins @ 0x32153e
// > GameManager::verifySyncedCoins @ 0x32157c
// > GameManager::verifySyncedCoins @ 0x321596
// > GameManager::verifySyncedCoins @ 0x3215b0
// > GameManager::verifyCoinUnlocks @ 0x32670c
// > GameManager::verifyCoinUnlocks @ 0x326726
// > GameManager::verifyCoinUnlocks @ 0x326740
// > GameManager::verifyCoinUnlocks @ 0x32677e
// > GameManager::verifyCoinUnlocks @ 0x326798
// > GameManager::verifyCoinUnlocks @ 0x3267b2
// > LevelCell::loadCustomLevelCell @ 0x333546
// > LevelInfoLayer::updateLabelValues @ 0x3b3258
// > GameLevelManager::getLevelLeaderboard @ 0x3d0f6a
// > GameLevelManager::getLevelLeaderboard @ 0x3d0f82
// > LevelPage::updateDynamicPage @ 0x40b26c
// > GameStatsManager::getCollectedCoinsForLevel @ 0x40cdfe
// > GameStatsManager::checkCoinsForLevel @ 0x41bcbc
// > EndLevelLayer::customSetup @ 0x429e12
// > EndLevelLayer::customSetup @ 0x42a03a
// > EndLevelLayer::customSetup @ 0x42a0a2
// > GJBaseGameLayer::processItems @ 0x46f410
// > GJBaseGameLayer::processItems @ 0x46f43c
// > GJBaseGameLayer::hasUniqueCoin @ 0x46f528
// > LevelAreaInnerLayer::init @ 0x56d3ee
//
// 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; // r4
int seed; // r1
cocos2d::CCString *v5; // r0
char *v6; // r0
random = a1->m_levelID.random;
seed = a1->m_levelID.seed;
if ( a1->m_dailyID.random - a1->m_dailyID.seed <= 0 )
{
if ( a1->m_gauntletLevel )
v6 = "%i_%i_g";
else
v6 = "%i_%i";
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)v6,
(const char *)(random - seed),
a2);
}
else
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i_%i_%i",
(const char *)(random - seed),
a2);
}
return cocos2d::CCString::getCString(v5);
}