//
// GameLevelManager::resetCommentTimersForAccountID from 0x4b14b8 to 0x4b155e (166 bytes)
//
// 2 xrefs:
// > ProfilePage::onUpdate @ 0x5f659e
// > ProfilePage::onUpdate @ 0x5f66ac
//
// 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:03 +0000
//
GameLevelManager *__fastcall GameLevelManager::resetCommentTimersForAccountID(
GameLevelManager *this,
const char *a2,
char *a3,
int a4)
{
int v4; // r6
GameLevelManager *v5; // r8
GameLevelManager *v7; // r0
const char *AccountCommentKey; // r0
const char *v9; // r4
size_t v10; // r0
const char *v11; // r1
const char *v12; // r1
int v13; // r4
GameLevelManager *v14; // [sp+0h] [bp+0h] BYREF
const char *v15; // [sp+4h] [bp+4h]
char *v16; // [sp+8h] [bp+8h]
int v17; // [sp+Ch] [bp+Ch]
v14 = this;
v15 = a2;
v16 = a3;
v17 = a4;
v4 = 0;
v5 = this;
while ( 1 )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState(this);
AccountCommentKey = (const char *)GameLevelManager::getAccountCommentKey(v7, a2, v4);
v14 = nullptr;
v15 = nullptr;
v16 = nullptr;
v9 = AccountCommentKey;
v10 = strlen(AccountCommentKey);
std::string::__init((int *)&v14, v9, v10);
v11 = ((unsigned __int8)v14 & 1) != 0 ? v16 : (char *)&v14 + 1;
if ( GameLevelManager::keyHasTimer(v5, v11) )
{
v12 = ((unsigned __int8)v14 & 1) != 0 ? v16 : (char *)&v14 + 1;
GameLevelManager::resetTimerForKey(v5, v12);
v13 = 1;
}
else
{
v13 = 0;
}
if ( ++v4 == 101 )
break;
this = (GameLevelManager *)std::string::~string((int)&v14);
if ( !v13 )
return this;
}
return (GameLevelManager *)std::string::~string((int)&v14);
}