{"type": "func", "start": 4297689968, "end": 4297690180, "name": "CreatorLayer::onMyLevels", "pseudocode": "// \n// CreatorLayer::onMyLevels from 0x100298b70 to 0x100298c44 (212 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x100297c7b\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::onMyLevels(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  SearchType m_localSearchType; // r14d\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  m_localSearchType = GameManager::sharedState()->m_localSearchType;\n  v3 = GJSearchObject::create_2((SearchType)(4 * (m_localSearchType == MyLists) + 98));\n  if ( m_localSearchType != MyLists )\n  {\n    v4 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v4, \"0091\") <= 998\n      && (v5 = GameManager::sharedState(), GameManager::getIntGameVariable(v5, \"0091\") <= 0) )\n    {\n      v8 = 0;\n    }\n    else\n    {\n      v6 = GameManager::sharedState();\n      IntGameVariable = GameManager::getIntGameVariable(v6, \"0091\");\n      v8 = 999;\n      if ( IntGameVariable <= 998 )\n      {\n        v9 = GameManager::sharedState();\n        v8 = GameManager::getIntGameVariable(v9, \"0091\");\n      }\n    }\n    v3->m_folder = v8;\n  }\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::onMyLevels from 0x100298b70 to 0x100298c44 (212 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x100297c7b\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, 0x100298b70\nmov     rbp, rsp                                                       ; +0x1, 0x100298b71\npush    r14                                                            ; +0x4, 0x100298b74\npush    rbx                                                            ; +0x6, 0x100298b76\ncall    GameManager__sharedState                                       ; +0x7, 0x100298b77\nmov     r14d, [rax+4B0h]                                               ; +0xc, 0x100298b7c\nxor     eax, eax                                                       ; +0x13, 0x100298b83\ncmp     r14d, 66h ; 'f'                                                ; +0x15, 0x100298b85\nsetz    al                                                             ; +0x19, 0x100298b89\nlea     edi, ds:62h[rax*4]                                             ; +0x1c, 0x100298b8c\ncall    GJSearchObject__create_2                                       ; +0x23, 0x100298b93\nmov     rbx, rax                                                       ; +0x28, 0x100298b98\ncmp     r14d, 66h ; 'f'                                                ; +0x2b, 0x100298b9b\njz      short loc_100298C15                                            ; +0x2f, 0x100298b9f\ncall    GameManager__sharedState                                       ; +0x31, 0x100298ba1\nlea     rsi, a0091; \"0091\"                                             ; +0x36, 0x100298ba6\nmov     rdi, rax                                                       ; +0x3d, 0x100298bad\ncall    GameManager__getIntGameVariable                                ; +0x40, 0x100298bb0\ncmp     eax, 3E6h                                                      ; +0x45, 0x100298bb5\njg      short loc_100298BD4                                            ; +0x4a, 0x100298bba\ncall    GameManager__sharedState                                       ; +0x4c, 0x100298bbc\nlea     rsi, a0091; \"0091\"                                             ; +0x51, 0x100298bc1\nmov     rdi, rax                                                       ; +0x58, 0x100298bc8\ncall    GameManager__getIntGameVariable                                ; +0x5b, 0x100298bcb\ntest    eax, eax                                                       ; +0x60, 0x100298bd0\njle     short loc_100298C0D                                            ; +0x62, 0x100298bd2\ncall    GameManager__sharedState                                       ; +0x64, 0x100298bd4\nlea     rsi, a0091; \"0091\"                                             ; +0x69, 0x100298bd9\nmov     rdi, rax                                                       ; +0x70, 0x100298be0\ncall    GameManager__getIntGameVariable                                ; +0x73, 0x100298be3\nmov     ecx, eax                                                       ; +0x78, 0x100298be8\nmov     eax, 3E7h                                                      ; +0x7a, 0x100298bea\ncmp     ecx, 3E6h                                                      ; +0x7f, 0x100298bef\njg      short loc_100298C0F                                            ; +0x85, 0x100298bf5\ncall    GameManager__sharedState                                       ; +0x87, 0x100298bf7\nlea     rsi, a0091; \"0091\"                                             ; +0x8c, 0x100298bfc\nmov     rdi, rax                                                       ; +0x93, 0x100298c03\ncall    GameManager__getIntGameVariable                                ; +0x96, 0x100298c06\njmp     short loc_100298C0F                                            ; +0x9b, 0x100298c0b\nxor     eax, eax                                                       ; +0x9d, 0x100298c0d\nmov     [rbx+1A4h], eax                                                ; +0x9f, 0x100298c0f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xa5, 0x100298c15\nmov     r14, rax                                                       ; +0xaa, 0x100298c1a\nmov     rdi, rbx                                                       ; +0xad, 0x100298c1d\ncall    LevelBrowserLayer__scene                                       ; +0xb0, 0x100298c20\nmovss   xmm0, cs:dword_100814FA8                                       ; +0xb5, 0x100298c25\nmov     rdi, rax                                                       ; +0xbd, 0x100298c2d\ncall    cocos2d__CCTransitionFade__create_1                            ; +0xc0, 0x100298c30\nmov     rdi, r14                                                       ; +0xc5, 0x100298c35\nmov     rsi, rax                                                       ; +0xc8, 0x100298c38\npop     rbx                                                            ; +0xcb, 0x100298c3b\npop     r14                                                            ; +0xcc, 0x100298c3c\npop     rbp                                                            ; +0xce, 0x100298c3e\njmp     cocos2d__CCDirector__pushScene                                 ; +0xcf, 0x100298c3f", "xrefs": ["CreatorLayer::init @ 0x100297c7b"], "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"}