//
// GJMultiplayerManager::getLastCommentIDForGame from 0x50ff18 to 0x50ff58 (64 bytes)
//
// 1 xrefs:
// > GJMultiplayerManager::joinLobby @ 0x51091e
//
// 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; // r0
cocos2d::CCArray *v3; // r6
unsigned int v4; // r5
int v5; // r4
int v6; // r0
v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_lobbyComments, a2);
v3 = v2;
if ( !v2 || !cocos2d::CCArray::count(v2) )
return 0;
v4 = 0;
v5 = 0;
while ( v4 < cocos2d::CCArray::count(v3) )
{
v6 = cocos2d::CCArray::objectAtIndex(v3, v4++);
if ( v5 < *(_DWORD *)(v6 + 272) )
v5 = *(_DWORD *)(v6 + 272);
}
return v5;
}