{"type": "func", "start": 6443233168, "end": 6443233358, "name": "cocos2d::CCDirector::pushScene", "pseudocode": "// \n// cocos2d::CCDirector::pushScene from 0x1800bef90 to 0x1800bf04e (190 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::runWithScene @ 0x1800bf309\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9270\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\nchar __fastcall cocos2d::CCDirector::pushScene(cocos2d::CCDirector *this, struct cocos2d::CCScene *a2)\n{\n  __int64 v5; // rax\n  bool v6; // si\n  cocos2d::CCScene *m_pNextScene; // rdi\n  cocos2d::CCSceneDelegate *m_pAppDelegate; // rcx\n  cocos2d::CCSceneDelegate *m_pDelegate; // rcx\n\n  if ( this->m_bIsTransitioning )\n    return 0;\n  this->m_bSendCleanupToScene = 0;\n  cocos2d::CCArray::addObject(this->m_pobScenesStack, a2);\n  this->m_pNextScene = a2;\n  v5 = _RTDynamicCast(\n         a2,\n         0,\n         &cocos2d::CCScene `RTTI Type Descriptor',\n         &cocos2d::CCTransitionScene `RTTI Type Descriptor',\n         0);\n  v6 = v5 != 0;\n  if ( !v5 )\n  {\n    m_pNextScene = this->m_pNextScene;\n    if ( !this->m_bDontCallWillSwitch )\n    {\n      m_pAppDelegate = this->m_pAppDelegate;\n      if ( m_pAppDelegate )\n        ((void (__fastcall *)(cocos2d::CCSceneDelegate *, cocos2d::CCScene *))m_pAppDelegate->willSwitchToScene)(\n          m_pAppDelegate,\n          this->m_pNextScene);\n      m_pDelegate = m_pNextScene->m_pDelegate;\n      if ( m_pDelegate )\n        ((void (__fastcall *)(cocos2d::CCSceneDelegate *))m_pDelegate->willSwitchToScene)(m_pDelegate);\n    }\n  }\n  this->m_bIsTransitioning = v6;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCDirector::pushScene from 0x1800bef90 to 0x1800bf04e (190 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::runWithScene @ 0x1800bf309\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9270\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, 0x1800bef90\npush    rdi                                                            ; +0x5, 0x1800bef95\nsub     rsp, 30h                                                       ; +0x6, 0x1800bef96\ncmp     byte ptr [rcx+0A8h], 0                                         ; +0xa, 0x1800bef9a\nmov     rdi, rdx                                                       ; +0x11, 0x1800befa1\nmov     rbx, rcx                                                       ; +0x14, 0x1800befa4\njz      short loc_1800BEFB6                                            ; +0x17, 0x1800befa7\nxor     al, al                                                         ; +0x19, 0x1800befa9\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x1b, 0x1800befab\nadd     rsp, 30h                                                       ; +0x20, 0x1800befb0\npop     rdi                                                            ; +0x24, 0x1800befb4\nretn                                                                   ; +0x25, 0x1800befb5\nmov     byte ptr [rcx+118h], 0                                         ; +0x26, 0x1800befb6\nmov     rcx, [rcx+120h]; this                                          ; +0x2d, 0x1800befbd\nmov     [rsp+38h+arg_0], rsi                                           ; +0x34, 0x1800befc4\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x39, 0x1800befc9\nlea     r9, ??_R0?AVCCTransitionScene@cocos2d@@@8; cocos2d::CCTransitionScene `RTTI Type Descriptor' ; +0x3e, 0x1800befce\nmov     [rbx+110h], rdi                                                ; +0x45, 0x1800befd5\nlea     r8, ??_R0?AVCCScene@cocos2d@@@8; cocos2d::CCScene `RTTI Type Descriptor' ; +0x4c, 0x1800befdc\nmov     [rsp+38h+var_18], 0                                            ; +0x53, 0x1800befe3\nxor     edx, edx                                                       ; +0x5b, 0x1800befeb\nmov     rcx, rdi                                                       ; +0x5d, 0x1800befed\ncall    __RTDynamicCast                                                ; +0x60, 0x1800beff0\ntest    rax, rax                                                       ; +0x65, 0x1800beff5\nsetnz   sil                                                            ; +0x68, 0x1800beff8\ntest    rax, rax                                                       ; +0x6c, 0x1800beffc\njnz     short loc_1800BF035                                            ; +0x6f, 0x1800befff\nmov     rdi, [rbx+110h]                                                ; +0x71, 0x1800bf001\ncmp     [rbx+18Ch], al                                                 ; +0x78, 0x1800bf008\njnz     short loc_1800BF035                                            ; +0x7e, 0x1800bf00e\nmov     rcx, [rbx+160h]                                                ; +0x80, 0x1800bf010\ntest    rcx, rcx                                                       ; +0x87, 0x1800bf017\njz      short loc_1800BF024                                            ; +0x8a, 0x1800bf01a\nmov     rax, [rcx]                                                     ; +0x8c, 0x1800bf01c\nmov     rdx, rdi                                                       ; +0x8f, 0x1800bf01f\ncall    qword ptr [rax]                                                ; +0x92, 0x1800bf022\nmov     rcx, [rdi+140h]                                                ; +0x94, 0x1800bf024\ntest    rcx, rcx                                                       ; +0x9b, 0x1800bf02b\njz      short loc_1800BF035                                            ; +0x9e, 0x1800bf02e\nmov     rax, [rcx]                                                     ; +0xa0, 0x1800bf030\ncall    qword ptr [rax]                                                ; +0xa3, 0x1800bf033\nmov     [rbx+0A8h], sil                                                ; +0xa5, 0x1800bf035\nmov     al, 1                                                          ; +0xac, 0x1800bf03c\nmov     rsi, [rsp+38h+arg_0]                                           ; +0xae, 0x1800bf03e\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xb3, 0x1800bf043\nadd     rsp, 30h                                                       ; +0xb8, 0x1800bf048\npop     rdi                                                            ; +0xbc, 0x1800bf04c\nretn                                                                   ; +0xbd, 0x1800bf04d", "xrefs": ["cocos2d::CCDirector::runWithScene @ 0x1800bf309", "<???> @ 0x1801438a8", "<???> @ 0x1801b9270"], "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"}