{"type": "func", "start": 4295566564, "end": 4295566672, "name": "GameLevelManager::getLocalLevel", "pseudocode": "// \n// GameLevelManager::getLocalLevel from 0x1000924e4 to 0x100092550 (108 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::onUploadLevelCompleted @ 0x10008a49c\n// > GameLevelManager::onUploadLevelCompleted @ 0x10008a4dc\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\nGJGameLevel *__fastcall GameLevelManager::getLocalLevel(GameLevelManager *a1, int a2)\n{\n  cocos2d::CCArray *m_localLevels; // x20\n  __int64 v4; // x21\n  GJGameLevel *result; // x0\n\n  m_localLevels = LocalLevelManager::sharedState()->m_localLevels;\n  if ( !(unsigned int)sub_10024A36C(m_localLevels) )\n    return nullptr;\n  v4 = 0;\n  while ( 1 )\n  {\n    result = (GJGameLevel *)sub_10024A388(m_localLevels, v4);\n    if ( result->m_M_ID == a2 )\n      break;\n    v4 = (unsigned int)(v4 + 1);\n    if ( (unsigned int)v4 >= (unsigned int)sub_10024A36C(m_localLevels) )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::getLocalLevel from 0x1000924e4 to 0x100092550 (108 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::onUploadLevelCompleted @ 0x10008a49c\n; > GameLevelManager::onUploadLevelCompleted @ 0x10008a4dc\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1000924e4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000924e8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000924ec\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000924f0\nMOV             X19, X1                                                ; +0x10, 0x1000924f4\nBL              LocalLevelManager__sharedState                         ; +0x14, 0x1000924f8\nLDR             X20, [X0,#0x160]                                       ; +0x18, 0x1000924fc\nMOV             X0, X20                                                ; +0x1c, 0x100092500\nBL              sub_10024A36C                                          ; +0x20, 0x100092504\nCBZ             W0, loc_10009253C                                      ; +0x24, 0x100092508\nMOV             W21, #0                                                ; +0x28, 0x10009250c\nMOV             X0, X20                                                ; +0x2c, 0x100092510\nMOV             X1, X21                                                ; +0x30, 0x100092514\nBL              sub_10024A388                                          ; +0x34, 0x100092518\nLDR             W8, [X0,#0x408]                                        ; +0x38, 0x10009251c\nCMP             W8, W19                                                ; +0x3c, 0x100092520\nB.EQ            loc_100092540                                          ; +0x40, 0x100092524\nADD             W21, W21, #1                                           ; +0x44, 0x100092528\nMOV             X0, X20                                                ; +0x48, 0x10009252c\nBL              sub_10024A36C                                          ; +0x4c, 0x100092530\nCMP             W21, W0                                                ; +0x50, 0x100092534\nB.CC            loc_100092510                                          ; +0x54, 0x100092538\nMOV             X0, #0                                                 ; +0x58, 0x10009253c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x5c, 0x100092540\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x60, 0x100092544\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x64, 0x100092548\nRET                                                                    ; +0x68, 0x10009254c", "xrefs": ["GameLevelManager::onUploadLevelCompleted @ 0x10008a49c", "GameLevelManager::onUploadLevelCompleted @ 0x10008a4dc"], "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"}