{"type": "func", "start": 7120224, "end": 7120420, "name": "CreatorLayer::onSavedLevels", "pseudocode": "// \n// CreatorLayer::onSavedLevels from 0x6ca560 to 0x6ca624 (196 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x71cb8\n// > CreatorLayer::init @ 0x6cc560\n// > <???> @ 0x122bc20\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 CreatorLayer::onSavedLevels(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  GJSearchObject *v2; // x0\n  GJSearchObject *v3; // x20\n  GameManager *v4; // x0\n  GameManager *v5; // x0\n  GameManager *v6; // x0\n  char *v7; // x0\n  cocos2d::CCDirector *v8; // x19\n  cocos2d::CCScene *v9; // x0\n  cocos2d::CCTransitionFade *v10; // x0\n  GameManager *v11; // x0\n\n  if ( GameManager::sharedState()->m_savedSearchType == FavouriteLists )\n    v2 = (GJSearchObject *)(&qword_60 + 7);\n  else\n    v2 = (GJSearchObject *)(&qword_60 + 3);\n  v3 = (GJSearchObject *)GJSearchObject::create(v2, SavedLevels);\n  v4 = GameManager::sharedState();\n  if ( GameManager::getIntGameVariable(v4, \"0092\") <= 998\n    && (v5 = GameManager::sharedState(), GameManager::getIntGameVariable(v5, \"0092\") <= 0) )\n  {\n    LODWORD(v7) = 0;\n  }\n  else\n  {\n    v6 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v6, \"0092\") <= 998 )\n    {\n      v11 = GameManager::sharedState();\n      LODWORD(v7) = GameManager::getIntGameVariable(v11, \"0092\");\n    }\n    else\n    {\n      v7 = (char *)&elf_hash_bucket[123] + 3;\n    }\n  }\n  v3->m_folder = (int)v7;\n  v8 = cocos2d::CCDirector::sharedDirector();\n  v9 = LevelBrowserLayer::scene(v3);\n  v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n  cocos2d::CCDirector::pushScene(v8, v10);\n}", "assembly": "; \n; CreatorLayer::onSavedLevels from 0x6ca560 to 0x6ca624 (196 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x71cb8\n; > CreatorLayer::init @ 0x6cc560\n; > <???> @ 0x122bc20\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x6ca560\nMOV             X29, SP                                                ; +0x4, 0x6ca564\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x6ca568\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x6ca56c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x6ca570\nLDR             W0, [X0,#0x4D4]                                        ; +0x14, 0x6ca574\nMOV             W1, #0x63 ; 'c'                                        ; +0x18, 0x6ca578\nADRP            X19, #a0092@PAGE; \"0092\"                               ; +0x1c, 0x6ca57c\nCMP             W0, #0x67 ; 'g'                                        ; +0x20, 0x6ca580\nADD             X21, X19, #a0092@PAGEOFF; \"0092\"                       ; +0x24, 0x6ca584\nCSEL            W0, W0, W1, EQ                                         ; +0x28, 0x6ca588\nBL              _ZN14GJSearchObject6createE10SearchType; GJSearchObject::create(SearchType) ; +0x2c, 0x6ca58c\nMOV             X20, X0                                                ; +0x30, 0x6ca590\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x6ca594\nMOV             X1, X21; char *                                        ; +0x38, 0x6ca598\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x3c, 0x6ca59c\nCMP             W0, #0x3E6                                             ; +0x40, 0x6ca5a0\nB.GT            loc_6CA5BC                                             ; +0x44, 0x6ca5a4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x48, 0x6ca5a8\nMOV             X1, X21; char *                                        ; +0x4c, 0x6ca5ac\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x50, 0x6ca5b0\nCMP             W0, WZR                                                ; +0x54, 0x6ca5b4\nB.LE            loc_6CA61C                                             ; +0x58, 0x6ca5b8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x5c, 0x6ca5bc\nADD             X19, X19, #a0092@PAGEOFF; \"0092\"                       ; +0x60, 0x6ca5c0\nMOV             X1, X19; char *                                        ; +0x64, 0x6ca5c4\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x68, 0x6ca5c8\nCMP             W0, #0x3E6                                             ; +0x6c, 0x6ca5cc\nB.LE            loc_6CA60C                                             ; +0x70, 0x6ca5d0\nMOV             W0, #(elf_hash_bucket+0x1EF); this                     ; +0x74, 0x6ca5d4\nSTR             W0, [X20,#0x174]                                       ; +0x78, 0x6ca5d8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x6ca5dc\nMOV             X19, X0                                                ; +0x80, 0x6ca5e0\nMOV             X0, X20; this                                          ; +0x84, 0x6ca5e4\nBL              _ZN17LevelBrowserLayer5sceneEP14GJSearchObject; LevelBrowserLayer::scene(GJSearchObject *) ; +0x88, 0x6ca5e8\nFMOV            S0, #0.5; float                                        ; +0x8c, 0x6ca5ec\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x90, 0x6ca5f0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x94, 0x6ca5f4\nMOV             X1, X0; cocos2d::CCScene *                             ; +0x98, 0x6ca5f8\nMOV             X0, X19; this                                          ; +0x9c, 0x6ca5fc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xa0, 0x6ca600\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa4, 0x6ca604\nB               _ZN7cocos2d10CCDirector9pushSceneEPNS_7CCSceneE; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0xa8, 0x6ca608\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xac, 0x6ca60c\nMOV             X1, X19; char *                                        ; +0xb0, 0x6ca610\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0xb4, 0x6ca614\nB               loc_6CA5D8                                             ; +0xb8, 0x6ca618\nMOV             W0, #0                                                 ; +0xbc, 0x6ca61c\nB               loc_6CA5D8                                             ; +0xc0, 0x6ca620", "xrefs": ["<???> @ 0x71cb8", "CreatorLayer::init @ 0x6cc560", "<???> @ 0x122bc20"], "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"}