//
// GameLevelManager::resetAccountComments from 0x1000a6e0c to 0x1000a6ec4 (184 bytes)
//
// 1 xrefs:
// > ProfilePage::onUpdate @ 0x100197948
//
// 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 GameLevelManager::resetAccountComments(GameLevelManager *a1, int a2)
{
int v4; // w22
bool v5; // w24
cocos2d::CCString *v6; // x0
char *CString; // x0
void **v8; // x1
cocos2d::CCArray *StoredOnlineLevels; // x0
void *__p[2]; // [xsp+18h] [xbp-48h] BYREF
char v11; // [xsp+2Fh] [xbp-31h]
v4 = 0;
v5 = 1;
do
{
if ( !v5 )
break;
v6 = (cocos2d::CCString *)sub_100268F4C("a_%i_%i", a2, v4);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(__p, CString);
if ( v11 >= 0 )
v8 = __p;
else
v8 = (void **)__p[0];
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, (const char *)v8);
v5 = StoredOnlineLevels != nullptr;
if ( StoredOnlineLevels )
cocos2d::CCDictionary::removeObjectForKey_1((int)a1->m_storedLevels, (char *)__p);
if ( v11 < 0 )
operator delete(__p[0]);
++v4;
}
while ( v4 != 101 );
}