{"type": "func", "start": 6442872032, "end": 6442872588, "name": "cocos2d::CCParticleRain::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleRain::initWithTotalParticles from 0x180066ce0 to 0x180066f0c (556 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180065b37\n// > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180065b26\n// > <???> @ 0x180105378\n// > <???> @ 0x180143048\n// > <???> @ 0x180143058\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bddc8\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::CCParticleRain::initWithTotalParticles(cocos2d::CCParticleRain *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  struct cocos2d::CCTexture2D *v11; // rax\n  float v13; // [rsp+40h] [rbp+18h] BYREF\n  float v14; // [rsp+44h] [rbp+1Ch]\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::CCParticleRain *, _QWORD))(v3 + 1560))(this, 0);\n  v4 = *(_QWORD *)this;\n  v5 = kmVec2Fill(&v15, 10.0, -10.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *, float *))(v4 + 1040))(this, v5);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *))(*(_QWORD *)this + 1120LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *))(*(_QWORD *)this + 1136LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *))(*(_QWORD *)this + 1088LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *))(*(_QWORD *)this + 1104LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *))(*(_QWORD *)this + 1056LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *))(*(_QWORD *)this + 1072LL))(this);\n  *((_DWORD *)this + 124) = -1028390912;\n  *((_DWORD *)this + 125) = 1084227584;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6, &v13);\n  v7 = *(_QWORD *)this;\n  v8 = kmVec2Fill(&v15, v13 * 0.5, v14);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *, float *))(v7 + 184))(this, v8);\n  v9 = *(_QWORD *)this;\n  v10 = kmVec2Fill(&v15, v13 * 0.5, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *, float *))(v9 + 952))(this, v10);\n  *((_QWORD *)this + 61) = 1083179008;\n  *(_QWORD *)((char *)this + 604) = 0;\n  *((_DWORD *)this + 153) = 0;\n  *(_QWORD *)((char *)this + 636) = 0;\n  *((_DWORD *)this + 161) = 0;\n  *((_DWORD *)this + 142) = 1082130432;\n  *((_DWORD *)this + 143) = 0x40000000;\n  *((_DWORD *)this + 144) = -1082130432;\n  *((_DWORD *)this + 166) = 1101004800;\n  *((_DWORD *)this + 146) = 1060320051;\n  *((_DWORD *)this + 147) = 1061997773;\n  *((_DWORD *)this + 148) = 1065353216;\n  *(_QWORD *)((char *)this + 596) = 1065353216;\n  *((_DWORD *)this + 154) = 1060320051;\n  *((_DWORD *)this + 155) = 1061997773;\n  *((_DWORD *)this + 156) = 1065353216;\n  *(_QWORD *)((char *)this + 628) = 1056964608;\n  v11 = sub_180065EE0();\n  if ( v11 )\n    (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))(\n      (char *)this + 320,\n      v11);\n  (*(void (__fastcall **)(cocos2d::CCParticleRain *, _QWORD))(*(_QWORD *)this + 1272LL))(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleRain::initWithTotalParticles from 0x180066ce0 to 0x180066f0c (556 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180065b37\n; > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180065b26\n; > <???> @ 0x180105378\n; > <???> @ 0x180143048\n; > <???> @ 0x180143058\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bddc8\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, 0x180066ce0\nsub     rsp, 20h                                                       ; +0x2, 0x180066ce2\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180066ce6\nmov     rdi, rcx                                                       ; +0x9, 0x180066ce9\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x180066cec\ntest    al, al                                                         ; +0x11, 0x180066cf1\njz      loc_180066F04                                                  ; +0x13, 0x180066cf3\nmov     rax, [rdi]                                                     ; +0x19, 0x180066cf9\nxor     edx, edx                                                       ; +0x1c, 0x180066cfc\nmov     rcx, rdi                                                       ; +0x1e, 0x180066cfe\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x180066d01\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x26, 0x180066d06\ncall    qword ptr [rax+618h]                                           ; +0x30, 0x180066d10\nmovss   xmm2, cs:dword_1800EE4B8                                       ; +0x36, 0x180066d16\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x3e, 0x180066d1e\nmovss   xmm1, cs:dword_1800EE4B0                                       ; +0x43, 0x180066d23\nmov     rbx, [rdi]                                                     ; +0x4b, 0x180066d2b\ncall    kmVec2Fill                                                     ; +0x4e, 0x180066d2e\nmov     rdx, rax                                                       ; +0x53, 0x180066d33\nmov     rcx, rdi                                                       ; +0x56, 0x180066d36\ncall    qword ptr [rbx+410h]                                           ; +0x59, 0x180066d39\nmov     rax, [rdi]                                                     ; +0x5f, 0x180066d3f\nxorps   xmm1, xmm1                                                     ; +0x62, 0x180066d42\nmov     rcx, rdi                                                       ; +0x65, 0x180066d45\ncall    qword ptr [rax+460h]                                           ; +0x68, 0x180066d48\nmov     rax, [rdi]                                                     ; +0x6e, 0x180066d4e\nmov     rcx, rdi                                                       ; +0x71, 0x180066d51\nmovss   xmm1, cs:flt_1800EC208                                         ; +0x74, 0x180066d54\ncall    qword ptr [rax+470h]                                           ; +0x7c, 0x180066d5c\nmov     rax, [rdi]                                                     ; +0x82, 0x180066d62\nxorps   xmm1, xmm1                                                     ; +0x85, 0x180066d65\nmov     rcx, rdi                                                       ; +0x88, 0x180066d68\ncall    qword ptr [rax+440h]                                           ; +0x8b, 0x180066d6b\nmov     rax, [rdi]                                                     ; +0x91, 0x180066d71\nmov     rcx, rdi                                                       ; +0x94, 0x180066d74\nmovss   xmm1, cs:flt_1800EC208                                         ; +0x97, 0x180066d77\ncall    qword ptr [rax+450h]                                           ; +0x9f, 0x180066d7f\nmov     rax, [rdi]                                                     ; +0xa5, 0x180066d85\nmov     rcx, rdi                                                       ; +0xa8, 0x180066d88\nmovss   xmm1, cs:dword_1801053DC                                       ; +0xab, 0x180066d8b\ncall    qword ptr [rax+420h]                                           ; +0xb3, 0x180066d93\nmov     rax, [rdi]                                                     ; +0xb9, 0x180066d99\nmov     rcx, rdi                                                       ; +0xbc, 0x180066d9c\nmovss   xmm1, cs:dword_1801053C8                                       ; +0xbf, 0x180066d9f\ncall    qword ptr [rax+430h]                                           ; +0xc7, 0x180066da7\nmov     dword ptr [rdi+1F0h], 0C2B40000h                               ; +0xcd, 0x180066dad\nmov     dword ptr [rdi+1F4h], 40A00000h                                ; +0xd7, 0x180066db7\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe1, 0x180066dc1\nmov     rcx, rax                                                       ; +0xe6, 0x180066dc6\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xe9, 0x180066dc9\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xee, 0x180066dce\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0xf3, 0x180066dd3\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xf9, 0x180066dd9\nmulss   xmm1, cs:dword_1800EC358                                       ; +0xfe, 0x180066dde\nmov     rbx, [rdi]                                                     ; +0x106, 0x180066de6\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0x109, 0x180066de9\ncall    kmVec2Fill                                                     ; +0x10f, 0x180066def\nmov     rdx, rax                                                       ; +0x114, 0x180066df4\nmov     rcx, rdi                                                       ; +0x117, 0x180066df7\ncall    qword ptr [rbx+0B8h]                                           ; +0x11a, 0x180066dfa\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0x120, 0x180066e00\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x126, 0x180066e06\nmulss   xmm1, cs:dword_1800EC358                                       ; +0x12b, 0x180066e0b\nxorps   xmm2, xmm2                                                     ; +0x133, 0x180066e13\nmov     rbx, [rdi]                                                     ; +0x136, 0x180066e16\ncall    kmVec2Fill                                                     ; +0x139, 0x180066e19\nmov     rdx, rax                                                       ; +0x13e, 0x180066e1e\nmov     rcx, rdi                                                       ; +0x141, 0x180066e21\ncall    qword ptr [rbx+3B8h]                                           ; +0x144, 0x180066e24\nxor     eax, eax                                                       ; +0x14a, 0x180066e2a\nmov     qword ptr [rdi+1E8h], 40900000h                                ; +0x14c, 0x180066e2c\nmov     [rdi+25Ch], rax                                                ; +0x157, 0x180066e37\nmov     [rdi+264h], eax                                                ; +0x15e, 0x180066e3e\nmov     [rdi+27Ch], rax                                                ; +0x164, 0x180066e44\nmov     [rdi+284h], eax                                                ; +0x16b, 0x180066e4b\nmov     dword ptr [rdi+238h], 40800000h                                ; +0x171, 0x180066e51\nmov     dword ptr [rdi+23Ch], 40000000h                                ; +0x17b, 0x180066e5b\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x185, 0x180066e65\nmov     dword ptr [rdi+298h], 41A00000h                                ; +0x18f, 0x180066e6f\nmov     dword ptr [rdi+248h], 3F333333h                                ; +0x199, 0x180066e79\nmov     dword ptr [rdi+24Ch], 3F4CCCCDh                                ; +0x1a3, 0x180066e83\nmov     dword ptr [rdi+250h], 3F800000h                                ; +0x1ad, 0x180066e8d\nmov     qword ptr [rdi+254h], 3F800000h                                ; +0x1b7, 0x180066e97\nmov     dword ptr [rdi+268h], 3F333333h                                ; +0x1c2, 0x180066ea2\nmov     dword ptr [rdi+26Ch], 3F4CCCCDh                                ; +0x1cc, 0x180066eac\nmov     dword ptr [rdi+270h], 3F800000h                                ; +0x1d6, 0x180066eb6\nmov     qword ptr [rdi+274h], 3F000000h                                ; +0x1e0, 0x180066ec0\ncall    sub_180065EE0                                                  ; +0x1eb, 0x180066ecb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1f0, 0x180066ed0\ntest    rax, rax                                                       ; +0x1f5, 0x180066ed5\njz      short loc_180066EEE                                            ; +0x1f8, 0x180066ed8\nlea     rcx, [rdi+140h]                                                ; +0x1fa, 0x180066eda\nmov     rdx, [rcx]                                                     ; +0x201, 0x180066ee1\nmov     r8, [rdx+18h]                                                  ; +0x204, 0x180066ee4\nmov     rdx, rax                                                       ; +0x208, 0x180066ee8\ncall    r8                                                             ; +0x20b, 0x180066eeb\nmov     rax, [rdi]                                                     ; +0x20e, 0x180066eee\nxor     edx, edx                                                       ; +0x211, 0x180066ef1\nmov     rcx, rdi                                                       ; +0x213, 0x180066ef3\ncall    qword ptr [rax+4F8h]                                           ; +0x216, 0x180066ef6\nmov     al, 1                                                          ; +0x21c, 0x180066efc\nadd     rsp, 20h                                                       ; +0x21e, 0x180066efe\npop     rdi                                                            ; +0x222, 0x180066f02\nretn                                                                   ; +0x223, 0x180066f03\nxor     al, al                                                         ; +0x224, 0x180066f04\nadd     rsp, 20h                                                       ; +0x226, 0x180066f06\npop     rdi                                                            ; +0x22a, 0x180066f0a\nretn                                                                   ; +0x22b, 0x180066f0b", "xrefs": ["cocos2d::CCParticleRain::createWithTotalParticles @ 0x180065b37", "cocos2d::CCParticleRain::createWithTotalParticles @ 0x180065b26", "<???> @ 0x180105378", "<???> @ 0x180143048", "<???> @ 0x180143058", "<???> @ 0x18014cf68", "<???> @ 0x1801bddc8"], "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"}