//
// GameStatsManager::removeErrorFromSpecialChests from 0x41d0a4 to 0x41d136 (146 bytes)
//
// 2 xrefs:
// > GameStatsManager::recountSpecialStats @ 0x41d1ae
// > GameStatsManager::dataLoaded @ 0x41de58
//
// 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::removeErrorFromSpecialChests(GameStatsManager *a1)
{
unsigned int v2; // r6
cocos2d::CCArray *v3; // r8
cocos2d::CCString *v4; // r0
char *CString; // r0
std::string v6; // [sp+8h] [bp-Ch] BYREF
v2 = 0;
GameStatsManager::processOnlineChests(a1);
v3 = cocos2d::CCDictionary::allKeys(a1->m_miscChests);
while ( v2 < cocos2d::CCArray::count(v3) )
{
v4 = cocos2d::CCArray::stringAtIndex(v3, v2);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)&v6, CString);
if ( !cocos2d::CCDictionary::objectForKey(a1->m_allSpecialChests, &v6)
&& !cocos2d::CCDictionary::objectForKey(a1->m_wraithChests, &v6) )
{
cocos2d::CCDictionary::removeObjectForKey(a1->m_miscChests);
}
++v2;
sub_774008(&v6);
}
}