//
// GJMultiplayerManager::getLastCommentIDForGame from 0x981ad4 to 0x981b60 (140 bytes)
//
// 2 xrefs:
// > GJMultiplayerManager::joinLobby @ 0x9832b0
// > ??> @ 0x51d38
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int GJMultiplayerManager::getLastCommentIDForGame(GJMultiplayerManager *a1, int a2)
{
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w19
int v5; // w20
int v6; // w0
v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_lobbyComments, a2);
v3 = v2;
if ( !v2 || !(unsigned int)cocos2d::CCArray::count(v2) )
return 0;
v4 = 0;
v5 = 0;
while ( v4 < (unsigned int)cocos2d::CCArray::count(v3) )
{
v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v3, v4++) + 336);
if ( v5 < v6 )
v5 = v6;
}
return v5;
}