//
// GJMultiplayerManager::getLastCommentIDForGame from 0x6410f0 to 0x641130 (64 bytes)
//
// 1 xrefs:
// > GJMultiplayerManager::joinLobby @ 0x642072
//
// 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:55:28 +0000
//
int __fastcall GJMultiplayerManager::getLastCommentIDForGame(cocos2d::CCDictionary **this, 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(*(this + 69), 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 + 288) )
v5 = *(_DWORD *)(v6 + 288);
}
return v5;
}