{"type": "func", "start": 5371626384, "end": 5371626687, "name": "LevelAreaInnerLayer::playStep1", "pseudocode": "// \n// LevelAreaInnerLayer::playStep1 from 0x1402c8390 to 0x1402c84bf (303 bytes)\n// \n// 2 xrefs:\n// > LevelAreaInnerLayer::onDoor @ 0x1402c8358\n// > <???> @ 0x1406d2bc4\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\n// Hidden C++ exception states: #wind=3\nbool LevelAreaInnerLayer::playStep1(LevelAreaInnerLayer *a1)\n{\n  __int64 v2; // rax\n  GameLevelManager *v3; // rcx\n  GJGameLevel *MainLevel; // rdi\n  LocalLevelManager *v5; // rax\n  __int64 MainLevelString; // rax\n  __int64 v7; // rbx\n  void *v8; // rdx\n  struct cocos2d::CCScene *v9; // rax\n  struct cocos2d::CCTransitionFade *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  _BYTE v14[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v15; // [rsp+50h] [rbp+8h]\n  void *v16; // [rsp+50h] [rbp+8h]\n\n  v2 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v15 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = qword_1406C2ED8;\n  }\n  *(_DWORD *)(v2 + 700) = 15;\n  a1->m_exiting = 1;\n  v3 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v16 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v16);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  MainLevel = GameLevelManager::getMainLevel(v3, a1->m_levelID, 1);\n  v5 = LocalLevelManager::sharedState();\n  MainLevelString = LocalLevelManager::getMainLevelString(v5, v14, (unsigned int)a1->m_levelID);\n  v7 = MainLevelString;\n  if ( &MainLevel->m_levelString != (std::string *)MainLevelString )\n  {\n    v8 = (void *)MainLevelString;\n    if ( *(_QWORD *)(MainLevelString + 24) > 0xFu )\n      v8 = *(void **)MainLevelString;\n    sub_14003CCE0((void **)&MainLevel->m_levelString, v8, *(_QWORD *)(MainLevelString + 16));\n  }\n  sub_14003A830(v7);\n  v9 = PlayLayer::scene(MainLevel, 0, 0);\n  v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n  v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n  return cocos2d::CCDirector::replaceScene(v12, v10);\n}", "assembly": "; \n; LevelAreaInnerLayer::playStep1 from 0x1402c8390 to 0x1402c84bf (303 bytes)\n; \n; 2 xrefs:\n; > LevelAreaInnerLayer::onDoor @ 0x1402c8358\n; > <???> @ 0x1406d2bc4\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402c8390\npush    rdi                                                            ; +0x5, 0x1402c8395\nsub     rsp, 40h                                                       ; +0x6, 0x1402c8396\nmov     rbx, rcx                                                       ; +0xa, 0x1402c839a\nmov     rax, cs:qword_1406C2ED8                                        ; +0xd, 0x1402c839d\ntest    rax, rax                                                       ; +0x14, 0x1402c83a4\njnz     short loc_1402C83D8                                            ; +0x17, 0x1402c83a7\nmov     ecx, 668h; Size                                                ; +0x19, 0x1402c83a9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1402c83ae\nmov     [rsp+48h+arg_0], rax                                           ; +0x23, 0x1402c83b3\nmov     rcx, rax                                                       ; +0x28, 0x1402c83b8\ncall    sub_14017AB00                                                  ; +0x2b, 0x1402c83bb\nnop                                                                    ; +0x30, 0x1402c83c0\nmov     cs:qword_1406C2ED8, rax                                        ; +0x31, 0x1402c83c1\nmov     rdx, [rax]                                                     ; +0x38, 0x1402c83c8\nmov     rcx, rax                                                       ; +0x3b, 0x1402c83cb\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x1402c83ce\nmov     rax, cs:qword_1406C2ED8                                        ; +0x41, 0x1402c83d1\nmov     dword ptr [rax+2BCh], 0Fh                                      ; +0x48, 0x1402c83d8\nmov     byte ptr [rbx+1B0h], 1                                         ; +0x52, 0x1402c83e2\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x59, 0x1402c83e9\ntest    rcx, rcx                                                       ; +0x60, 0x1402c83f0\njnz     short loc_1402C8424                                            ; +0x63, 0x1402c83f3\nmov     ecx, 3D0h; Size                                                ; +0x65, 0x1402c83f5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6a, 0x1402c83fa\nmov     [rsp+48h+arg_0], rax                                           ; +0x6f, 0x1402c83ff\nmov     rcx, rax                                                       ; +0x74, 0x1402c8404\ncall    sub_140141280                                                  ; +0x77, 0x1402c8407\nnop                                                                    ; +0x7c, 0x1402c840c\nmov     cs:qword_1406C2EC0, rax                                        ; +0x7d, 0x1402c840d\nmov     rdx, [rax]                                                     ; +0x84, 0x1402c8414\nmov     rcx, rax                                                       ; +0x87, 0x1402c8417\ncall    qword ptr [rdx+48h]                                            ; +0x8a, 0x1402c841a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x8d, 0x1402c841d\nmov     r8b, 1                                                         ; +0x94, 0x1402c8424\nmov     edx, [rbx+1ACh]                                                ; +0x97, 0x1402c8427\ncall    GameLevelManager__getMainLevel                                 ; +0x9d, 0x1402c842d\nmov     rdi, rax                                                       ; +0xa2, 0x1402c8432\ncall    LocalLevelManager__sharedState                                 ; +0xa5, 0x1402c8435\nmov     rcx, rax                                                       ; +0xaa, 0x1402c843a\nmov     r8d, [rbx+1ACh]                                                ; +0xad, 0x1402c843d\nlea     rdx, [rsp+48h+var_28]                                          ; +0xb4, 0x1402c8444\ncall    LocalLevelManager__getMainLevelString                          ; +0xb9, 0x1402c8449\nmov     rbx, rax                                                       ; +0xbe, 0x1402c844e\nmov     [rsp+48h+arg_0], rax                                           ; +0xc1, 0x1402c8451\nlea     rcx, [rdi+198h]; void *                                        ; +0xc6, 0x1402c8456\ncmp     rcx, rax                                                       ; +0xcd, 0x1402c845d\njz      short loc_1402C8479                                            ; +0xd0, 0x1402c8460\nmov     rdx, rax                                                       ; +0xd2, 0x1402c8462\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xd5, 0x1402c8465\njbe     short loc_1402C846F                                            ; +0xda, 0x1402c846a\nmov     rdx, [rax]; Src                                                ; +0xdc, 0x1402c846c\nmov     r8, [rax+10h]; Size                                            ; +0xdf, 0x1402c846f\ncall    sub_14003CCE0                                                  ; +0xe3, 0x1402c8473\nnop                                                                    ; +0xe8, 0x1402c8478\nmov     rcx, rbx                                                       ; +0xe9, 0x1402c8479\ncall    sub_14003A830                                                  ; +0xec, 0x1402c847c\nxor     r8d, r8d                                                       ; +0xf1, 0x1402c8481\nxor     edx, edx                                                       ; +0xf4, 0x1402c8484\nmov     rcx, rdi                                                       ; +0xf6, 0x1402c8486\ncall    PlayLayer__scene                                               ; +0xf9, 0x1402c8489\nmov     rdx, rax                                                       ; +0xfe, 0x1402c848e\nmovss   xmm0, cs:dword_140622B08                                       ; +0x101, 0x1402c8491\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x109, 0x1402c8499\nmov     rbx, rax                                                       ; +0x10f, 0x1402c849f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x112, 0x1402c84a2\nmov     rcx, rax                                                       ; +0x118, 0x1402c84a8\nmov     rdx, rbx                                                       ; +0x11b, 0x1402c84ab\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x11e, 0x1402c84ae\nadd     rsp, 40h                                                       ; +0x123, 0x1402c84b3\npop     rdi                                                            ; +0x127, 0x1402c84b7\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x128, 0x1402c84b8", "xrefs": ["LevelAreaInnerLayer::onDoor @ 0x1402c8358", "<???> @ 0x1406d2bc4"], "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"}