{"type": "func", "start": 5369594096, "end": 5369594235, "name": "EditLevelLayer::playStep3", "pseudocode": "// \n// EditLevelLayer::playStep3 from 0x1400d80f0 to 0x1400d817b (139 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::playStep2 @ 0x1400d80a5\n// > <???> @ 0x1406c87fc\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 EditLevelLayer::playStep3(EditLevelLayer *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCScene *v3; // rax\n  struct cocos2d::CCTransitionFade *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  v2 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = qword_1406C2ED8;\n  }\n  *(_DWORD *)(v2 + 700) = 3;\n  v3 = PlayLayer::scene(a1->m_level, 0, 0);\n  v4 = cocos2d::CCTransitionFade::create(0.5, v3);\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n  cocos2d::CCDirector::replaceScene(v6, v4);\n}", "assembly": "; \n; EditLevelLayer::playStep3 from 0x1400d80f0 to 0x1400d817b (139 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::playStep2 @ 0x1400d80a5\n; > <???> @ 0x1406c87fc\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    rbx                                                            ; +0x0, 0x1400d80f0\nsub     rsp, 20h                                                       ; +0x2, 0x1400d80f2\nmov     rbx, rcx                                                       ; +0x6, 0x1400d80f6\nmov     rax, cs:qword_1406C2ED8                                        ; +0x9, 0x1400d80f9\ntest    rax, rax                                                       ; +0x10, 0x1400d8100\njnz     short loc_1400D8134                                            ; +0x13, 0x1400d8103\nmov     ecx, 668h; Size                                                ; +0x15, 0x1400d8105\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1400d810a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1400d810f\nmov     rcx, rax                                                       ; +0x24, 0x1400d8114\ncall    sub_14017AB00                                                  ; +0x27, 0x1400d8117\nnop                                                                    ; +0x2c, 0x1400d811c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1400d811d\nmov     rdx, [rax]                                                     ; +0x34, 0x1400d8124\nmov     rcx, rax                                                       ; +0x37, 0x1400d8127\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1400d812a\nmov     rax, cs:qword_1406C2ED8                                        ; +0x3d, 0x1400d812d\nmov     dword ptr [rax+2BCh], 3                                        ; +0x44, 0x1400d8134\nxor     r8d, r8d                                                       ; +0x4e, 0x1400d813e\nxor     edx, edx                                                       ; +0x51, 0x1400d8141\nmov     rcx, [rbx+1C8h]                                                ; +0x53, 0x1400d8143\ncall    PlayLayer__scene                                               ; +0x5a, 0x1400d814a\nmov     rdx, rax                                                       ; +0x5f, 0x1400d814f\nmovss   xmm0, cs:dword_140622B08                                       ; +0x62, 0x1400d8152\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x6a, 0x1400d815a\nmov     rbx, rax                                                       ; +0x70, 0x1400d8160\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x73, 0x1400d8163\nmov     rcx, rax                                                       ; +0x79, 0x1400d8169\nmov     rdx, rbx                                                       ; +0x7c, 0x1400d816c\nadd     rsp, 20h                                                       ; +0x7f, 0x1400d816f\npop     rbx                                                            ; +0x83, 0x1400d8173\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x84, 0x1400d8174", "xrefs": ["EditLevelLayer::playStep2 @ 0x1400d80a5", "<???> @ 0x1406c87fc"], "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"}