{"type": "func", "start": 4295711864, "end": 4295712056, "name": "CreatorLayer::onSavedLevels", "pseudocode": "// \n// CreatorLayer::onSavedLevels from 0x1000b5c78 to 0x1000b5d38 (192 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x1000b52ec\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\nvoid __fastcall CreatorLayer::onSavedLevels(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  SearchType v2; // w0\n  GJSearchObject *v3; // x19\n  GameManager *v4; // x0\n  GameManager *v5; // x0\n  GameManager *v6; // x0\n  GameManager *v7; // x0\n  int IntGameVariable; // w0\n  cocos2d::CCDirector *v9; // x20\n  cocos2d::CCScene *v10; // x0\n  cocos2d::CCTransitionFade *v11; // x1\n\n  if ( GameManager::sharedState()->m_savedSearchType == FavouriteLists )\n    v2 = FavouriteLists;\n  else\n    v2 = SavedLevels;\n  v3 = GJSearchObject::create_2(v2);\n  v4 = GameManager::sharedState();\n  if ( GameManager::getIntGameVariable(v4, \"0092\") <= 998\n    && (v5 = GameManager::sharedState(), GameManager::getIntGameVariable(v5, \"0092\") < 1) )\n  {\n    IntGameVariable = 0;\n  }\n  else\n  {\n    v6 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v6, \"0092\") > 998 )\n    {\n      IntGameVariable = 999;\n    }\n    else\n    {\n      v7 = GameManager::sharedState();\n      IntGameVariable = GameManager::getIntGameVariable(v7, \"0092\");\n    }\n  }\n  v3->m_folder = IntGameVariable;\n  v9 = cocos2d::CCDirector::sharedDirector();\n  v10 = LevelBrowserLayer::scene(v3);\n  v11 = cocos2d::CCTransitionFade::create_1(0.5, v10);\n  cocos2d::CCDirector::pushScene(v9, v11);\n}", "assembly": "; \n; CreatorLayer::onSavedLevels from 0x1000b5c78 to 0x1000b5d38 (192 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x1000b52ec\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000b5c78\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000b5c7c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000b5c80\nBL              GameManager__sharedState                               ; +0xc, 0x1000b5c84\nLDR             W8, [X0,#0x4B4]                                        ; +0x10, 0x1000b5c88\nCMP             W8, #0x67 ; 'g'                                        ; +0x14, 0x1000b5c8c\nMOV             W9, #0x63 ; 'c'                                        ; +0x18, 0x1000b5c90\nCSEL            W0, W8, W9, EQ                                         ; +0x1c, 0x1000b5c94\nBL              GJSearchObject__create_2                               ; +0x20, 0x1000b5c98\nMOV             X19, X0                                                ; +0x24, 0x1000b5c9c\nBL              GameManager__sharedState                               ; +0x28, 0x1000b5ca0\nADRL            X1, a0092; \"0092\"                                      ; +0x2c, 0x1000b5ca4\nBL              GameManager__getIntGameVariable                        ; +0x34, 0x1000b5cac\nCMP             W0, #0x3E6                                             ; +0x38, 0x1000b5cb0\nB.GT            loc_1000B5CD0                                          ; +0x3c, 0x1000b5cb4\nBL              GameManager__sharedState                               ; +0x40, 0x1000b5cb8\nADRL            X1, a0092; \"0092\"                                      ; +0x44, 0x1000b5cbc\nBL              GameManager__getIntGameVariable                        ; +0x4c, 0x1000b5cc4\nCMP             W0, #1                                                 ; +0x50, 0x1000b5cc8\nB.LT            loc_1000B5D04                                          ; +0x54, 0x1000b5ccc\nBL              GameManager__sharedState                               ; +0x58, 0x1000b5cd0\nADRL            X1, a0092; \"0092\"                                      ; +0x5c, 0x1000b5cd4\nBL              GameManager__getIntGameVariable                        ; +0x64, 0x1000b5cdc\nCMP             W0, #0x3E6                                             ; +0x68, 0x1000b5ce0\nB.GT            loc_1000B5CFC                                          ; +0x6c, 0x1000b5ce4\nBL              GameManager__sharedState                               ; +0x70, 0x1000b5ce8\nADRL            X1, a0092; \"0092\"                                      ; +0x74, 0x1000b5cec\nBL              GameManager__getIntGameVariable                        ; +0x7c, 0x1000b5cf4\nB               loc_1000B5D08                                          ; +0x80, 0x1000b5cf8\nMOV             W0, #0x3E7                                             ; +0x84, 0x1000b5cfc\nB               loc_1000B5D08                                          ; +0x88, 0x1000b5d00\nMOV             W0, #0                                                 ; +0x8c, 0x1000b5d04\nSTR             W0, [X19,#0x1A4]                                       ; +0x90, 0x1000b5d08\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x94, 0x1000b5d0c\nMOV             X20, X0                                                ; +0x98, 0x1000b5d10\nMOV             X0, X19                                                ; +0x9c, 0x1000b5d14\nBL              LevelBrowserLayer__scene                               ; +0xa0, 0x1000b5d18\nFMOV            S0, #0.5                                               ; +0xa4, 0x1000b5d1c\nBL              cocos2d__CCTransitionFade__create_1                    ; +0xa8, 0x1000b5d20\nMOV             X1, X0                                                 ; +0xac, 0x1000b5d24\nMOV             X0, X20                                                ; +0xb0, 0x1000b5d28\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb4, 0x1000b5d2c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb8, 0x1000b5d30\nB               cocos2d__CCDirector__pushScene                         ; +0xbc, 0x1000b5d34", "xrefs": ["CreatorLayer::init @ 0x1000b52ec"], "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"}