{"type": "func", "start": 3844188, "end": 3844326, "name": "CreatorLayer::onSavedLevels", "pseudocode": "// \n// CreatorLayer::onSavedLevels from 0x3aa85c to 0x3aa8e6 (138 bytes)\n// \n// 0 xrefs:\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 *m_savedSearchType; // r0\n  SearchType v3; // r1\n  GJSearchObject *v4; // r4\n  GameManager *v5; // r0\n  GameManager *v6; // r0\n  int IntGameVariable; // r0\n  GameManager *v8; // r0\n  GameManager *v9; // r0\n  cocos2d::CCDirector *v10; // r5\n  cocos2d::CCScene *v11; // r0\n  cocos2d::CCTransitionFade *v12; // r1\n\n  m_savedSearchType = (GJSearchObject *)GameManager::sharedState()->m_savedSearchType;\n  if ( m_savedSearchType != (GJSearchObject *)((char *)&dword_64 + 3) )\n    m_savedSearchType = (GJSearchObject *)(&dword_60 + 3);\n  v4 = (GJSearchObject *)GJSearchObject::create(m_savedSearchType, v3);\n  v5 = GameManager::sharedState();\n  if ( GameManager::getIntGameVariable(v5, \"0092\") > 998\n    || (v8 = GameManager::sharedState(), GameManager::getIntGameVariable(v8, \"0092\") > 0) )\n  {\n    v6 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v6, \"0092\") <= 998 )\n    {\n      v9 = GameManager::sharedState();\n      IntGameVariable = GameManager::getIntGameVariable(v9, \"0092\");\n    }\n    else\n    {\n      IntGameVariable = 999;\n    }\n  }\n  else\n  {\n    IntGameVariable = 0;\n  }\n  v4->m_folder = IntGameVariable;\n  v10 = cocos2d::CCDirector::sharedDirector();\n  v11 = LevelBrowserLayer::scene(v4);\n  v12 = cocos2d::CCTransitionFade::create(0.5, v11);\n  cocos2d::CCDirector::pushScene(v10, v12);\n}", "assembly": "; \n; CreatorLayer::onSavedLevels from 0x3aa85c to 0x3aa8e6 (138 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3aa85c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2, 0x3aa85e\nLDR             R5, =(a0092 - 0x3AA868); \"0092\"                        ; +0x6, 0x3aa862\nADD             R5, PC; \"0092\"                                         ; +0x8, 0x3aa864\nLDR.W           R0, [R0,#0x3B8]                                        ; +0xa, 0x3aa866\nCMP             R0, #0x67 ; 'g'                                        ; +0xe, 0x3aa86a\nIT NE                                                                  ; +0x10, 0x3aa86c\nMOVNE           R0, #0x63 ; 'c'                                        ; +0x12, 0x3aa86e\nBL              _ZN14GJSearchObject6createE10SearchType; GJSearchObject::create(SearchType) ; +0x14, 0x3aa870\nMOV             R4, R0                                                 ; +0x18, 0x3aa874\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1a, 0x3aa876\nMOV             R1, R5; char *                                         ; +0x1e, 0x3aa87a\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x20, 0x3aa87c\nMOVW            R3, #0x3E6                                             ; +0x24, 0x3aa880\nCMP             R0, R3                                                 ; +0x28, 0x3aa884\nBLE             loc_3AA8A4                                             ; +0x2a, 0x3aa886\nLDR             R5, =(a0092 - 0x3AA892); \"0092\"                        ; +0x2c, 0x3aa888\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2e, 0x3aa88a\nADD             R5, PC; \"0092\"                                         ; +0x32, 0x3aa88e\nMOV             R1, R5; char *                                         ; +0x34, 0x3aa890\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x36, 0x3aa892\nMOVW            R3, #0x3E6                                             ; +0x3a, 0x3aa896\nCMP             R0, R3                                                 ; +0x3e, 0x3aa89a\nBLE             loc_3AA8B6                                             ; +0x40, 0x3aa89c\nMOVW            R0, #0x3E7                                             ; +0x42, 0x3aa89e\nB               loc_3AA8C0                                             ; +0x46, 0x3aa8a2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x48, 0x3aa8a4\nMOV             R1, R5; char *                                         ; +0x4c, 0x3aa8a8\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x4e, 0x3aa8aa\nCMP             R0, #0                                                 ; +0x52, 0x3aa8ae\nBGT             loc_3AA888                                             ; +0x54, 0x3aa8b0\nMOVS            R0, #0                                                 ; +0x56, 0x3aa8b2\nB               loc_3AA8C0                                             ; +0x58, 0x3aa8b4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x5a, 0x3aa8b6\nMOV             R1, R5; char *                                         ; +0x5e, 0x3aa8ba\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x60, 0x3aa8bc\nSTR.W           R0, [R4,#0x134]                                        ; +0x64, 0x3aa8c0\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x68, 0x3aa8c4\nMOV             R5, R0                                                 ; +0x6c, 0x3aa8c8\nMOV             R0, R4; this                                           ; +0x6e, 0x3aa8ca\nBL              _ZN17LevelBrowserLayer5sceneEP14GJSearchObject; LevelBrowserLayer::scene(GJSearchObject *) ; +0x70, 0x3aa8cc\nMOV             R1, R0; float                                          ; +0x74, 0x3aa8d0\nMOV.W           R0, #0x3F000000; this                                  ; +0x76, 0x3aa8d2\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x7a, 0x3aa8d6\nMOV             R1, R0; cocos2d::CCScene *                             ; +0x7e, 0x3aa8da\nMOV             R0, R5; this                                           ; +0x80, 0x3aa8dc\nPOP.W           {R3-R5,LR}                                             ; +0x82, 0x3aa8de\nB.W             _ZN7cocos2d10CCDirector9pushSceneEPNS_7CCSceneE; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x86, 0x3aa8e2", "xrefs": [], "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"}