//
// GJMultiplayerManager::getLastCommentIDForGame from 0xac4c5c to 0xac4ce8 (140 bytes)
//
// 2 xrefs:
// > GJMultiplayerManager::joinLobby @ 0xac6970
// > ??> @ 0x71d70
//
// 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 13:01:06 +0000
//
__int64 __fastcall GJMultiplayerManager::getLastCommentIDForGame(cocos2d::CCDictionary **this, int a2)
{
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w19
unsigned int v5; // w20
int v6; // w0
v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(this + 43), 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++) + 368);
if ( (int)v5 < v6 )
v5 = v6;
}
return v5;
}