//
// GameLevelManager::resetAccountComments from 0x4afd1c to 0x4afdb6 (154 bytes)
//
// 1 xrefs:
// > ProfilePage::onUpdate @ 0x5f6584
//
// 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:50:02 +0000
//
int __fastcall GameLevelManager::resetAccountComments(cocos2d::CCDictionary **this, const char *a2, char *a3, int a4)
{
int v4; // r7
const char *AccountCommentKey; // r0
const char *v8; // r4
size_t v9; // r0
const char *v10; // r1
int v11; // r4
int result; // r0
cocos2d::CCDictionary **v13; // [sp+0h] [bp-10h] BYREF
const char *v14; // [sp+4h] [bp-Ch]
char *v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v13 = this;
v14 = a2;
v15 = a3;
v16 = a4;
v4 = 0;
while ( 1 )
{
AccountCommentKey = (const char *)GameLevelManager::getAccountCommentKey((GameLevelManager *)this, a2, v4);
v13 = nullptr;
v14 = nullptr;
v15 = nullptr;
v8 = AccountCommentKey;
v9 = strlen(AccountCommentKey);
std::string::__init((int *)&v13, v8, v9);
v10 = ((unsigned __int8)v13 & 1) != 0 ? v15 : (char *)&v13 + 1;
if ( GameLevelManager::getStoredOnlineLevels((GameLevelManager *)this, v10) )
{
cocos2d::CCDictionary::removeObjectForKey(*(this + 181));
v11 = 1;
}
else
{
v11 = 0;
}
if ( ++v4 == 101 )
break;
result = std::string::~string((int)&v13);
if ( !v11 )
return result;
}
return std::string::~string((int)&v13);
}