//
// GameStatsManager::processOnlineChests from 0x41d00c to 0x41d09e (146 bytes)
//
// 1 xrefs:
// > GameStatsManager::removeErrorFromSpecialChests @ 0x41d0be
//
// 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
//
void GameStatsManager::processOnlineChests(GameStatsManager *a1)
{
unsigned int v2; // r7
cocos2d::CCArray *v3; // r9
cocos2d::CCString *v4; // r0
char *CString; // r0
_DWORD *v6; // r10
std::string v7; // [sp+4h] [bp-Ch] BYREF
char v8; // [sp+8h] [bp-8h] BYREF
v2 = 0;
v3 = cocos2d::CCDictionary::allKeys(a1->m_wraithChests);
while ( v2 < cocos2d::CCArray::count(v3) )
{
v4 = cocos2d::CCArray::stringAtIndex(v3, v2);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)&v7, CString);
v6 = (_DWORD *)cocos2d::CCDictionary::objectForKey(a1->m_miscChests, &v7);
sub_775C20(&v8);
GameStatsManager::linkSpecialChestUnlocks(a1, v6, (cocos2d::CCString *)&v8);
++v2;
sub_774008(&v8);
sub_774008(&v7);
}
}