{"type": "func", "start": 6443247584, "end": 6443247774, "name": "cocos2d::CCDirector::pushScene", "pseudocode": "// \n// cocos2d::CCDirector::pushScene from 0x1800c27e0 to 0x1800c289e (190 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::runWithScene @ 0x1800c2b59\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3534\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:25 +0000\n// \n\nchar __fastcall cocos2d::CCDirector::pushScene(cocos2d::CCDirector *this, struct cocos2d::CCScene *a2)\n{\n  __int64 v5; // rax\n  bool v6; // si\n  __int64 v7; // rdi\n  void (__fastcall ***v8)(_QWORD, _QWORD); // rcx\n  void (__fastcall ***v9)(_QWORD); // rcx\n\n  if ( *((_BYTE *)this + 176) )\n    return 0;\n  *((_BYTE *)this + 288) = 0;\n  cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 37), a2);\n  *((_QWORD *)this + 35) = 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    v7 = *((_QWORD *)this + 35);\n    if ( !*((_BYTE *)this + 404) )\n    {\n      v8 = *((void (__fastcall ****)(_QWORD, _QWORD))this + 45);\n      if ( v8 )\n        (**v8)(v8, *((_QWORD *)this + 35));\n      v9 = *(void (__fastcall ****)(_QWORD))(v7 + 320);\n      if ( v9 )\n        (**v9)(v9);\n    }\n  }\n  *((_BYTE *)this + 176) = v6;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCDirector::pushScene from 0x1800c27e0 to 0x1800c289e (190 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::runWithScene @ 0x1800c2b59\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3534\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:25 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800c27e0\npush    rdi                                                            ; +0x5, 0x1800c27e5\nsub     rsp, 30h                                                       ; +0x6, 0x1800c27e6\ncmp     byte ptr [rcx+0B0h], 0                                         ; +0xa, 0x1800c27ea\nmov     rdi, rdx                                                       ; +0x11, 0x1800c27f1\nmov     rbx, rcx                                                       ; +0x14, 0x1800c27f4\njz      short loc_1800C2806                                            ; +0x17, 0x1800c27f7\nxor     al, al                                                         ; +0x19, 0x1800c27f9\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x1b, 0x1800c27fb\nadd     rsp, 30h                                                       ; +0x20, 0x1800c2800\npop     rdi                                                            ; +0x24, 0x1800c2804\nretn                                                                   ; +0x25, 0x1800c2805\nmov     byte ptr [rcx+120h], 0                                         ; +0x26, 0x1800c2806\nmov     rcx, [rcx+128h]; this                                          ; +0x2d, 0x1800c280d\nmov     [rsp+38h+arg_0], rsi                                           ; +0x34, 0x1800c2814\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x39, 0x1800c2819\nlea     r9, ??_R0?AVCCTransitionScene@cocos2d@@@8; cocos2d::CCTransitionScene `RTTI Type Descriptor' ; +0x3e, 0x1800c281e\nmov     [rbx+118h], rdi                                                ; +0x45, 0x1800c2825\nlea     r8, ??_R0?AVCCScene@cocos2d@@@8; cocos2d::CCScene `RTTI Type Descriptor' ; +0x4c, 0x1800c282c\nmov     [rsp+38h+var_18], 0                                            ; +0x53, 0x1800c2833\nxor     edx, edx                                                       ; +0x5b, 0x1800c283b\nmov     rcx, rdi                                                       ; +0x5d, 0x1800c283d\ncall    __RTDynamicCast                                                ; +0x60, 0x1800c2840\ntest    rax, rax                                                       ; +0x65, 0x1800c2845\nsetnz   sil                                                            ; +0x68, 0x1800c2848\ntest    rax, rax                                                       ; +0x6c, 0x1800c284c\njnz     short loc_1800C2885                                            ; +0x6f, 0x1800c284f\nmov     rdi, [rbx+118h]                                                ; +0x71, 0x1800c2851\ncmp     [rbx+194h], al                                                 ; +0x78, 0x1800c2858\njnz     short loc_1800C2885                                            ; +0x7e, 0x1800c285e\nmov     rcx, [rbx+168h]                                                ; +0x80, 0x1800c2860\ntest    rcx, rcx                                                       ; +0x87, 0x1800c2867\njz      short loc_1800C2874                                            ; +0x8a, 0x1800c286a\nmov     rax, [rcx]                                                     ; +0x8c, 0x1800c286c\nmov     rdx, rdi                                                       ; +0x8f, 0x1800c286f\ncall    qword ptr [rax]                                                ; +0x92, 0x1800c2872\nmov     rcx, [rdi+140h]                                                ; +0x94, 0x1800c2874\ntest    rcx, rcx                                                       ; +0x9b, 0x1800c287b\njz      short loc_1800C2885                                            ; +0x9e, 0x1800c287e\nmov     rax, [rcx]                                                     ; +0xa0, 0x1800c2880\ncall    qword ptr [rax]                                                ; +0xa3, 0x1800c2883\nmov     [rbx+0B0h], sil                                                ; +0xa5, 0x1800c2885\nmov     al, 1                                                          ; +0xac, 0x1800c288c\nmov     rsi, [rsp+38h+arg_0]                                           ; +0xae, 0x1800c288e\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xb3, 0x1800c2893\nadd     rsp, 30h                                                       ; +0xb8, 0x1800c2898\npop     rdi                                                            ; +0xbc, 0x1800c289c\nretn                                                                   ; +0xbd, 0x1800c289d", "xrefs": ["cocos2d::CCDirector::runWithScene @ 0x1800c2b59", "<???> @ 0x18014cf68", "<???> @ 0x1801c3534"], "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"}