//
// GameStatsManager::processOnlineChests from 0x528bf4 to 0x528c9c (168 bytes)
//
// 1 xrefs:
// > GameStatsManager::removeErrorFromSpecialChests @ 0x528cb6
//
// 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:57 +0000
//
unsigned int __fastcall GameStatsManager::processOnlineChests(cocos2d::CCDictionary **this)
{
unsigned int v2; // r7
cocos2d::CCArray *v3; // r10
unsigned int result; // r0
cocos2d::CCString *v5; // r0
const char *CString; // r0
const char *v7; // r11
size_t v8; // r0
int v9; // r11
int v10[3]; // [sp+4h] [bp-20h] BYREF
int v11[3]; // [sp+10h] [bp-14h] BYREF
v2 = 0;
v3 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*(this + 128));
while ( 1 )
{
result = cocos2d::CCArray::count(v3);
if ( v2 >= result )
break;
v5 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v3, v2);
CString = (const char *)cocos2d::CCString::getCString(v5);
memset(v10, 0, sizeof(v10));
v7 = CString;
v8 = strlen(CString);
std::string::__init(v10, v7, v8);
v9 = cocos2d::CCDictionary::objectForKey(*(this + 126), v10);
std::string::basic_string(v11, (int)v10);
GameStatsManager::linkSpecialChestUnlocks((unsigned int)this, v9, (unsigned __int8 *)v11);
++v2;
std::string::~string((int)v11);
std::string::~string((int)v10);
}
return result;
}