//
// GameLevelManager::resetCommentTimersForAccountID from 0x1402400e0 to 0x14024028a (426 bytes)
//
// 3 xrefs:
// > ProfilePage::onUpdate @ 0x140551f4f
// > ProfilePage::onUpdate @ 0x1405522eb
// > ??> @ 0x14091c184
//
// 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 11:28:36 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall GameLevelManager::resetCommentTimersForAccountID(__int64 a1, int a2)
{
char v4; // di
int v5; // ebx
cocos2d::CCString *v6; // rax
const char *CString; // rax
size_t v8; // r8
void **v9; // rdx
void **v10; // rdx
void *v11; // rcx
void *v12; // rcx
void *v13; // [rsp+30h] [rbp-48h]
void *Block[2]; // [rsp+38h] [rbp-40h] BYREF
__int64 v15; // [rsp+48h] [rbp-30h]
unsigned __int64 v16; // [rsp+50h] [rbp-28h]
v4 = 1;
v5 = 0;
while ( 1 )
{
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v13 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v13);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
}
v6 = cocos2d::CCString::createWithFormat("a_%i_%i", a2, v5);
CString = cocos2d::CCString::getCString(v6);
*(_OWORD *)Block = 0;
v15 = 0;
v16 = 0;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003D230(Block, CString, v8);
v9 = Block;
if ( v16 > 0xF )
v9 = (void **)Block[0];
if ( GameLevelManager::keyHasTimer(a1, v9) )
{
v10 = Block;
if ( v16 > 0xF )
v10 = (void **)Block[0];
GameLevelManager::resetTimerForKey(a1, v10);
}
else
{
v4 = 0;
}
if ( ++v5 > 100 )
break;
if ( v16 > 0xF )
{
v11 = Block[0];
if ( v16 + 1 >= 0x1000 )
{
v11 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F )
goto LABEL_23;
}
j_j_free(v11);
}
if ( !v4 )
return;
}
if ( v16 > 0xF )
{
v12 = Block[0];
if ( v16 + 1 >= 0x1000 )
{
v12 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )
LABEL_23:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v12);
}
}