{"type": "func", "start": 6443252544, "end": 6443252608, "name": "cocos2d::CCDirector::willSwitchToScene", "pseudocode": "// \n// cocos2d::CCDirector::willSwitchToScene from 0x1800c3b40 to 0x1800c3b80 (64 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x180056454\n// > cocos2d::CCTransitionMoveInL::onEnter @ 0x1800577b8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c36f0\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:22:26 +0000\n// \n\nvoid __fastcall cocos2d::CCDirector::willSwitchToScene(cocos2d::CCDirector *this, struct cocos2d::CCScene *a2)\n{\n  void (__fastcall ***v3)(_QWORD); // rcx\n  void (__fastcall ***v4)(_QWORD); // rcx\n\n  if ( !*((_BYTE *)this + 404) )\n  {\n    v3 = *((void (__fastcall ****)(_QWORD))this + 45);\n    if ( v3 )\n      (**v3)(v3);\n    v4 = *((void (__fastcall ****)(_QWORD))a2 + 40);\n    if ( v4 )\n      (**v4)(v4);\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::willSwitchToScene from 0x1800c3b40 to 0x1800c3b80 (64 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTransitionScene::hideOutShowIn @ 0x180056454\n; > cocos2d::CCTransitionMoveInL::onEnter @ 0x1800577b8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c36f0\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:22:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800c3b40\nsub     rsp, 20h                                                       ; +0x2, 0x1800c3b42\ncmp     byte ptr [rcx+194h], 0                                         ; +0x6, 0x1800c3b46\nmov     rbx, rdx                                                       ; +0xd, 0x1800c3b4d\njnz     short loc_1800C3B7A                                            ; +0x10, 0x1800c3b50\nmov     rcx, [rcx+168h]                                                ; +0x12, 0x1800c3b52\ntest    rcx, rcx                                                       ; +0x19, 0x1800c3b59\njz      short loc_1800C3B63                                            ; +0x1c, 0x1800c3b5c\nmov     rax, [rcx]                                                     ; +0x1e, 0x1800c3b5e\ncall    qword ptr [rax]                                                ; +0x21, 0x1800c3b61\nmov     rcx, [rbx+140h]                                                ; +0x23, 0x1800c3b63\ntest    rcx, rcx                                                       ; +0x2a, 0x1800c3b6a\njz      short loc_1800C3B7A                                            ; +0x2d, 0x1800c3b6d\nmov     rax, [rcx]                                                     ; +0x2f, 0x1800c3b6f\nadd     rsp, 20h                                                       ; +0x32, 0x1800c3b72\npop     rbx                                                            ; +0x36, 0x1800c3b76\njmp     qword ptr [rax]                                                ; +0x37, 0x1800c3b77\nadd     rsp, 20h                                                       ; +0x3a, 0x1800c3b7a\npop     rbx                                                            ; +0x3e, 0x1800c3b7e\nretn                                                                   ; +0x3f, 0x1800c3b7f", "xrefs": ["cocos2d::CCTransitionScene::hideOutShowIn @ 0x180056454", "cocos2d::CCTransitionMoveInL::onEnter @ 0x1800577b8", "<???> @ 0x18014cf68", "<???> @ 0x1801c36f0"], "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"}