//
// GameStatsManager::hasPendingUserCoin from 0x40cce4 to 0x40cd2e (74 bytes)
//
// 7 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x333566
// > LevelInfoLayer::updateLabelValues @ 0x3b3278
// > GameLevelManager::getLevelLeaderboard @ 0x3d0f8a
// > GameStatsManager::checkCoinsForLevel @ 0x41bcc6
// > EndLevelLayer::customSetup @ 0x42a0aa
// > GJBaseGameLayer::processItems @ 0x46f47a
// > GJBaseGameLayer::hasUniqueCoin @ 0x46f55e
//
// 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
//
bool GameStatsManager::hasPendingUserCoin(GameStatsManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_pendingUserCoins; // r6
int v3; // r6
bool result; // r0
std::string v5; // [sp+8h] [bp-8h] BYREF
m_pendingUserCoins = a1->m_pendingUserCoins;
sub_776584((int)&v5, (char *)a2);
v3 = cocos2d::CCDictionary::objectForKey(m_pendingUserCoins, &v5);
sub_774008(&v5);
result = v3;
if ( v3 )
return 1;
return result;
}