//
// GameStatsManager::processOnlineChests from 0x10033fc58 to 0x10033fd34 (220 bytes)
//
// 1 xrefs:
// > GameStatsManager::removeErrorFromSpecialChests @ 0x100335c10
//
// 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 __fastcall GameStatsManager::processOnlineChests(GameStatsManager *a1)
{
cocos2d::CCArray *v2; // x20
unsigned int v3; // w21
cocos2d::CCString *v4; // x0
char *CString; // x0
__int64 v6; // x22
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
__int64 v8; // [xsp+10h] [xbp-40h]
void *v9[2]; // [xsp+18h] [xbp-38h] BYREF
__int64 v10; // [xsp+28h] [xbp-28h]
v2 = cocos2d::CCDictionary::allKeys(a1->m_wraithChests);
if ( (unsigned int)sub_10024A36C((__int64)v2) )
{
v3 = 0;
do
{
v4 = cocos2d::CCArray::stringAtIndex(v2, v3);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(v9, CString);
v6 = cocos2d::CCDictionary::objectForKey_1(a1->m_miscChests, v9);
if ( SHIBYTE(v10) < 0 )
{
sub_1000097D0(__p, v9[0], (unsigned __int64)v9[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v9;
v8 = v10;
}
GameStatsManager::linkSpecialChestUnlocks((__int64)a1, v6, (__int128 *)__p);
if ( SHIBYTE(v8) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v10) < 0 )
operator delete(v9[0]);
++v3;
}
while ( v3 < (unsigned int)sub_10024A36C((__int64)v2) );
}
}