{"type": "func", "start": 5371843344, "end": 5371843512, "name": "LevelInfoLayer::playStep4", "pseudocode": "// \n// LevelInfoLayer::playStep4 from 0x1402fd310 to 0x1402fd3b8 (168 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::loadLevelStep @ 0x1402fd2cb\n// > <???> @ 0x1406d4214\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=1\nvoid LevelInfoLayer::playStep4(LevelInfoLayer *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCTransitionFade *v3; // rbx\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  dword_1406C10B4 = clock();\n  v2 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = qword_1406C2ED8;\n  }\n  *(_BYTE *)(v2 + 1076) = 0;\n  v3 = cocos2d::CCTransitionFade::create(0.5, a1->m_playScene);\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n  cocos2d::CCDirector::replaceScene(v5, v3);\n  cocos2d::CCObject::release(a1->m_playScene);\n  a1->m_playScene = nullptr;\n}", "assembly": "; \n; LevelInfoLayer::playStep4 from 0x1402fd310 to 0x1402fd3b8 (168 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::loadLevelStep @ 0x1402fd2cb\n; > <???> @ 0x1406d4214\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, 0x1402fd310\npush    rdi                                                            ; +0x5, 0x1402fd315\nsub     rsp, 20h                                                       ; +0x6, 0x1402fd316\nmov     rdi, rcx                                                       ; +0xa, 0x1402fd31a\ncall    cs:clock                                                       ; +0xd, 0x1402fd31d\nmov     cs:dword_1406C10B4, eax                                        ; +0x13, 0x1402fd323\nmov     rax, cs:qword_1406C2ED8                                        ; +0x19, 0x1402fd329\ntest    rax, rax                                                       ; +0x20, 0x1402fd330\njnz     short loc_1402FD364                                            ; +0x23, 0x1402fd333\nmov     ecx, 668h; Size                                                ; +0x25, 0x1402fd335\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x1402fd33a\nmov     [rsp+28h+arg_0], rax                                           ; +0x2f, 0x1402fd33f\nmov     rcx, rax                                                       ; +0x34, 0x1402fd344\ncall    sub_14017AB00                                                  ; +0x37, 0x1402fd347\nnop                                                                    ; +0x3c, 0x1402fd34c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3d, 0x1402fd34d\nmov     rdx, [rax]                                                     ; +0x44, 0x1402fd354\nmov     rcx, rax                                                       ; +0x47, 0x1402fd357\ncall    qword ptr [rdx+48h]                                            ; +0x4a, 0x1402fd35a\nmov     rax, cs:qword_1406C2ED8                                        ; +0x4d, 0x1402fd35d\nmov     byte ptr [rax+434h], 0                                         ; +0x54, 0x1402fd364\nmov     rdx, [rdi+2B8h]                                                ; +0x5b, 0x1402fd36b\nmovss   xmm0, cs:dword_140622B08                                       ; +0x62, 0x1402fd372\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x6a, 0x1402fd37a\nmov     rbx, rax                                                       ; +0x70, 0x1402fd380\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x73, 0x1402fd383\nmov     rcx, rax                                                       ; +0x79, 0x1402fd389\nmov     rdx, rbx                                                       ; +0x7c, 0x1402fd38c\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x7f, 0x1402fd38f\nmov     rcx, [rdi+2B8h]                                                ; +0x85, 0x1402fd395\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8c, 0x1402fd39c\nmov     qword ptr [rdi+2B8h], 0                                        ; +0x92, 0x1402fd3a2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9d, 0x1402fd3ad\nadd     rsp, 20h                                                       ; +0xa2, 0x1402fd3b2\npop     rdi                                                            ; +0xa6, 0x1402fd3b6\nretn                                                                   ; +0xa7, 0x1402fd3b7", "xrefs": ["LevelInfoLayer::loadLevelStep @ 0x1402fd2cb", "<???> @ 0x1406d4214"], "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"}