{"type": "func", "start": 4295587300, "end": 4295587360, "name": "GameLevelManager::getLowestLevelOrder", "pseudocode": "// \n// GameLevelManager::getLowestLevelOrder from 0x1000975e4 to 0x100097620 (60 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::downloadLevel @ 0x100026cf8\n// > LevelInfoLayer::FLAlert_Clicked @ 0x10002ad3c\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::getLowestLevelOrder(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::getLowestLevelOrder from 0x1000975e4 to 0x100097620 (60 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::downloadLevel @ 0x100026cf8\n; > LevelInfoLayer::FLAlert_Clicked @ 0x10002ad3c\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, 0x1000975e4\nCBZ             X8, loc_100097618                                      ; +0x4, 0x1000975e8\nLDR             X8, [X8,#0x38]                                         ; +0x8, 0x1000975ec\nCBZ             X8, loc_100097618                                      ; +0xc, 0x1000975f0\nMOV             W0, #0                                                 ; +0x10, 0x1000975f4\nLDR             X9, [X8,#0x120]                                        ; +0x14, 0x1000975f8\nLDR             X8, [X8,#0x108]                                        ; +0x18, 0x1000975fc\nLDR             W8, [X8,#0x270]                                        ; +0x1c, 0x100097600\nCMP             W8, W0                                                 ; +0x20, 0x100097604\nCSEL            W0, W8, W0, LT                                         ; +0x24, 0x100097608\nMOV             X8, X9                                                 ; +0x28, 0x10009760c\nCBNZ            X9, loc_1000975F8                                      ; +0x2c, 0x100097610\nRET                                                                    ; +0x30, 0x100097614\nMOV             W0, #0                                                 ; +0x34, 0x100097618\nRET                                                                    ; +0x38, 0x10009761c", "xrefs": ["LevelInfoLayer::downloadLevel @ 0x100026cf8", "LevelInfoLayer::FLAlert_Clicked @ 0x10002ad3c"], "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"}