{"type": "func", "start": 6443238048, "end": 6443238112, "name": "cocos2d::CCDirector::willSwitchToScene", "pseudocode": "// \n// cocos2d::CCDirector::willSwitchToScene from 0x1800c02a0 to 0x1800c02e0 (64 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x180054691\n// > cocos2d::CCTransitionMoveInL::onEnter @ 0x180055992\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9438\n// > <???> @ 0x1801b9444\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 __fastcall cocos2d::CCDirector::willSwitchToScene(cocos2d::CCDirector *this, struct cocos2d::CCScene *a2)\n{\n  cocos2d::CCSceneDelegate *m_pAppDelegate; // rcx\n  cocos2d::CCSceneDelegate *m_pDelegate; // rcx\n\n  if ( !this->m_bDontCallWillSwitch )\n  {\n    m_pAppDelegate = this->m_pAppDelegate;\n    if ( m_pAppDelegate )\n      ((void (__fastcall *)(cocos2d::CCSceneDelegate *))m_pAppDelegate->willSwitchToScene)(m_pAppDelegate);\n    m_pDelegate = a2->m_pDelegate;\n    if ( m_pDelegate )\n      ((void (__fastcall *)(cocos2d::CCSceneDelegate *))m_pDelegate->willSwitchToScene)(m_pDelegate);\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::willSwitchToScene from 0x1800c02a0 to 0x1800c02e0 (64 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCTransitionScene::hideOutShowIn @ 0x180054691\n; > cocos2d::CCTransitionMoveInL::onEnter @ 0x180055992\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9438\n; > <???> @ 0x1801b9444\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, 0x1800c02a0\nsub     rsp, 20h                                                       ; +0x2, 0x1800c02a2\ncmp     byte ptr [rcx+18Ch], 0                                         ; +0x6, 0x1800c02a6\nmov     rbx, rdx                                                       ; +0xd, 0x1800c02ad\njnz     short loc_1800C02DA                                            ; +0x10, 0x1800c02b0\nmov     rcx, [rcx+160h]                                                ; +0x12, 0x1800c02b2\ntest    rcx, rcx                                                       ; +0x19, 0x1800c02b9\njz      short loc_1800C02C3                                            ; +0x1c, 0x1800c02bc\nmov     rax, [rcx]                                                     ; +0x1e, 0x1800c02be\ncall    qword ptr [rax]                                                ; +0x21, 0x1800c02c1\nmov     rcx, [rbx+140h]                                                ; +0x23, 0x1800c02c3\ntest    rcx, rcx                                                       ; +0x2a, 0x1800c02ca\njz      short loc_1800C02DA                                            ; +0x2d, 0x1800c02cd\nmov     rax, [rcx]                                                     ; +0x2f, 0x1800c02cf\nadd     rsp, 20h                                                       ; +0x32, 0x1800c02d2\npop     rbx                                                            ; +0x36, 0x1800c02d6\njmp     qword ptr [rax]                                                ; +0x37, 0x1800c02d7\nadd     rsp, 20h                                                       ; +0x3a, 0x1800c02da\npop     rbx                                                            ; +0x3e, 0x1800c02de\nretn                                                                   ; +0x3f, 0x1800c02df", "xrefs": ["cocos2d::CCTransitionScene::hideOutShowIn @ 0x180054691", "cocos2d::CCTransitionMoveInL::onEnter @ 0x180055992", "<???> @ 0x1801438a8", "<???> @ 0x1801b9438", "<???> @ 0x1801b9444"], "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"}