//
// InfoLayer::onRefreshComments from 0x53ea68 to 0x53eaba (82 bytes)
//
// 2 xrefs:
// > InfoLayer::bulkCommentDeleteFinished @ 0x53eae0
// > InfoLayer::keyDown @ 0x540b42
//
// 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:52:17 +0000
//
GameLevelManager *__fastcall InfoLayer::onRefreshComments(InfoLayer *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
GameLevelManager *result; // r0
GameLevelManager *v5; // r0
float v6; // r2
int v7; // r3
GameLevelManager *TimeStamp; // r0
GameLevelManager *v9; // r6
const char *active; // r5
int v11; // r0
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
result = (GameLevelManager *)(GameLevelManager::getTimeLeft(v3, "upd_comments", 5.0) - 1);
if ( (unsigned int)result > 4 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(result);
TimeStamp = (GameLevelManager *)GameLevelManager::makeTimeStamp(v5, "upd_comments", v6, v7);
v9 = (GameLevelManager *)GameLevelManager::sharedState(TimeStamp);
active = (const char *)InfoLayer::activeCommentID(this);
v11 = InfoLayer::activeCommentKeyType(this);
GameLevelManager::resetCommentTimersForLevelID(v9, active, v11);
return (GameLevelManager *)InfoLayer::loadPage(this, nullptr, 1);
}
return result;
}