{"type": "func", "start": 4297688080, "end": 4297688282, "name": "CreatorLayer::onSavedLevels", "pseudocode": "// \n// CreatorLayer::onSavedLevels from 0x100298410 to 0x1002984da (202 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x10029789f\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  GameManager *v2; // rax\n  GJSearchObject *v3; // rbx\n  GameManager *v4; // rax\n  GameManager *v5; // rax\n  GameManager *v6; // rax\n  int IntGameVariable; // ecx\n  int v8; // eax\n  GameManager *v9; // rax\n  cocos2d::CCDirector *v10; // r14\n  cocos2d::CCScene *v11; // rax\n  cocos2d::CCTransitionFade *v12; // rax\n\n  v2 = GameManager::sharedState();\n  v3 = GJSearchObject::create_2((SearchType)(4 * (v2->m_savedSearchType == FavouriteLists) + 99));\n  v4 = GameManager::sharedState();\n  if ( GameManager::getIntGameVariable(v4, \"0092\") <= 998\n    && (v5 = GameManager::sharedState(), GameManager::getIntGameVariable(v5, \"0092\") <= 0) )\n  {\n    v8 = 0;\n  }\n  else\n  {\n    v6 = GameManager::sharedState();\n    IntGameVariable = GameManager::getIntGameVariable(v6, \"0092\");\n    v8 = 999;\n    if ( IntGameVariable <= 998 )\n    {\n      v9 = GameManager::sharedState();\n      v8 = GameManager::getIntGameVariable(v9, \"0092\");\n    }\n  }\n  v3->m_folder = v8;\n  v10 = cocos2d::CCDirector::sharedDirector();\n  v11 = LevelBrowserLayer::scene(v3);\n  v12 = cocos2d::CCTransitionFade::create_1(0.5, v11);\n  cocos2d::CCDirector::pushScene(v10, v12);\n}", "assembly": "; \n; CreatorLayer::onSavedLevels from 0x100298410 to 0x1002984da (202 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x10029789f\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    rbp                                                            ; +0x0, 0x100298410\nmov     rbp, rsp                                                       ; +0x1, 0x100298411\npush    r14                                                            ; +0x4, 0x100298414\npush    rbx                                                            ; +0x6, 0x100298416\ncall    GameManager__sharedState                                       ; +0x7, 0x100298417\nxor     ecx, ecx                                                       ; +0xc, 0x10029841c\ncmp     dword ptr [rax+4B4h], 67h ; 'g'                                ; +0xe, 0x10029841e\nsetz    cl                                                             ; +0x15, 0x100298425\nlea     edi, ds:63h[rcx*4]                                             ; +0x18, 0x100298428\ncall    GJSearchObject__create_2                                       ; +0x1f, 0x10029842f\nmov     rbx, rax                                                       ; +0x24, 0x100298434\ncall    GameManager__sharedState                                       ; +0x27, 0x100298437\nlea     rsi, a0092; \"0092\"                                             ; +0x2c, 0x10029843c\nmov     rdi, rax                                                       ; +0x33, 0x100298443\ncall    GameManager__getIntGameVariable                                ; +0x36, 0x100298446\ncmp     eax, 3E6h                                                      ; +0x3b, 0x10029844b\njg      short loc_10029846A                                            ; +0x40, 0x100298450\ncall    GameManager__sharedState                                       ; +0x42, 0x100298452\nlea     rsi, a0092; \"0092\"                                             ; +0x47, 0x100298457\nmov     rdi, rax                                                       ; +0x4e, 0x10029845e\ncall    GameManager__getIntGameVariable                                ; +0x51, 0x100298461\ntest    eax, eax                                                       ; +0x56, 0x100298466\njle     short loc_1002984A3                                            ; +0x58, 0x100298468\ncall    GameManager__sharedState                                       ; +0x5a, 0x10029846a\nlea     rsi, a0092; \"0092\"                                             ; +0x5f, 0x10029846f\nmov     rdi, rax                                                       ; +0x66, 0x100298476\ncall    GameManager__getIntGameVariable                                ; +0x69, 0x100298479\nmov     ecx, eax                                                       ; +0x6e, 0x10029847e\nmov     eax, 3E7h                                                      ; +0x70, 0x100298480\ncmp     ecx, 3E6h                                                      ; +0x75, 0x100298485\njg      short loc_1002984A5                                            ; +0x7b, 0x10029848b\ncall    GameManager__sharedState                                       ; +0x7d, 0x10029848d\nlea     rsi, a0092; \"0092\"                                             ; +0x82, 0x100298492\nmov     rdi, rax                                                       ; +0x89, 0x100298499\ncall    GameManager__getIntGameVariable                                ; +0x8c, 0x10029849c\njmp     short loc_1002984A5                                            ; +0x91, 0x1002984a1\nxor     eax, eax                                                       ; +0x93, 0x1002984a3\nmov     [rbx+1A4h], eax                                                ; +0x95, 0x1002984a5\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x9b, 0x1002984ab\nmov     r14, rax                                                       ; +0xa0, 0x1002984b0\nmov     rdi, rbx                                                       ; +0xa3, 0x1002984b3\ncall    LevelBrowserLayer__scene                                       ; +0xa6, 0x1002984b6\nmovss   xmm0, cs:dword_100814FA8                                       ; +0xab, 0x1002984bb\nmov     rdi, rax                                                       ; +0xb3, 0x1002984c3\ncall    cocos2d__CCTransitionFade__create_1                            ; +0xb6, 0x1002984c6\nmov     rdi, r14                                                       ; +0xbb, 0x1002984cb\nmov     rsi, rax                                                       ; +0xbe, 0x1002984ce\npop     rbx                                                            ; +0xc1, 0x1002984d1\npop     r14                                                            ; +0xc2, 0x1002984d2\npop     rbp                                                            ; +0xc4, 0x1002984d4\njmp     cocos2d__CCDirector__pushScene                                 ; +0xc5, 0x1002984d5", "xrefs": ["CreatorLayer::init @ 0x10029789f"], "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"}