{"type": "func", "start": 5372778176, "end": 5372778484, "name": "LevelAreaInnerLayer::playStep1", "pseudocode": "// \n// LevelAreaInnerLayer::playStep1 from 0x1403e16c0 to 0x1403e17f4 (308 bytes)\n// \n// 2 xrefs:\n// > LevelAreaInnerLayer::onDoor @ 0x1403e167b\n// > <???> @ 0x140924e18\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 11:31:41 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nbool __fastcall LevelAreaInnerLayer::playStep1(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  __int64 MainLevel; // rdi\n  unsigned int v5; // ebx\n  __int64 v6; // rcx\n  __int64 v7; // rax\n  __int64 MainLevelString; // rax\n  __int64 v9; // rbx\n  void *v10; // rdx\n  struct cocos2d::CCScene *v11; // rax\n  struct cocos2d::CCScene *v12; // rbx\n  __int64 v13; // rcx\n  cocos2d::CCDirector *v14; // rax\n  _BYTE v16[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v17; // [rsp+50h] [rbp+8h]\n  void *v18; // [rsp+50h] [rbp+8h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v17 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v17);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  *(_DWORD *)(v2 + 740) = 15;\n  *(_BYTE *)(a1 + 432) = 1;\n  v3 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v18 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v18);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v3 = *(_QWORD *)&qword_14090BFB0;\n  }\n  MainLevel = GameLevelManager::getMainLevel(v3, *(_DWORD *)(a1 + 428), 1u);\n  v5 = *(_DWORD *)(a1 + 428);\n  v7 = LocalLevelManager::sharedState(v6);\n  MainLevelString = LocalLevelManager::getMainLevelString(v7, v16, v5);\n  v9 = MainLevelString;\n  if ( MainLevel + 408 != MainLevelString )\n  {\n    v10 = (void *)MainLevelString;\n    if ( *(_QWORD *)(MainLevelString + 24) > 0xFu )\n      v10 = *(void **)MainLevelString;\n    sub_1400405A0((void **)(MainLevel + 408), v10, *(_QWORD *)(MainLevelString + 16));\n  }\n  sub_14003D310(v9);\n  v11 = (struct cocos2d::CCScene *)PlayLayer::scene(MainLevel, 0);\n  v12 = cocos2d::CCTransitionFade::create(0.5, v11);\n  v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13);\n  return cocos2d::CCDirector::replaceScene(v14, v12);\n}", "assembly": "; \n; LevelAreaInnerLayer::playStep1 from 0x1403e16c0 to 0x1403e17f4 (308 bytes)\n; \n; 2 xrefs:\n; > LevelAreaInnerLayer::onDoor @ 0x1403e167b\n; > <???> @ 0x140924e18\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 11:31:41 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403e16c0\npush    rdi                                                            ; +0x5, 0x1403e16c5\nsub     rsp, 40h                                                       ; +0x6, 0x1403e16c6\nmov     rbx, rcx                                                       ; +0xa, 0x1403e16ca\nmov     rax, cs:qword_14090BFD0                                        ; +0xd, 0x1403e16cd\ntest    rax, rax                                                       ; +0x14, 0x1403e16d4\njnz     short loc_1403E170B                                            ; +0x17, 0x1403e16d7\nmov     ecx, 6E8h; Size                                                ; +0x19, 0x1403e16d9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1403e16de\nmov     [rsp+48h+arg_0], rax                                           ; +0x23, 0x1403e16e3\nmov     rcx, rax                                                       ; +0x28, 0x1403e16e8\ncall    GameManager__GameManager                                       ; +0x2b, 0x1403e16eb\nnop                                                                    ; +0x30, 0x1403e16f0\nmov     cs:qword_14090BFD0, rax                                        ; +0x31, 0x1403e16f1\nmov     rcx, [rax]                                                     ; +0x38, 0x1403e16f8\nmov     rdx, [rcx+48h]                                                 ; +0x3b, 0x1403e16fb\nmov     rcx, rax                                                       ; +0x3f, 0x1403e16ff\ncall    rdx                                                            ; +0x42, 0x1403e1702\nmov     rax, cs:qword_14090BFD0                                        ; +0x44, 0x1403e1704\nmov     dword ptr [rax+2E4h], 0Fh                                      ; +0x4b, 0x1403e170b\nmov     byte ptr [rbx+1B0h], 1                                         ; +0x55, 0x1403e1715\nmov     rcx, cs:qword_14090BFB0                                        ; +0x5c, 0x1403e171c\ntest    rcx, rcx                                                       ; +0x63, 0x1403e1723\njnz     short loc_1403E175A                                            ; +0x66, 0x1403e1726\nmov     ecx, 690h; Size                                                ; +0x68, 0x1403e1728\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6d, 0x1403e172d\nmov     [rsp+48h+arg_0], rax                                           ; +0x72, 0x1403e1732\nmov     rcx, rax                                                       ; +0x77, 0x1403e1737\ncall    GameLevelManager__GameLevelManager                             ; +0x7a, 0x1403e173a\nnop                                                                    ; +0x7f, 0x1403e173f\nmov     cs:qword_14090BFB0, rax                                        ; +0x80, 0x1403e1740\nmov     rcx, [rax]                                                     ; +0x87, 0x1403e1747\nmov     rdx, [rcx+48h]                                                 ; +0x8a, 0x1403e174a\nmov     rcx, rax                                                       ; +0x8e, 0x1403e174e\ncall    rdx                                                            ; +0x91, 0x1403e1751\nmov     rcx, cs:qword_14090BFB0                                        ; +0x93, 0x1403e1753\nmov     r8b, 1                                                         ; +0x9a, 0x1403e175a\nmov     edx, [rbx+1ACh]                                                ; +0x9d, 0x1403e175d\ncall    GameLevelManager__getMainLevel                                 ; +0xa3, 0x1403e1763\nmov     rdi, rax                                                       ; +0xa8, 0x1403e1768\nmov     ebx, [rbx+1ACh]                                                ; +0xab, 0x1403e176b\ncall    LocalLevelManager__sharedState                                 ; +0xb1, 0x1403e1771\nmov     rcx, rax                                                       ; +0xb6, 0x1403e1776\nmov     r8d, ebx                                                       ; +0xb9, 0x1403e1779\nlea     rdx, [rsp+48h+var_28]                                          ; +0xbc, 0x1403e177c\ncall    LocalLevelManager__getMainLevelString                          ; +0xc1, 0x1403e1781\nmov     rbx, rax                                                       ; +0xc6, 0x1403e1786\nmov     [rsp+48h+arg_0], rax                                           ; +0xc9, 0x1403e1789\nlea     rcx, [rdi+198h]; void *                                        ; +0xce, 0x1403e178e\ncmp     rcx, rax                                                       ; +0xd5, 0x1403e1795\njz      short loc_1403E17B1                                            ; +0xd8, 0x1403e1798\nmov     rdx, rax                                                       ; +0xda, 0x1403e179a\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xdd, 0x1403e179d\njbe     short loc_1403E17A7                                            ; +0xe2, 0x1403e17a2\nmov     rdx, [rax]; Src                                                ; +0xe4, 0x1403e17a4\nmov     r8, [rax+10h]; Size                                            ; +0xe7, 0x1403e17a7\ncall    sub_1400405A0                                                  ; +0xeb, 0x1403e17ab\nnop                                                                    ; +0xf0, 0x1403e17b0\nmov     rcx, rbx                                                       ; +0xf1, 0x1403e17b1\ncall    sub_14003D310                                                  ; +0xf4, 0x1403e17b4\nxor     edx, edx                                                       ; +0xf9, 0x1403e17b9\nmov     rcx, rdi                                                       ; +0xfb, 0x1403e17bb\ncall    PlayLayer__scene                                               ; +0xfe, 0x1403e17be\nmov     rdx, rax                                                       ; +0x103, 0x1403e17c3\nmovss   xmm0, cs:dword_140834F20                                       ; +0x106, 0x1403e17c6\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x10e, 0x1403e17ce\nmov     rbx, rax                                                       ; +0x114, 0x1403e17d4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x117, 0x1403e17d7\nmov     rcx, rax                                                       ; +0x11d, 0x1403e17dd\nmov     rdx, rbx                                                       ; +0x120, 0x1403e17e0\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x123, 0x1403e17e3\nadd     rsp, 40h                                                       ; +0x128, 0x1403e17e8\npop     rdi                                                            ; +0x12c, 0x1403e17ec\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x12d, 0x1403e17ed", "xrefs": ["LevelAreaInnerLayer::onDoor @ 0x1403e167b", "<???> @ 0x140924e18"], "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"}