{"type": "func", "start": 9968340, "end": 9968480, "name": "GJMultiplayerManager::getLastCommentIDForGame", "pseudocode": "// \n// GJMultiplayerManager::getLastCommentIDForGame from 0x981ad4 to 0x981b60 (140 bytes)\n// \n// 2 xrefs:\n// > GJMultiplayerManager::joinLobby @ 0x9832b0\n// > <???> @ 0x51d38\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; // x0\n  cocos2d::CCArray *v3; // x21\n  unsigned int v4; // w19\n  int v5; // w20\n  int v6; // w0\n\n  v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_lobbyComments, a2);\n  v3 = v2;\n  if ( !v2 || !(unsigned int)cocos2d::CCArray::count(v2) )\n    return 0;\n  v4 = 0;\n  v5 = 0;\n  while ( v4 < (unsigned int)cocos2d::CCArray::count(v3) )\n  {\n    v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v3, v4++) + 336);\n    if ( v5 < v6 )\n      v5 = v6;\n  }\n  return v5;\n}", "assembly": "; \n; GJMultiplayerManager::getLastCommentIDForGame from 0x981ad4 to 0x981b60 (140 bytes)\n; \n; 2 xrefs:\n; > GJMultiplayerManager::joinLobby @ 0x9832b0\n; > <???> @ 0x51d38\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x981ad4\nSXTW            X1, W1; __int64                                        ; +0x4, 0x981ad8\nMOV             X29, SP                                                ; +0x8, 0x981adc\nLDR             X0, [X0,#0x158]; this                                  ; +0xc, 0x981ae0\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x981ae4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x14, 0x981ae8\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x18, 0x981aec\nMOV             X21, X0                                                ; +0x1c, 0x981af0\nCBZ             X0, loc_981B4C                                         ; +0x20, 0x981af4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0x981af8\nCBZ             W0, loc_981B4C                                         ; +0x28, 0x981afc\nMOV             W19, #0                                                ; +0x2c, 0x981b00\nMOV             W20, #0                                                ; +0x30, 0x981b04\nB               loc_981B20                                             ; +0x34, 0x981b08\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x981b0c\nLDR             W0, [X0,#0x150]                                        ; +0x3c, 0x981b10\nADD             W19, W19, #1                                           ; +0x40, 0x981b14\nCMP             W20, W0                                                ; +0x44, 0x981b18\nCSEL            W20, W20, W0, GE                                       ; +0x48, 0x981b1c\nMOV             X0, X21; this                                          ; +0x4c, 0x981b20\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x50, 0x981b24\nCMP             W19, W0                                                ; +0x54, 0x981b28\nMOV             W1, W19; unsigned int                                  ; +0x58, 0x981b2c\nMOV             X0, X21; this                                          ; +0x5c, 0x981b30\nB.CC            loc_981B0C                                             ; +0x60, 0x981b34\nMOV             W0, W20                                                ; +0x64, 0x981b38\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x68, 0x981b3c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x6c, 0x981b40\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x981b44\nRET                                                                    ; +0x74, 0x981b48\nMOV             W0, #0                                                 ; +0x78, 0x981b4c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x7c, 0x981b50\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x80, 0x981b54\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0x981b58\nRET                                                                    ; +0x88, 0x981b5c", "xrefs": ["GJMultiplayerManager::joinLobby @ 0x9832b0", "<???> @ 0x51d38"], "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"}