//
// GameStatsManager::hasPendingUserCoin from 0x51729c to 0x5172fa (94 bytes)
//
// 8 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x4308ce
// > PauseLayer::customSetup @ 0x491b78
// > LevelInfoLayer::updateLabelValues @ 0x49c32a
// > GameLevelManager::getLevelLeaderboard @ 0x4bdce4
// > GameStatsManager::checkCoinsForLevel @ 0x52941e
// > EndLevelLayer::customSetup @ 0x536d64
// > GJBaseGameLayer::hasUniqueCoin @ 0x58f230
// > GJBaseGameLayer::processItems @ 0x59c340
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:43 +0000
//
int __fastcall GameStatsManager::hasPendingUserCoin(GameStatsManager *this, const char *a2)
{
int v3; // r7
size_t v4; // r0
int v5; // r6
int result; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v3 = *((_DWORD *)this + 105);
memset(v7, 0, sizeof(v7));
v4 = strlen(a2);
std::string::__init(v7, a2, v4);
v5 = cocos2d::CCDictionary::objectForKey(v3, v7);
std::string::~string((int)v7);
result = v5;
if ( v5 )
return 1;
return result;
}