{"type": "func", "start": 6443245488, "end": 6443246178, "name": "cocos2d::CCDirector::init", "pseudocode": "// \n// cocos2d::CCDirector::init from 0x1800c1fb0 to 0x1800c2262 (690 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCDirector::sharedDirector @ 0x1800c35ad\n// > cocos2d::CCDirector::sharedDirector @ 0x1800c359e\n// > <???> @ 0x18010da10\n// > <???> @ 0x18010db20\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c34b0\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\n// Hidden C++ exception states: #wind=8\nchar __fastcall cocos2d::CCDirector::init(cocos2d::CCDirector *this)\n{\n  cocos2d::CCArray *v2; // rax\n  cocos2d::CCArray *v3; // rax\n  _QWORD *v4; // rax\n  cocos2d::CCScheduler *v5; // rax\n  __int64 v6; // rax\n  cocos2d::CCActionManager *v7; // rax\n  struct cocos2d::CCObject *v8; // rax\n  cocos2d::CCTouchDispatcher *v9; // rax\n  cocos2d::CCTouchDispatcher *v10; // rax\n  cocos2d::CCKeypadDispatcher *v11; // rax\n  cocos2d::CCKeypadDispatcher *v12; // rax\n  cocos2d::CCKeyboardDispatcher *v13; // rax\n  cocos2d::CCKeyboardDispatcher *v14; // rax\n  cocos2d::CCMouseDispatcher *v15; // rax\n  cocos2d::CCMouseDispatcher *v16; // rax\n  cocos2d::CCAccelerometer *v17; // rax\n  cocos2d::CCAccelerometer *v18; // rax\n  cocos2d::CCPoolManager *v19; // rax\n  float *v20; // rax\n  cocos2d::CCArray *v22; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCDirector::setDefaultValues(this);\n  *((_QWORD *)this + 34) = 0;\n  *((_QWORD *)this + 35) = 0;\n  *((_QWORD *)this + 12) = 0;\n  *((_QWORD *)this + 43) = 0;\n  v2 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u);\n  v22 = v2;\n  if ( v2 )\n    v3 = cocos2d::CCArray::CCArray(v2);\n  else\n    v3 = nullptr;\n  *((_QWORD *)this + 37) = v3;\n  cocos2d::CCArray::init(v3);\n  *((_QWORD *)this + 44) = 0;\n  *((_BYTE *)this + 404) = 0;\n  *(_QWORD *)((char *)this + 220) = 0;\n  *((_DWORD *)this + 57) = 0;\n  *((_QWORD *)this + 21) = 0;\n  *((_QWORD *)this + 29) = 0;\n  *((_QWORD *)this + 30) = 0;\n  *((_QWORD *)this + 31) = 0;\n  *(_QWORD *)((char *)this + 260) = 0;\n  *((_QWORD *)this + 42) = sub_1800E4C6C(0x10u);\n  v4 = (_QWORD *)sub_1800E4AC0(8u);\n  if ( v4 )\n    *v4 = 0;\n  else\n    v4 = nullptr;\n  *((_QWORD *)this + 38) = v4;\n  *((_DWORD *)this + 67) = 0;\n  *((_WORD *)this + 88) = 0;\n  *((_BYTE *)this + 178) = 0;\n  *((_DWORD *)this + 45) = 0;\n  *((_QWORD *)this + 47) = 0;\n  *((_BYTE *)this + 368) = 0;\n  *((_BYTE *)this + 405) = 0;\n  *((_BYTE *)this + 256) = 0;\n  *((_BYTE *)this + 184) = 0;\n  cocos2d::CCSize::operator=((_DWORD *)this + 80, dword_1801B3BA0);\n  *((_QWORD *)this + 24) = 0;\n  *((_DWORD *)this + 82) = 1065353216;\n  v5 = (cocos2d::CCScheduler *)sub_1800E4AC0(0x80u);\n  v22 = v5;\n  if ( v5 )\n    v6 = cocos2d::CCScheduler::CCScheduler(v5);\n  else\n    v6 = 0;\n  *((_QWORD *)this + 13) = v6;\n  v7 = (cocos2d::CCActionManager *)sub_1800E4AC0(0x50u);\n  v22 = v7;\n  if ( v7 )\n    v8 = cocos2d::CCActionManager::CCActionManager(v7);\n  else\n    v8 = nullptr;\n  *((_QWORD *)this + 14) = v8;\n  cocos2d::CCScheduler::scheduleUpdateForTarget(*((cocos2d::CCScheduler **)this + 13), v8, 0x80000000, 0);\n  v9 = (cocos2d::CCTouchDispatcher *)sub_1800E4AC0(0xA8u);\n  v22 = v9;\n  if ( v9 )\n    v10 = cocos2d::CCTouchDispatcher::CCTouchDispatcher(v9);\n  else\n    v10 = nullptr;\n  *((_QWORD *)this + 15) = v10;\n  cocos2d::CCTouchDispatcher::init(v10);\n  v11 = (cocos2d::CCKeypadDispatcher *)sub_1800E4AC0(0x58u);\n  v22 = v11;\n  if ( v11 )\n    v12 = cocos2d::CCKeypadDispatcher::CCKeypadDispatcher(v11);\n  else\n    v12 = nullptr;\n  *((_QWORD *)this + 16) = v12;\n  v13 = (cocos2d::CCKeyboardDispatcher *)sub_1800E4AC0(0xA8u);\n  v22 = v13;\n  if ( v13 )\n    v14 = cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher(v13);\n  else\n    v14 = nullptr;\n  *((_QWORD *)this + 17) = v14;\n  v15 = (cocos2d::CCMouseDispatcher *)sub_1800E4AC0(0x58u);\n  v22 = v15;\n  if ( v15 )\n    v16 = cocos2d::CCMouseDispatcher::CCMouseDispatcher(v15);\n  else\n    v16 = nullptr;\n  *((_QWORD *)this + 18) = v16;\n  *((_QWORD *)this + 19) = 0;\n  v17 = (cocos2d::CCAccelerometer *)sub_1800E4AC0(0x28u);\n  v22 = v17;\n  if ( v17 )\n    v18 = cocos2d::CCAccelerometer::CCAccelerometer(v17);\n  else\n    v18 = nullptr;\n  *((_QWORD *)this + 20) = v18;\n  v19 = cocos2d::CCPoolManager::sharedPoolManager();\n  cocos2d::CCPoolManager::push(v19);\n  *((_QWORD *)this + 45) = 0;\n  *((_DWORD *)this + 100) = 0;\n  v20 = kmVec2Fill((float *)&v22, 480.0, 320.0);\n  cocos2d::CCSize::operator=((_DWORD *)this + 96, v20);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCDirector::init from 0x1800c1fb0 to 0x1800c2262 (690 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCDirector::sharedDirector @ 0x1800c35ad\n; > cocos2d::CCDirector::sharedDirector @ 0x1800c359e\n; > <???> @ 0x18010da10\n; > <???> @ 0x18010db20\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c34b0\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, 0x1800c1fb0\npush    rdi                                                            ; +0x5, 0x1800c1fb5\nsub     rsp, 20h                                                       ; +0x6, 0x1800c1fb6\nmov     rbx, rcx                                                       ; +0xa, 0x1800c1fba\ncall    ?setDefaultValues@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setDefaultValues(void) ; +0xd, 0x1800c1fbd\nxor     edi, edi                                                       ; +0x12, 0x1800c1fc2\nmov     [rbx+110h], rdi                                                ; +0x14, 0x1800c1fc4\nmov     [rbx+118h], rdi                                                ; +0x1b, 0x1800c1fcb\nmov     [rbx+60h], rdi                                                 ; +0x22, 0x1800c1fd2\nmov     [rbx+158h], rdi                                                ; +0x26, 0x1800c1fd6\nmov     ecx, 40h ; '@'; Size                                           ; +0x2d, 0x1800c1fdd\ncall    sub_1800E4AC0                                                  ; +0x32, 0x1800c1fe2\nmov     [rsp+28h+arg_0], rax                                           ; +0x37, 0x1800c1fe7\ntest    rax, rax                                                       ; +0x3c, 0x1800c1fec\njz      short loc_1800C1FFB                                            ; +0x3f, 0x1800c1fef\nmov     rcx, rax; this                                                 ; +0x41, 0x1800c1ff1\ncall    ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void)   ; +0x44, 0x1800c1ff4\njmp     short loc_1800C1FFE                                            ; +0x49, 0x1800c1ff9\nmov     rax, rdi                                                       ; +0x4b, 0x1800c1ffb\nmov     [rbx+128h], rax                                                ; +0x4e, 0x1800c1ffe\nmov     rcx, rax; this                                                 ; +0x55, 0x1800c2005\ncall    ?init@CCArray@cocos2d@@QEAA_NXZ; cocos2d::CCArray::init(void)  ; +0x58, 0x1800c2008\nmov     [rbx+160h], rdi                                                ; +0x5d, 0x1800c200d\nmov     byte ptr [rbx+194h], 0                                         ; +0x64, 0x1800c2014\nmov     [rbx+0DCh], rdi                                                ; +0x6b, 0x1800c201b\nmov     [rbx+0E4h], edi                                                ; +0x72, 0x1800c2022\nmov     [rbx+0A8h], rdi                                                ; +0x78, 0x1800c2028\nmov     [rbx+0E8h], rdi                                                ; +0x7f, 0x1800c202f\nmov     [rbx+0F0h], rdi                                                ; +0x86, 0x1800c2036\nmov     [rbx+0F8h], rdi                                                ; +0x8d, 0x1800c203d\nmov     [rbx+104h], rdi                                                ; +0x94, 0x1800c2044\nmov     ecx, 10h; Size                                                 ; +0x9b, 0x1800c204b\ncall    sub_1800E4C6C                                                  ; +0xa0, 0x1800c2050\nmov     [rbx+150h], rax                                                ; +0xa5, 0x1800c2055\nmov     ecx, 8; Size                                                   ; +0xac, 0x1800c205c\ncall    sub_1800E4AC0                                                  ; +0xb1, 0x1800c2061\ntest    rax, rax                                                       ; +0xb6, 0x1800c2066\njz      short loc_1800C2072                                            ; +0xb9, 0x1800c2069\nxor     ecx, ecx                                                       ; +0xbb, 0x1800c206b\nmov     [rax], rcx                                                     ; +0xbd, 0x1800c206d\njmp     short loc_1800C2075                                            ; +0xc0, 0x1800c2070\nmov     rax, rdi                                                       ; +0xc2, 0x1800c2072\nmov     [rbx+130h], rax                                                ; +0xc5, 0x1800c2075\nmov     [rbx+10Ch], edi                                                ; +0xcc, 0x1800c207c\nmov     word ptr [rbx+0B0h], 0                                         ; +0xd2, 0x1800c2082\nmov     byte ptr [rbx+0B2h], 0                                         ; +0xdb, 0x1800c208b\nmov     [rbx+0B4h], edi                                                ; +0xe2, 0x1800c2092\nmov     [rbx+178h], rdi                                                ; +0xe8, 0x1800c2098\nmov     byte ptr [rbx+170h], 0                                         ; +0xef, 0x1800c209f\nmov     byte ptr [rbx+195h], 0                                         ; +0xf6, 0x1800c20a6\nmov     byte ptr [rbx+100h], 0                                         ; +0xfd, 0x1800c20ad\nmov     byte ptr [rbx+0B8h], 0                                         ; +0x104, 0x1800c20b4\nlea     rcx, [rbx+140h]                                                ; +0x10b, 0x1800c20bb\nlea     rdx, dword_1801B3BA0                                           ; +0x112, 0x1800c20c2\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x119, 0x1800c20c9\nmov     [rbx+0C0h], rdi                                                ; +0x11e, 0x1800c20ce\nmov     dword ptr [rbx+148h], 3F800000h                                ; +0x125, 0x1800c20d5\nmov     ecx, 80h; Size                                                 ; +0x12f, 0x1800c20df\ncall    sub_1800E4AC0                                                  ; +0x134, 0x1800c20e4\nmov     [rsp+28h+arg_0], rax                                           ; +0x139, 0x1800c20e9\ntest    rax, rax                                                       ; +0x13e, 0x1800c20ee\njz      short loc_1800C20FD                                            ; +0x141, 0x1800c20f1\nmov     rcx, rax; this                                                 ; +0x143, 0x1800c20f3\ncall    ??0CCScheduler@cocos2d@@QEAA@XZ; cocos2d::CCScheduler::CCScheduler(void) ; +0x146, 0x1800c20f6\njmp     short loc_1800C2100                                            ; +0x14b, 0x1800c20fb\nmov     rax, rdi                                                       ; +0x14d, 0x1800c20fd\nmov     [rbx+68h], rax                                                 ; +0x150, 0x1800c2100\nmov     ecx, 50h ; 'P'; Size                                           ; +0x154, 0x1800c2104\ncall    sub_1800E4AC0                                                  ; +0x159, 0x1800c2109\nmov     [rsp+28h+arg_0], rax                                           ; +0x15e, 0x1800c210e\ntest    rax, rax                                                       ; +0x163, 0x1800c2113\njz      short loc_1800C2122                                            ; +0x166, 0x1800c2116\nmov     rcx, rax; this                                                 ; +0x168, 0x1800c2118\ncall    ??0CCActionManager@cocos2d@@QEAA@XZ; cocos2d::CCActionManager::CCActionManager(void) ; +0x16b, 0x1800c211b\njmp     short loc_1800C2125                                            ; +0x170, 0x1800c2120\nmov     rax, rdi                                                       ; +0x172, 0x1800c2122\nmov     [rbx+70h], rax                                                 ; +0x175, 0x1800c2125\nxor     r9d, r9d; bool                                                 ; +0x179, 0x1800c2129\nmov     r8d, 80000000h; int                                            ; +0x17c, 0x1800c212c\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x182, 0x1800c2132\nmov     rcx, [rbx+68h]; this                                           ; +0x185, 0x1800c2135\ncall    ?scheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@H_N@Z; cocos2d::CCScheduler::scheduleUpdateForTarget(cocos2d::CCObject *,int,bool) ; +0x189, 0x1800c2139\nmov     ecx, 0A8h; Size                                                ; +0x18e, 0x1800c213e\ncall    sub_1800E4AC0                                                  ; +0x193, 0x1800c2143\nmov     [rsp+28h+arg_0], rax                                           ; +0x198, 0x1800c2148\ntest    rax, rax                                                       ; +0x19d, 0x1800c214d\njz      short loc_1800C215C                                            ; +0x1a0, 0x1800c2150\nmov     rcx, rax; this                                                 ; +0x1a2, 0x1800c2152\ncall    ??0CCTouchDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCTouchDispatcher::CCTouchDispatcher(void) ; +0x1a5, 0x1800c2155\njmp     short loc_1800C215F                                            ; +0x1aa, 0x1800c215a\nmov     rax, rdi                                                       ; +0x1ac, 0x1800c215c\nmov     [rbx+78h], rax                                                 ; +0x1af, 0x1800c215f\nmov     rcx, rax; this                                                 ; +0x1b3, 0x1800c2163\ncall    ?init@CCTouchDispatcher@cocos2d@@QEAA_NXZ; cocos2d::CCTouchDispatcher::init(void) ; +0x1b6, 0x1800c2166\nmov     ecx, 58h ; 'X'; Size                                           ; +0x1bb, 0x1800c216b\ncall    sub_1800E4AC0                                                  ; +0x1c0, 0x1800c2170\nmov     [rsp+28h+arg_0], rax                                           ; +0x1c5, 0x1800c2175\ntest    rax, rax                                                       ; +0x1ca, 0x1800c217a\njz      short loc_1800C2189                                            ; +0x1cd, 0x1800c217d\nmov     rcx, rax; this                                                 ; +0x1cf, 0x1800c217f\ncall    ??0CCKeypadDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCKeypadDispatcher::CCKeypadDispatcher(void) ; +0x1d2, 0x1800c2182\njmp     short loc_1800C218C                                            ; +0x1d7, 0x1800c2187\nmov     rax, rdi                                                       ; +0x1d9, 0x1800c2189\nmov     [rbx+80h], rax                                                 ; +0x1dc, 0x1800c218c\nmov     ecx, 0A8h; Size                                                ; +0x1e3, 0x1800c2193\ncall    sub_1800E4AC0                                                  ; +0x1e8, 0x1800c2198\nmov     [rsp+28h+arg_0], rax                                           ; +0x1ed, 0x1800c219d\ntest    rax, rax                                                       ; +0x1f2, 0x1800c21a2\njz      short loc_1800C21B1                                            ; +0x1f5, 0x1800c21a5\nmov     rcx, rax; this                                                 ; +0x1f7, 0x1800c21a7\ncall    ??0CCKeyboardDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher(void) ; +0x1fa, 0x1800c21aa\njmp     short loc_1800C21B4                                            ; +0x1ff, 0x1800c21af\nmov     rax, rdi                                                       ; +0x201, 0x1800c21b1\nmov     [rbx+88h], rax                                                 ; +0x204, 0x1800c21b4\nmov     ecx, 58h ; 'X'; Size                                           ; +0x20b, 0x1800c21bb\ncall    sub_1800E4AC0                                                  ; +0x210, 0x1800c21c0\nmov     [rsp+28h+arg_0], rax                                           ; +0x215, 0x1800c21c5\ntest    rax, rax                                                       ; +0x21a, 0x1800c21ca\njz      short loc_1800C21D9                                            ; +0x21d, 0x1800c21cd\nmov     rcx, rax; this                                                 ; +0x21f, 0x1800c21cf\ncall    ??0CCMouseDispatcher@cocos2d@@QEAA@XZ; cocos2d::CCMouseDispatcher::CCMouseDispatcher(void) ; +0x222, 0x1800c21d2\njmp     short loc_1800C21DC                                            ; +0x227, 0x1800c21d7\nmov     rax, rdi                                                       ; +0x229, 0x1800c21d9\nmov     [rbx+90h], rax                                                 ; +0x22c, 0x1800c21dc\nmov     [rbx+98h], rdi                                                 ; +0x233, 0x1800c21e3\nmov     ecx, 28h ; '('; Size                                           ; +0x23a, 0x1800c21ea\ncall    sub_1800E4AC0                                                  ; +0x23f, 0x1800c21ef\nmov     [rsp+28h+arg_0], rax                                           ; +0x244, 0x1800c21f4\ntest    rax, rax                                                       ; +0x249, 0x1800c21f9\njz      short loc_1800C2208                                            ; +0x24c, 0x1800c21fc\nmov     rcx, rax; this                                                 ; +0x24e, 0x1800c21fe\ncall    ??0CCAccelerometer@cocos2d@@QEAA@XZ; cocos2d::CCAccelerometer::CCAccelerometer(void) ; +0x251, 0x1800c2201\njmp     short loc_1800C220B                                            ; +0x256, 0x1800c2206\nmov     rax, rdi                                                       ; +0x258, 0x1800c2208\nmov     [rbx+0A0h], rax                                                ; +0x25b, 0x1800c220b\ncall    ?sharedPoolManager@CCPoolManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCPoolManager::sharedPoolManager(void) ; +0x262, 0x1800c2212\nmov     rcx, rax; this                                                 ; +0x267, 0x1800c2217\ncall    ?push@CCPoolManager@cocos2d@@QEAAXXZ; cocos2d::CCPoolManager::push(void) ; +0x26a, 0x1800c221a\nmov     [rbx+168h], rdi                                                ; +0x26f, 0x1800c221f\nmov     [rbx+190h], edi                                                ; +0x276, 0x1800c2226\nmovss   xmm2, cs:dword_18010DCF0                                       ; +0x27c, 0x1800c222c\nmovss   xmm1, cs:dword_18010DCF4                                       ; +0x284, 0x1800c2234\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x28c, 0x1800c223c\ncall    kmVec2Fill                                                     ; +0x291, 0x1800c2241\nmov     rdx, rax                                                       ; +0x296, 0x1800c2246\nlea     rcx, [rbx+180h]                                                ; +0x299, 0x1800c2249\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x2a0, 0x1800c2250\nmov     al, 1                                                          ; +0x2a5, 0x1800c2255\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2a7, 0x1800c2257\nadd     rsp, 20h                                                       ; +0x2ac, 0x1800c225c\npop     rdi                                                            ; +0x2b0, 0x1800c2260\nretn                                                                   ; +0x2b1, 0x1800c2261", "xrefs": ["cocos2d::CCDirector::sharedDirector @ 0x1800c35ad", "cocos2d::CCDirector::sharedDirector @ 0x1800c359e", "<???> @ 0x18010da10", "<???> @ 0x18010db20", "<???> @ 0x18014cf68", "<???> @ 0x1801c34b0"], "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"}