{"type": "func", "start": 4297603152, "end": 4297603381, "name": "CreatorLayer::onMyLevels", "pseudocode": "// \n// CreatorLayer::onMyLevels from 0x100283850 to 0x100283935 (229 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x100282810\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:27:44 +0000\n// \n\n__int64 __fastcall CreatorLayer::onMyLevels(__int64 a1, const char *a2, __int64 a3)\n{\n  __int64 v3; // rdx\n  __int64 v4; // rax\n  double v5; // xmm0_8\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rdx\n  __int64 v9; // rax\n  __int64 v10; // rdi\n  __int64 v11; // rdx\n  int v12; // eax\n  __int64 v13; // rax\n  int v14; // eax\n  __int64 v15; // rax\n  __int64 v16; // rdx\n  int v17; // eax\n  int v18; // ecx\n  int v19; // eax\n  __int64 v20; // rax\n  __int64 v21; // r14\n  __int64 v22; // rax\n  char *v23; // rax\n\n  GameManager::sharedState(a1, a2, a3);\n  if ( *(_DWORD *)(v4 + 1304) == 102\n    && (*(_QWORD *)&v5 = GameManager::sharedState(a1, a2, v3).u64[0],\n        !(unsigned __int8)GameManager::onlyCuratedLevels(v6, v5)) )\n  {\n    v10 = 102;\n    v7 = GJSearchObject::create_2(102);\n  }\n  else\n  {\n    v7 = GJSearchObject::create_2(98);\n    GameManager::sharedState(98, a2, v8);\n    v10 = v9;\n    GameManager::getIntGameVariable(v9, \"0091\");\n    if ( v12 <= 998\n      && (GameManager::sharedState(v10, \"0091\", v11),\n          a2 = \"0091\",\n          v10 = v13,\n          GameManager::getIntGameVariable(v13, \"0091\"),\n          v14 <= 0) )\n    {\n      v19 = 0;\n    }\n    else\n    {\n      GameManager::sharedState(v10, \"0091\", v11);\n      a2 = \"0091\";\n      v10 = v15;\n      GameManager::getIntGameVariable(v15, \"0091\");\n      v18 = v17;\n      v19 = 999;\n      if ( v18 <= 998 )\n      {\n        GameManager::sharedState(v10, \"0091\", v16);\n        a2 = \"0091\";\n        v10 = v20;\n        GameManager::getIntGameVariable(v20, \"0091\");\n      }\n    }\n    *(_DWORD *)(v7 + 420) = v19;\n  }\n  v21 = cocos2d::CCDirector::sharedDirector(v10, a2);\n  v22 = LevelBrowserLayer::scene(v7);\n  v23 = cocos2d::CCTransitionFade::create_1(v22, 0.5);\n  return cocos2d::CCDirector::pushScene(v21, v23);\n}", "assembly": "; \n; CreatorLayer::onMyLevels from 0x100283850 to 0x100283935 (229 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x100282810\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:27:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x100283850\nmov     rbp, rsp                                                       ; +0x1, 0x100283851\npush    r14                                                            ; +0x4, 0x100283854\npush    rbx                                                            ; +0x6, 0x100283856\ncall    GameManager__sharedState                                       ; +0x7, 0x100283857\ncmp     dword ptr [rax+518h], 66h ; 'f'                                ; +0xc, 0x10028385c\njnz     short loc_100283876                                            ; +0x13, 0x100283863\ncall    GameManager__sharedState                                       ; +0x15, 0x100283865\nmov     rdi, rax                                                       ; +0x1a, 0x10028386a\ncall    GameManager__onlyCuratedLevels                                 ; +0x1d, 0x10028386d\ntest    al, al                                                         ; +0x22, 0x100283872\njz      short loc_1002838EF                                            ; +0x24, 0x100283874\nmov     edi, 62h ; 'b'                                                 ; +0x26, 0x100283876\ncall    GJSearchObject__create_2                                       ; +0x2b, 0x10028387b\nmov     rbx, rax                                                       ; +0x30, 0x100283880\ncall    GameManager__sharedState                                       ; +0x33, 0x100283883\nlea     rsi, a0091; \"0091\"                                             ; +0x38, 0x100283888\nmov     rdi, rax                                                       ; +0x3f, 0x10028388f\ncall    GameManager__getIntGameVariable                                ; +0x42, 0x100283892\ncmp     eax, 3E6h                                                      ; +0x47, 0x100283897\njg      short loc_1002838B6                                            ; +0x4c, 0x10028389c\ncall    GameManager__sharedState                                       ; +0x4e, 0x10028389e\nlea     rsi, a0091; \"0091\"                                             ; +0x53, 0x1002838a3\nmov     rdi, rax                                                       ; +0x5a, 0x1002838aa\ncall    GameManager__getIntGameVariable                                ; +0x5d, 0x1002838ad\ntest    eax, eax                                                       ; +0x62, 0x1002838b2\njle     short loc_1002838FE                                            ; +0x64, 0x1002838b4\ncall    GameManager__sharedState                                       ; +0x66, 0x1002838b6\nlea     rsi, a0091; \"0091\"                                             ; +0x6b, 0x1002838bb\nmov     rdi, rax                                                       ; +0x72, 0x1002838c2\ncall    GameManager__getIntGameVariable                                ; +0x75, 0x1002838c5\nmov     ecx, eax                                                       ; +0x7a, 0x1002838ca\nmov     eax, 3E7h                                                      ; +0x7c, 0x1002838cc\ncmp     ecx, 3E6h                                                      ; +0x81, 0x1002838d1\njg      short loc_100283900                                            ; +0x87, 0x1002838d7\ncall    GameManager__sharedState                                       ; +0x89, 0x1002838d9\nlea     rsi, a0091; \"0091\"                                             ; +0x8e, 0x1002838de\nmov     rdi, rax                                                       ; +0x95, 0x1002838e5\ncall    GameManager__getIntGameVariable                                ; +0x98, 0x1002838e8\njmp     short loc_100283900                                            ; +0x9d, 0x1002838ed\nmov     edi, 66h ; 'f'                                                 ; +0x9f, 0x1002838ef\ncall    GJSearchObject__create_2                                       ; +0xa4, 0x1002838f4\nmov     rbx, rax                                                       ; +0xa9, 0x1002838f9\njmp     short loc_100283906                                            ; +0xac, 0x1002838fc\nxor     eax, eax                                                       ; +0xae, 0x1002838fe\nmov     [rbx+1A4h], eax                                                ; +0xb0, 0x100283900\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xb6, 0x100283906\nmov     r14, rax                                                       ; +0xbb, 0x10028390b\nmov     rdi, rbx                                                       ; +0xbe, 0x10028390e\ncall    LevelBrowserLayer__scene                                       ; +0xc1, 0x100283911\nmovss   xmm0, cs:dword_100A03578                                       ; +0xc6, 0x100283916\nmov     rdi, rax                                                       ; +0xce, 0x10028391e\ncall    cocos2d__CCTransitionFade__create_1                            ; +0xd1, 0x100283921\nmov     rdi, r14                                                       ; +0xd6, 0x100283926\nmov     rsi, rax                                                       ; +0xd9, 0x100283929\npop     rbx                                                            ; +0xdc, 0x10028392c\npop     r14                                                            ; +0xdd, 0x10028392d\npop     rbp                                                            ; +0xdf, 0x10028392f\njmp     cocos2d__CCDirector__pushScene                                 ; +0xe0, 0x100283930", "xrefs": ["CreatorLayer::init @ 0x100282810"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}