{"type": "func", "start": 6442869360, "end": 6442869833, "name": "cocos2d::CCParticleFire::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleFire::initWithTotalParticles from 0x180066270 to 0x180066449 (473 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065727\n// > cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065716\n// > <???> @ 0x180101278\n// > <???> @ 0x180142e7c\n// > <???> @ 0x180142e8c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdd14\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:52 +0000\n// \n\nchar __fastcall cocos2d::CCParticleFire::initWithTotalParticles(cocos2d::CCParticleFire *this, unsigned int a2)\n{\n  float *v3; // rax\n  struct cocos2d::CCDirector *v4; // rax\n  __int64 v5; // rbx\n  float *v6; // rax\n  float *v7; // rax\n  int v8; // eax\n  struct cocos2d::CCTexture2D *v9; // rax\n  __int64 v10; // rdx\n  float v12; // [rsp+40h] [rbp+18h] BYREF\n  float v13; // [rsp+48h] [rbp+20h] BYREF\n\n  if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) )\n    return 0;\n  *((_DWORD *)this + 117) = -1082130432;\n  *((_DWORD *)this + 175) = 0;\n  v3 = kmVec2Fill(&v13, 0.0, 0.0);\n  cocos2d::CCSize::operator=((_DWORD *)this + 91, v3);\n  *(_QWORD *)((char *)this + 388) = 0;\n  *((_DWORD *)this + 93) = 1114636288;\n  *((_DWORD *)this + 94) = 1101004800;\n  *((_DWORD *)this + 124) = 1119092736;\n  *((_DWORD *)this + 125) = 1092616192;\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v4, &v12);\n  v5 = *(_QWORD *)this;\n  v6 = kmVec2Fill(&v13, v12 * 0.5, 60.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleFire *, float *))(v5 + 184))(this, v6);\n  v7 = kmVec2Fill(&v13, 40.0, 20.0);\n  cocos2d::CCSize::operator=((_DWORD *)this + 120, v7);\n  v8 = *((_DWORD *)this + 167);\n  *((_DWORD *)this + 122) = 1077936128;\n  *((_DWORD *)this + 123) = 1048576000;\n  *((_DWORD *)this + 142) = 1113063424;\n  *((_DWORD *)this + 143) = 1092616192;\n  *((_DWORD *)this + 144) = -1082130432;\n  *((_DWORD *)this + 146) = 1061326684;\n  *((_DWORD *)this + 147) = 1048576000;\n  *((_DWORD *)this + 148) = 1039516303;\n  *(_QWORD *)((char *)this + 596) = 1065353216;\n  *(_QWORD *)((char *)this + 604) = 0;\n  *(_QWORD *)((char *)this + 612) = 0;\n  *(_QWORD *)((char *)this + 620) = 0;\n  *(_QWORD *)((char *)this + 628) = 1065353216;\n  *(_QWORD *)((char *)this + 636) = 0;\n  *((_DWORD *)this + 161) = 0;\n  *((float *)this + 166) = (float)v8 / 3.0;\n  v9 = sub_180065EE0();\n  if ( v9 )\n    (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))(\n      (char *)this + 320,\n      v9);\n  LOBYTE(v10) = 1;\n  (*(void (__fastcall **)(cocos2d::CCParticleFire *, __int64))(*(_QWORD *)this + 1272LL))(this, v10);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleFire::initWithTotalParticles from 0x180066270 to 0x180066449 (473 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065727\n; > cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065716\n; > <???> @ 0x180101278\n; > <???> @ 0x180142e7c\n; > <???> @ 0x180142e8c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdd14\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:52 +0000\n; \npush    rdi                                                            ; +0x0, 0x180066270\nsub     rsp, 20h                                                       ; +0x2, 0x180066272\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180066276\nmov     rdi, rcx                                                       ; +0x9, 0x180066279\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x18006627c\ntest    al, al                                                         ; +0x11, 0x180066281\njz      loc_180066441                                                  ; +0x13, 0x180066283\nmov     [rsp+28h+arg_0], rbx                                           ; +0x19, 0x180066289\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x1e, 0x18006628e\nmov     [rsp+28h+arg_8], rsi                                           ; +0x23, 0x180066293\nxorps   xmm2, xmm2                                                     ; +0x28, 0x180066298\nxor     esi, esi                                                       ; +0x2b, 0x18006629b\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x2d, 0x18006629d\nxorps   xmm1, xmm1                                                     ; +0x37, 0x1800662a7\nmov     [rdi+2BCh], esi                                                ; +0x3a, 0x1800662aa\ncall    kmVec2Fill                                                     ; +0x40, 0x1800662b0\nmov     rdx, rax                                                       ; +0x45, 0x1800662b5\nlea     rcx, [rdi+16Ch]                                                ; +0x48, 0x1800662b8\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x4f, 0x1800662bf\nmov     [rdi+184h], rsi                                                ; +0x54, 0x1800662c4\nmov     dword ptr [rdi+174h], 42700000h                                ; +0x5b, 0x1800662cb\nmov     dword ptr [rdi+178h], 41A00000h                                ; +0x65, 0x1800662d5\nmov     dword ptr [rdi+1F0h], 42B40000h                                ; +0x6f, 0x1800662df\nmov     dword ptr [rdi+1F4h], 41200000h                                ; +0x79, 0x1800662e9\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x83, 0x1800662f3\nmov     rcx, rax                                                       ; +0x88, 0x1800662f8\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x8b, 0x1800662fb\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x90, 0x180066300\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0x95, 0x180066305\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x9b, 0x18006630b\nmulss   xmm1, cs:dword_1800EC358                                       ; +0xa0, 0x180066310\nmov     rbx, [rdi]                                                     ; +0xa8, 0x180066318\nmovss   xmm2, cs:dword_1801053D0                                       ; +0xab, 0x18006631b\ncall    kmVec2Fill                                                     ; +0xb3, 0x180066323\nmov     rdx, rax                                                       ; +0xb8, 0x180066328\nmov     rcx, rdi                                                       ; +0xbb, 0x18006632b\ncall    qword ptr [rbx+0B8h]                                           ; +0xbe, 0x18006632e\nmovss   xmm2, cs:dword_1801053C0                                       ; +0xc4, 0x180066334\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xcc, 0x18006633c\nmovss   xmm1, cs:dword_1801053CC                                       ; +0xd1, 0x180066341\ncall    kmVec2Fill                                                     ; +0xd9, 0x180066349\nmov     rdx, rax                                                       ; +0xde, 0x18006634e\nlea     rcx, [rdi+1E0h]                                                ; +0xe1, 0x180066351\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xe8, 0x180066358\nmov     eax, [rdi+29Ch]                                                ; +0xed, 0x18006635d\nxorps   xmm0, xmm0                                                     ; +0xf3, 0x180066363\nmov     dword ptr [rdi+1E8h], 40400000h                                ; +0xf6, 0x180066366\nmov     dword ptr [rdi+1ECh], 3E800000h                                ; +0x100, 0x180066370\nmov     dword ptr [rdi+238h], 42580000h                                ; +0x10a, 0x18006637a\ncvtsi2ss xmm0, rax                                                     ; +0x114, 0x180066384\nmov     dword ptr [rdi+23Ch], 41200000h                                ; +0x119, 0x180066389\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x123, 0x180066393\nmov     dword ptr [rdi+248h], 3F428F5Ch                                ; +0x12d, 0x18006639d\nmov     dword ptr [rdi+24Ch], 3E800000h                                ; +0x137, 0x1800663a7\nmov     dword ptr [rdi+250h], 3DF5C28Fh                                ; +0x141, 0x1800663b1\nmov     qword ptr [rdi+254h], 3F800000h                                ; +0x14b, 0x1800663bb\ndivss   xmm0, cs:Y                                                     ; +0x156, 0x1800663c6\nmov     [rdi+25Ch], rsi                                                ; +0x15e, 0x1800663ce\nmov     [rdi+264h], rsi                                                ; +0x165, 0x1800663d5\nmov     [rdi+26Ch], rsi                                                ; +0x16c, 0x1800663dc\nmov     qword ptr [rdi+274h], 3F800000h                                ; +0x173, 0x1800663e3\nmov     [rdi+27Ch], rsi                                                ; +0x17e, 0x1800663ee\nmov     [rdi+284h], esi                                                ; +0x185, 0x1800663f5\nmovss   dword ptr [rdi+298h], xmm0                                     ; +0x18b, 0x1800663fb\ncall    sub_180065EE0                                                  ; +0x193, 0x180066403\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x198, 0x180066408\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x19d, 0x18006640d\ntest    rax, rax                                                       ; +0x1a2, 0x180066412\njz      short loc_18006642B                                            ; +0x1a5, 0x180066415\nlea     rcx, [rdi+140h]                                                ; +0x1a7, 0x180066417\nmov     rdx, [rcx]                                                     ; +0x1ae, 0x18006641e\nmov     r8, [rdx+18h]                                                  ; +0x1b1, 0x180066421\nmov     rdx, rax                                                       ; +0x1b5, 0x180066425\ncall    r8                                                             ; +0x1b8, 0x180066428\nmov     rax, [rdi]                                                     ; +0x1bb, 0x18006642b\nmov     dl, 1                                                          ; +0x1be, 0x18006642e\nmov     rcx, rdi                                                       ; +0x1c0, 0x180066430\ncall    qword ptr [rax+4F8h]                                           ; +0x1c3, 0x180066433\nmov     al, 1                                                          ; +0x1c9, 0x180066439\nadd     rsp, 20h                                                       ; +0x1cb, 0x18006643b\npop     rdi                                                            ; +0x1cf, 0x18006643f\nretn                                                                   ; +0x1d0, 0x180066440\nxor     al, al                                                         ; +0x1d1, 0x180066441\nadd     rsp, 20h                                                       ; +0x1d3, 0x180066443\npop     rdi                                                            ; +0x1d7, 0x180066447\nretn                                                                   ; +0x1d8, 0x180066448", "xrefs": ["cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065727", "cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065716", "<???> @ 0x180101278", "<???> @ 0x180142e7c", "<???> @ 0x180142e8c", "<???> @ 0x18014cf68", "<???> @ 0x1801bdd14"], "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"}