{"type": "func", "start": 6442872592, "end": 6442873118, "name": "cocos2d::CCParticleSmoke::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSmoke::initWithTotalParticles from 0x180066f10 to 0x18006711e (526 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065c07\n// > cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065bf6\n// > <???> @ 0x180104678\n// > <???> @ 0x180142ff4\n// > <???> @ 0x180143004\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bddec\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:21:53 +0000\n// \n\nchar __fastcall cocos2d::CCParticleSmoke::initWithTotalParticles(cocos2d::CCParticleSmoke *this, unsigned int a2)\n{\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  float *v5; // rax\n  struct cocos2d::CCDirector *v6; // rax\n  __int64 v7; // rbx\n  float *v8; // rax\n  __int64 v9; // rbx\n  float *v10; // rax\n  int v11; // eax\n  struct cocos2d::CCTexture2D *v12; // rax\n  float v14; // [rsp+40h] [rbp+18h] BYREF\n  float v15; // [rsp+48h] [rbp+20h] BYREF\n\n  if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) )\n    return 0;\n  v3 = *(_QWORD *)this;\n  *((_DWORD *)this + 117) = -1082130432;\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, _QWORD))(v3 + 1560))(this, 0);\n  v4 = *(_QWORD *)this;\n  v5 = kmVec2Fill(&v15, 0.0, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, float *))(v4 + 1040))(this, v5);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *))(*(_QWORD *)this + 1120LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *))(*(_QWORD *)this + 1136LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *))(*(_QWORD *)this + 1056LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *))(*(_QWORD *)this + 1072LL))(this);\n  *((_DWORD *)this + 124) = 1119092736;\n  *((_DWORD *)this + 125) = 1084227584;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6, &v14);\n  v7 = *(_QWORD *)this;\n  v8 = kmVec2Fill(&v15, v14 * 0.5, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, float *))(v7 + 184))(this, v8);\n  v9 = *(_QWORD *)this;\n  v10 = kmVec2Fill(&v15, 20.0, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, float *))(v9 + 952))(this, v10);\n  v11 = *((_DWORD *)this + 167);\n  *((_DWORD *)this + 122) = 1082130432;\n  *((_DWORD *)this + 123) = 1065353216;\n  *((_DWORD *)this + 142) = 1114636288;\n  *((_DWORD *)this + 143) = 1092616192;\n  *((_DWORD *)this + 144) = -1082130432;\n  *((_DWORD *)this + 146) = 1061997773;\n  *((_DWORD *)this + 147) = 1061997773;\n  *((_DWORD *)this + 148) = 1061997773;\n  *((_DWORD *)this + 149) = 1065353216;\n  *((_DWORD *)this + 150) = 1017370378;\n  *((_DWORD *)this + 151) = 1017370378;\n  *((_QWORD *)this + 76) = 1017370378;\n  *((float *)this + 166) = (float)v11 * 0.25;\n  *((_QWORD *)this + 77) = 0;\n  *((_DWORD *)this + 156) = 0;\n  *(_QWORD *)((char *)this + 628) = 1065353216;\n  *(_QWORD *)((char *)this + 636) = 0;\n  *((_DWORD *)this + 161) = 0;\n  v12 = sub_180065EE0();\n  if ( v12 )\n    (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))(\n      (char *)this + 320,\n      v12);\n  (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, _QWORD))(*(_QWORD *)this + 1272LL))(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleSmoke::initWithTotalParticles from 0x180066f10 to 0x18006711e (526 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065c07\n; > cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065bf6\n; > <???> @ 0x180104678\n; > <???> @ 0x180142ff4\n; > <???> @ 0x180143004\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bddec\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:21:53 +0000\n; \npush    rdi                                                            ; +0x0, 0x180066f10\nsub     rsp, 20h                                                       ; +0x2, 0x180066f12\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180066f16\nmov     rdi, rcx                                                       ; +0x9, 0x180066f19\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x180066f1c\ntest    al, al                                                         ; +0x11, 0x180066f21\njz      loc_180067116                                                  ; +0x13, 0x180066f23\nmov     rax, [rdi]                                                     ; +0x19, 0x180066f29\nxor     edx, edx                                                       ; +0x1c, 0x180066f2c\nmov     rcx, rdi                                                       ; +0x1e, 0x180066f2e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x180066f31\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x26, 0x180066f36\ncall    qword ptr [rax+618h]                                           ; +0x30, 0x180066f40\nmov     rbx, [rdi]                                                     ; +0x36, 0x180066f46\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x39, 0x180066f49\nxorps   xmm2, xmm2                                                     ; +0x3e, 0x180066f4e\nxorps   xmm1, xmm1                                                     ; +0x41, 0x180066f51\ncall    kmVec2Fill                                                     ; +0x44, 0x180066f54\nmov     rdx, rax                                                       ; +0x49, 0x180066f59\nmov     rcx, rdi                                                       ; +0x4c, 0x180066f5c\ncall    qword ptr [rbx+410h]                                           ; +0x4f, 0x180066f5f\nmov     rax, [rdi]                                                     ; +0x55, 0x180066f65\nxorps   xmm1, xmm1                                                     ; +0x58, 0x180066f68\nmov     rcx, rdi                                                       ; +0x5b, 0x180066f6b\ncall    qword ptr [rax+460h]                                           ; +0x5e, 0x180066f6e\nmov     rax, [rdi]                                                     ; +0x64, 0x180066f74\nxorps   xmm1, xmm1                                                     ; +0x67, 0x180066f77\nmov     rcx, rdi                                                       ; +0x6a, 0x180066f7a\ncall    qword ptr [rax+470h]                                           ; +0x6d, 0x180066f7d\nmov     rax, [rdi]                                                     ; +0x73, 0x180066f83\nmov     rcx, rdi                                                       ; +0x76, 0x180066f86\nmovss   xmm1, cs:dword_1801053C4                                       ; +0x79, 0x180066f89\ncall    qword ptr [rax+420h]                                           ; +0x81, 0x180066f91\nmov     rax, [rdi]                                                     ; +0x87, 0x180066f97\nmov     rcx, rdi                                                       ; +0x8a, 0x180066f9a\nmovss   xmm1, cs:dword_1800EE4B0                                       ; +0x8d, 0x180066f9d\ncall    qword ptr [rax+430h]                                           ; +0x95, 0x180066fa5\nmov     dword ptr [rdi+1F0h], 42B40000h                                ; +0x9b, 0x180066fab\nmov     dword ptr [rdi+1F4h], 40A00000h                                ; +0xa5, 0x180066fb5\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xaf, 0x180066fbf\nmov     rcx, rax                                                       ; +0xb4, 0x180066fc4\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xb7, 0x180066fc7\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xbc, 0x180066fcc\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0xc1, 0x180066fd1\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xc7, 0x180066fd7\nmulss   xmm1, cs:dword_1800EC358                                       ; +0xcc, 0x180066fdc\nxorps   xmm2, xmm2                                                     ; +0xd4, 0x180066fe4\nmov     rbx, [rdi]                                                     ; +0xd7, 0x180066fe7\ncall    kmVec2Fill                                                     ; +0xda, 0x180066fea\nmov     rdx, rax                                                       ; +0xdf, 0x180066fef\nmov     rcx, rdi                                                       ; +0xe2, 0x180066ff2\ncall    qword ptr [rbx+0B8h]                                           ; +0xe5, 0x180066ff5\nmovss   xmm1, cs:dword_1801053C0                                       ; +0xeb, 0x180066ffb\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xf3, 0x180067003\nmov     rbx, [rdi]                                                     ; +0xf8, 0x180067008\nxorps   xmm2, xmm2                                                     ; +0xfb, 0x18006700b\ncall    kmVec2Fill                                                     ; +0xfe, 0x18006700e\nmov     rdx, rax                                                       ; +0x103, 0x180067013\nmov     rcx, rdi                                                       ; +0x106, 0x180067016\ncall    qword ptr [rbx+3B8h]                                           ; +0x109, 0x180067019\nmov     eax, [rdi+29Ch]                                                ; +0x10f, 0x18006701f\nxorps   xmm0, xmm0                                                     ; +0x115, 0x180067025\nmov     dword ptr [rdi+1E8h], 40800000h                                ; +0x118, 0x180067028\nmov     dword ptr [rdi+1ECh], 3F800000h                                ; +0x122, 0x180067032\nmov     dword ptr [rdi+238h], 42700000h                                ; +0x12c, 0x18006703c\ncvtsi2ss xmm0, rax                                                     ; +0x136, 0x180067046\nxor     eax, eax                                                       ; +0x13b, 0x18006704b\nmov     dword ptr [rdi+23Ch], 41200000h                                ; +0x13d, 0x18006704d\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x147, 0x180067057\nmov     dword ptr [rdi+248h], 3F4CCCCDh                                ; +0x151, 0x180067061\nmov     dword ptr [rdi+24Ch], 3F4CCCCDh                                ; +0x15b, 0x18006706b\nmov     dword ptr [rdi+250h], 3F4CCCCDh                                ; +0x165, 0x180067075\nmov     dword ptr [rdi+254h], 3F800000h                                ; +0x16f, 0x18006707f\nmulss   xmm0, cs:dword_1800EE454                                       ; +0x179, 0x180067089\nmov     dword ptr [rdi+258h], 3CA3D70Ah                                ; +0x181, 0x180067091\nmov     dword ptr [rdi+25Ch], 3CA3D70Ah                                ; +0x18b, 0x18006709b\nmov     qword ptr [rdi+260h], 3CA3D70Ah                                ; +0x195, 0x1800670a5\nmovss   dword ptr [rdi+298h], xmm0                                     ; +0x1a0, 0x1800670b0\nmov     [rdi+268h], rax                                                ; +0x1a8, 0x1800670b8\nmov     [rdi+270h], eax                                                ; +0x1af, 0x1800670bf\nmov     qword ptr [rdi+274h], 3F800000h                                ; +0x1b5, 0x1800670c5\nmov     [rdi+27Ch], rax                                                ; +0x1c0, 0x1800670d0\nmov     [rdi+284h], eax                                                ; +0x1c7, 0x1800670d7\ncall    sub_180065EE0                                                  ; +0x1cd, 0x1800670dd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1d2, 0x1800670e2\ntest    rax, rax                                                       ; +0x1d7, 0x1800670e7\njz      short loc_180067100                                            ; +0x1da, 0x1800670ea\nlea     rcx, [rdi+140h]                                                ; +0x1dc, 0x1800670ec\nmov     rdx, [rcx]                                                     ; +0x1e3, 0x1800670f3\nmov     r8, [rdx+18h]                                                  ; +0x1e6, 0x1800670f6\nmov     rdx, rax                                                       ; +0x1ea, 0x1800670fa\ncall    r8                                                             ; +0x1ed, 0x1800670fd\nmov     rax, [rdi]                                                     ; +0x1f0, 0x180067100\nxor     edx, edx                                                       ; +0x1f3, 0x180067103\nmov     rcx, rdi                                                       ; +0x1f5, 0x180067105\ncall    qword ptr [rax+4F8h]                                           ; +0x1f8, 0x180067108\nmov     al, 1                                                          ; +0x1fe, 0x18006710e\nadd     rsp, 20h                                                       ; +0x200, 0x180067110\npop     rdi                                                            ; +0x204, 0x180067114\nretn                                                                   ; +0x205, 0x180067115\nxor     al, al                                                         ; +0x206, 0x180067116\nadd     rsp, 20h                                                       ; +0x208, 0x180067118\npop     rdi                                                            ; +0x20c, 0x18006711c\nretn                                                                   ; +0x20d, 0x18006711d", "xrefs": ["cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065c07", "cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065bf6", "<???> @ 0x180104678", "<???> @ 0x180142ff4", "<???> @ 0x180143004", "<???> @ 0x18014cf68", "<???> @ 0x1801bddec"], "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"}