//
// GameLevelManager::resetCommentTimersForLevelID from 0x803330 to 0x80346c (316 bytes)
//
// 5 xrefs:
// > InfoLayer::onRefreshComments @ 0x90ad4c
// > InfoLayer::toggleSmallCommentMode @ 0x90d424
// > InfoLayer::toggleSmallCommentMode @ 0x90d468
// > InfoLayer::toggleSmallCommentMode @ 0x90d498
// > ??> @ 0xb08d8
//
// This function is hookable on this platform (idp: arm, 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:54:44 +0000
//
__int64 __fastcall GameLevelManager::resetCommentTimersForLevelID(GameLevelManager *a1, unsigned int a2)
{
int v3; // w22
GameLevelManager *v5; // x0
int v6; // w20
const char *v7; // x1
const char *v8; // x1
int v9; // w26
__int64 v11[2]; // [xsp+50h] [xbp+50h] BYREF
void *v12; // [xsp+60h] [xbp+60h]
v3 = 0;
v5 = (GameLevelManager *)_stack_chk_guard;
LABEL_2:
v6 = 0;
while ( 1 )
{
GameLevelManager::sharedState(v5);
GameLevelManager::getCommentKey((const char *)a2, v11);
v7 = (char *)v11 + 1;
if ( (v11[0] & 1) != 0 )
v7 = (const char *)v12;
if ( !GameLevelManager::keyHasTimer(a1, v7) )
{
++v6;
v9 = 0;
if ( v6 == 101 )
break;
goto LABEL_9;
}
v8 = (char *)v11 + 1;
if ( (v11[0] & 1) != 0 )
v8 = (const char *)v12;
GameLevelManager::resetTimerForKey(a1, v8);
++v6;
v9 = 1;
if ( v6 == 101 )
break;
LABEL_9:
v5 = (GameLevelManager *)LOBYTE(v11[0]);
if ( (v11[0] & 1) != 0 )
{
operator delete(v12);
if ( !v9 )
{
LABEL_11:
if ( v3 )
return _stack_chk_guard;
v3 = 1;
goto LABEL_2;
}
}
else if ( !v9 )
{
goto LABEL_11;
}
}
if ( (v11[0] & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}