{"type": "func", "start": 4300426848, "end": 4300426912, "name": "GameLevelManager::getLowestLevelOrder", "pseudocode": "// \n// GameLevelManager::getLowestLevelOrder from 0x100534e60 to 0x100534ea0 (64 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::downloadLevel @ 0x1002c004e\n// > LevelInfoLayer::FLAlert_Clicked @ 0x1002c4dc5\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; // rcx\n  int result; // eax\n  cocos2d::CCDictElement *m_pElements; // rcx\n  cocos2d::CCObject *m_pObject; // rdx\n  int m_uID; // edx\n\n  m_onlineLevels = a1->m_onlineLevels;\n  result = 0;\n  if ( m_onlineLevels )\n  {\n    m_pElements = m_onlineLevels->m_pElements;\n    if ( m_pElements )\n    {\n      result = 0;\n      do\n      {\n        m_pObject = m_pElements->m_pObject;\n        m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        m_uID = m_pObject[11].m_uID;\n        if ( m_uID < result )\n          result = m_uID;\n      }\n      while ( m_pElements );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::getLowestLevelOrder from 0x100534e60 to 0x100534ea0 (64 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::downloadLevel @ 0x1002c004e\n; > LevelInfoLayer::FLAlert_Clicked @ 0x1002c4dc5\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\nmov     rcx, [rdi+168h]                                                ; +0x0, 0x100534e60\nxor     eax, eax                                                       ; +0x7, 0x100534e67\ntest    rcx, rcx                                                       ; +0x9, 0x100534e69\njz      short locret_100534E9F                                         ; +0xc, 0x100534e6c\npush    rbp                                                            ; +0xe, 0x100534e6e\nmov     rbp, rsp                                                       ; +0xf, 0x100534e6f\nmov     rcx, [rcx+38h]                                                 ; +0x12, 0x100534e72\ntest    rcx, rcx                                                       ; +0x16, 0x100534e76\njz      short loc_100534E9E                                            ; +0x19, 0x100534e79\nxor     eax, eax                                                       ; +0x1b, 0x100534e7b\nnop     dword ptr [rax]                                                ; +0x1d, 0x100534e7d\nmov     rdx, [rcx+108h]                                                ; +0x20, 0x100534e80\nmov     rcx, [rcx+120h]                                                ; +0x27, 0x100534e87\nmov     edx, [rdx+270h]                                                ; +0x2e, 0x100534e8e\ncmp     edx, eax                                                       ; +0x34, 0x100534e94\ncmovl   eax, edx                                                       ; +0x36, 0x100534e96\ntest    rcx, rcx                                                       ; +0x39, 0x100534e99\njnz     short loc_100534E80                                            ; +0x3c, 0x100534e9c\npop     rbp                                                            ; +0x3e, 0x100534e9e\nretn                                                                   ; +0x3f, 0x100534e9f", "xrefs": ["LevelInfoLayer::downloadLevel @ 0x1002c004e", "LevelInfoLayer::FLAlert_Clicked @ 0x1002c4dc5"], "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"}