{"type": "func", "start": 5308184, "end": 5308248, "name": "GJMultiplayerManager::getLastCommentIDForGame", "pseudocode": "// \n// GJMultiplayerManager::getLastCommentIDForGame from 0x50ff18 to 0x50ff58 (64 bytes)\n// \n// 1 xrefs:\n// > GJMultiplayerManager::joinLobby @ 0x51091e\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint GJMultiplayerManager::getLastCommentIDForGame(GJMultiplayerManager *a1, int a2)\n{\n  cocos2d::CCArray *v2; // r0\n  cocos2d::CCArray *v3; // r6\n  unsigned int v4; // r5\n  int v5; // r4\n  int v6; // r0\n\n  v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_lobbyComments, a2);\n  v3 = v2;\n  if ( !v2 || !cocos2d::CCArray::count(v2) )\n    return 0;\n  v4 = 0;\n  v5 = 0;\n  while ( v4 < cocos2d::CCArray::count(v3) )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(v3, v4++);\n    if ( v5 < *(_DWORD *)(v6 + 272) )\n      v5 = *(_DWORD *)(v6 + 272);\n  }\n  return v5;\n}", "assembly": "; \n; GJMultiplayerManager::getLastCommentIDForGame from 0x50ff18 to 0x50ff58 (64 bytes)\n; \n; 1 xrefs:\n; > GJMultiplayerManager::joinLobby @ 0x51091e\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x50ff18\nLDR.W           R0, [R0,#0x114]; this                                  ; +0x2, 0x50ff1a\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x6, 0x50ff1e\nMOV             R6, R0                                                 ; +0xa, 0x50ff22\nCBZ             R0, loc_50FF54                                         ; +0xc, 0x50ff24\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe, 0x50ff26\nCBZ             R0, loc_50FF54                                         ; +0x12, 0x50ff2a\nMOVS            R5, #0                                                 ; +0x14, 0x50ff2c\nMOV             R4, R5                                                 ; +0x16, 0x50ff2e\nMOV             R0, R6; this                                           ; +0x18, 0x50ff30\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x50ff32\nCMP             R5, R0                                                 ; +0x1e, 0x50ff36\nBCS             loc_50FF50                                             ; +0x20, 0x50ff38\nMOV             R1, R5; unsigned int                                   ; +0x22, 0x50ff3a\nMOV             R0, R6; this                                           ; +0x24, 0x50ff3c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x26, 0x50ff3e\nADDS            R5, #1                                                 ; +0x2a, 0x50ff42\nLDR.W           R3, [R0,#0x110]                                        ; +0x2c, 0x50ff44\nCMP             R4, R3                                                 ; +0x30, 0x50ff48\nIT LT                                                                  ; +0x32, 0x50ff4a\nMOVLT           R4, R3                                                 ; +0x34, 0x50ff4c\nB               loc_50FF30                                             ; +0x36, 0x50ff4e\nMOV             R0, R4                                                 ; +0x38, 0x50ff50\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x50ff52\nMOVS            R0, #0                                                 ; +0x3c, 0x50ff54\nPOP             {R4-R6,PC}                                             ; +0x3e, 0x50ff56", "xrefs": ["GJMultiplayerManager::joinLobby @ 0x51091e"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}