{"type": "func", "start": 6443249472, "end": 6443249732, "name": "cocos2d::CCDirector::setNextScene", "pseudocode": "// \n// cocos2d::CCDirector::setNextScene from 0x1800c2f40 to 0x1800c3044 (260 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::drawScene @ 0x1800c1c41\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c35f4\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::setNextScene(cocos2d::CCDirector *this)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n  __int64 v7; // rcx\n\n  v2 = _RTDynamicCast(\n         *((_QWORD *)this + 34),\n         0,\n         &cocos2d::CCScene `RTTI Type Descriptor',\n         &cocos2d::CCTransitionScene `RTTI Type Descriptor',\n         0);\n  if ( !_RTDynamicCast(\n          *((_QWORD *)this + 35),\n          0,\n          &cocos2d::CCScene `RTTI Type Descriptor',\n          &cocos2d::CCTransitionScene `RTTI Type Descriptor',\n          0) )\n  {\n    v3 = *((_QWORD *)this + 34);\n    if ( v3 )\n    {\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 720LL))(v3);\n      (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 34) + 712LL))(*((_QWORD *)this + 34));\n    }\n    if ( *((_BYTE *)this + 288) )\n    {\n      v4 = *((_QWORD *)this + 34);\n      if ( v4 )\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 728LL))(v4);\n    }\n  }\n  v5 = *((cocos2d::CCObject **)this + 34);\n  if ( v5 )\n    cocos2d::CCObject::release(v5);\n  v6 = *((cocos2d::CCObject **)this + 35);\n  *((_QWORD *)this + 34) = v6;\n  cocos2d::CCObject::retain(v6);\n  *((_QWORD *)this + 35) = 0;\n  if ( !v2 )\n  {\n    v7 = *((_QWORD *)this + 34);\n    if ( v7 )\n    {\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 696LL))(v7);\n      (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 34) + 704LL))(*((_QWORD *)this + 34));\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::setNextScene from 0x1800c2f40 to 0x1800c3044 (260 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::drawScene @ 0x1800c1c41\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c35f4\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800c2f40\npush    rdi                                                            ; +0x5, 0x1800c2f45\nsub     rsp, 30h                                                       ; +0x6, 0x1800c2f46\nmov     rbx, rcx                                                       ; +0xa, 0x1800c2f4a\nmov     [rsp+38h+var_18], 0                                            ; +0xd, 0x1800c2f4d\nmov     rcx, [rcx+110h]                                                ; +0x15, 0x1800c2f55\nlea     r9, ??_R0?AVCCTransitionScene@cocos2d@@@8; cocos2d::CCTransitionScene `RTTI Type Descriptor' ; +0x1c, 0x1800c2f5c\nlea     r8, ??_R0?AVCCScene@cocos2d@@@8; cocos2d::CCScene `RTTI Type Descriptor' ; +0x23, 0x1800c2f63\nxor     edx, edx                                                       ; +0x2a, 0x1800c2f6a\ncall    __RTDynamicCast                                                ; +0x2c, 0x1800c2f6c\nmov     rcx, [rbx+118h]                                                ; +0x31, 0x1800c2f71\nlea     r9, ??_R0?AVCCTransitionScene@cocos2d@@@8; cocos2d::CCTransitionScene `RTTI Type Descriptor' ; +0x38, 0x1800c2f78\nlea     r8, ??_R0?AVCCScene@cocos2d@@@8; cocos2d::CCScene `RTTI Type Descriptor' ; +0x3f, 0x1800c2f7f\nmov     [rsp+38h+var_18], 0                                            ; +0x46, 0x1800c2f86\nxor     edx, edx                                                       ; +0x4e, 0x1800c2f8e\nmov     rdi, rax                                                       ; +0x50, 0x1800c2f90\ncall    __RTDynamicCast                                                ; +0x53, 0x1800c2f93\ntest    rax, rax                                                       ; +0x58, 0x1800c2f98\njnz     short loc_1800C2FE0                                            ; +0x5b, 0x1800c2f9b\nmov     rcx, [rbx+110h]                                                ; +0x5d, 0x1800c2f9d\ntest    rcx, rcx                                                       ; +0x64, 0x1800c2fa4\njz      short loc_1800C2FC2                                            ; +0x67, 0x1800c2fa7\nmov     rax, [rcx]                                                     ; +0x69, 0x1800c2fa9\ncall    qword ptr [rax+2D0h]                                           ; +0x6c, 0x1800c2fac\nmov     rcx, [rbx+110h]                                                ; +0x72, 0x1800c2fb2\nmov     rax, [rcx]                                                     ; +0x79, 0x1800c2fb9\ncall    qword ptr [rax+2C8h]                                           ; +0x7c, 0x1800c2fbc\ncmp     byte ptr [rbx+120h], 0                                         ; +0x82, 0x1800c2fc2\njz      short loc_1800C2FE0                                            ; +0x89, 0x1800c2fc9\nmov     rcx, [rbx+110h]                                                ; +0x8b, 0x1800c2fcb\ntest    rcx, rcx                                                       ; +0x92, 0x1800c2fd2\njz      short loc_1800C2FE0                                            ; +0x95, 0x1800c2fd5\nmov     rax, [rcx]                                                     ; +0x97, 0x1800c2fd7\ncall    qword ptr [rax+2D8h]                                           ; +0x9a, 0x1800c2fda\nmov     rcx, [rbx+110h]; this                                          ; +0xa0, 0x1800c2fe0\ntest    rcx, rcx                                                       ; +0xa7, 0x1800c2fe7\njz      short loc_1800C2FF1                                            ; +0xaa, 0x1800c2fea\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xac, 0x1800c2fec\nmov     rcx, [rbx+118h]; this                                          ; +0xb1, 0x1800c2ff1\nmov     [rbx+110h], rcx                                                ; +0xb8, 0x1800c2ff8\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xbf, 0x1800c2fff\nmov     qword ptr [rbx+118h], 0                                        ; +0xc4, 0x1800c3004\ntest    rdi, rdi                                                       ; +0xcf, 0x1800c300f\njnz     short loc_1800C3039                                            ; +0xd2, 0x1800c3012\nmov     rcx, [rbx+110h]                                                ; +0xd4, 0x1800c3014\ntest    rcx, rcx                                                       ; +0xdb, 0x1800c301b\njz      short loc_1800C3039                                            ; +0xde, 0x1800c301e\nmov     rax, [rcx]                                                     ; +0xe0, 0x1800c3020\ncall    qword ptr [rax+2B8h]                                           ; +0xe3, 0x1800c3023\nmov     rcx, [rbx+110h]                                                ; +0xe9, 0x1800c3029\nmov     rax, [rcx]                                                     ; +0xf0, 0x1800c3030\ncall    qword ptr [rax+2C0h]                                           ; +0xf3, 0x1800c3033\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf9, 0x1800c3039\nadd     rsp, 30h                                                       ; +0xfe, 0x1800c303e\npop     rdi                                                            ; +0x102, 0x1800c3042\nretn                                                                   ; +0x103, 0x1800c3043", "xrefs": ["cocos2d::CCDirector::drawScene @ 0x1800c1c41", "<???> @ 0x18014cf68", "<???> @ 0x1801c35f4"], "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"}