//
// GameLevelManager::resetCommentTimersForAccountID from 0x10056da50 to 0x10056db88 (312 bytes)
//
// 2 xrefs:
// > ProfilePage::onUpdate @ 0x10089ee7b
// > ProfilePage::onUpdate @ 0x10089f02f
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:32:13 +0000
//
void __fastcall GameLevelManager::resetCommentTimersForAccountID(__int64 a1, int a2)
{
bool v2; // r15
int v3; // r12d
__int64 v4; // rax
const char *CString; // r15
size_t v6; // rax
size_t v7; // r13
char *v8; // rbx
__int64 v9; // rax
size_t v10; // r14
void *v11; // r13
const char *v12; // rbx
_QWORD __dst[2]; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
__int64 v15; // [rsp+18h] [rbp-38h]
int v16; // [rsp+24h] [rbp-2Ch]
v16 = a2;
v15 = a1;
v2 = 1;
v3 = 0;
while ( v2 )
{
GameLevelManager::sharedState();
v4 = sub_10088E820("a_%i_%i", __dst[0]);
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v7 = v6;
if ( v6 >= 0x17 )
{
v9 = v6 | 7;
v10 = 26;
if ( (v7 | 7) != 0x17 )
v10 = v9 + 1;
v8 = (char *)operator new(v10);
__p = v8;
__dst[0] = v10 + 1;
__dst[1] = v7;
}
else
{
LOBYTE(__dst[0]) = 2 * v6;
v8 = (char *)__dst + 1;
if ( !v6 )
goto LABEL_12;
}
memmove(v8, CString, v7);
LABEL_12:
v8[v7] = 0;
v11 = __p;
v12 = (const char *)__p;
if ( (__dst[0] & 1) == 0 )
v12 = (char *)__dst + 1;
v2 = sub_10054AAA0(v15, v12);
if ( v2 )
GameLevelManager::resetTimerForKey(v15, v12);
if ( (__dst[0] & 1) != 0 )
operator delete(v11);
if ( ++v3 == 101 )
return;
}
}