{"type": "func", "start": 4295587240, "end": 4295587300, "name": "GameLevelManager::getHighestLevelOrder", "pseudocode": "// \n// GameLevelManager::getHighestLevelOrder from 0x1000975a8 to 0x1000975e4 (60 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::downloadLevel @ 0x100026d08\n// > LevelInfoLayer::FLAlert_Clicked @ 0x10002ae20\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 __fastcall GameLevelManager::getHighestLevelOrder(GameLevelManager *a1)\n{\n  cocos2d::CCDictionary *m_onlineLevels; // x8\n  cocos2d::CCDictElement *m_pElements; // x8\n  int result; // w0\n  cocos2d::CCDictElement *next; // x9\n  int m_uID; // w8\n\n  m_onlineLevels = a1->m_onlineLevels;\n  if ( !m_onlineLevels )\n    return 0;\n  m_pElements = m_onlineLevels->m_pElements;\n  if ( !m_pElements )\n    return 0;\n  result = 0;\n  do\n  {\n    next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n    m_uID = m_pElements->m_pObject[11].m_uID;\n    if ( m_uID > result )\n      result = m_uID;\n    m_pElements = next;\n  }\n  while ( next );\n  return result;\n}", "assembly": "; \n; GameLevelManager::getHighestLevelOrder from 0x1000975a8 to 0x1000975e4 (60 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::downloadLevel @ 0x100026d08\n; > LevelInfoLayer::FLAlert_Clicked @ 0x10002ae20\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\nLDR             X8, [X0,#0x168]                                        ; +0x0, 0x1000975a8\nCBZ             X8, loc_1000975DC                                      ; +0x4, 0x1000975ac\nLDR             X8, [X8,#0x38]                                         ; +0x8, 0x1000975b0\nCBZ             X8, loc_1000975DC                                      ; +0xc, 0x1000975b4\nMOV             W0, #0                                                 ; +0x10, 0x1000975b8\nLDR             X9, [X8,#0x120]                                        ; +0x14, 0x1000975bc\nLDR             X8, [X8,#0x108]                                        ; +0x18, 0x1000975c0\nLDR             W8, [X8,#0x270]                                        ; +0x1c, 0x1000975c4\nCMP             W8, W0                                                 ; +0x20, 0x1000975c8\nCSEL            W0, W8, W0, GT                                         ; +0x24, 0x1000975cc\nMOV             X8, X9                                                 ; +0x28, 0x1000975d0\nCBNZ            X9, loc_1000975BC                                      ; +0x2c, 0x1000975d4\nRET                                                                    ; +0x30, 0x1000975d8\nMOV             W0, #0                                                 ; +0x34, 0x1000975dc\nRET                                                                    ; +0x38, 0x1000975e0", "xrefs": ["LevelInfoLayer::downloadLevel @ 0x100026d08", "LevelInfoLayer::FLAlert_Clicked @ 0x10002ae20"], "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"}