{"type": "func", "start": 6442871472, "end": 6442872023, "name": "cocos2d::CCParticleMeteor::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleMeteor::initWithTotalParticles from 0x180066ab0 to 0x180066cd7 (551 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180065a67\n// > cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180065a56\n// > <???> @ 0x1801032f8\n// > <???> @ 0x180142f84\n// > <???> @ 0x180142f94\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdda4\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::CCParticleMeteor::initWithTotalParticles(cocos2d::CCParticleMeteor *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  int v9; // eax\n  struct cocos2d::CCTexture2D *v10; // rax\n  __int64 v11; // rdx\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::CCParticleMeteor *, _QWORD))(v3 + 1560))(this, 0);\n  v4 = *(_QWORD *)this;\n  v5 = kmVec2Fill(&v15, -200.0, 200.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *, float *))(v4 + 1040))(this, v5);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *))(*(_QWORD *)this + 1056LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *))(*(_QWORD *)this + 1072LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *))(*(_QWORD *)this + 1120LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *))(*(_QWORD *)this + 1136LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *))(*(_QWORD *)this + 1088LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *))(*(_QWORD *)this + 1104LL))(this);\n  *((_DWORD *)this + 124) = 1119092736;\n  *((_DWORD *)this + 125) = 1135869952;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6, &v13);\n  v7 = *(_QWORD *)this;\n  v8 = kmVec2Fill(&v15, v13 * 0.5, v14 * 0.5);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *, float *))(v7 + 184))(this, v8);\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *, void *))(*(_QWORD *)this + 952LL))(this, &unk_1801B2448);\n  v9 = *((_DWORD *)this + 167);\n  *((_DWORD *)this + 122) = 0x40000000;\n  *((_DWORD *)this + 123) = 1065353216;\n  *((_DWORD *)this + 142) = 1114636288;\n  *((_DWORD *)this + 143) = 1092616192;\n  *((_DWORD *)this + 144) = -1082130432;\n  *((_DWORD *)this + 146) = 1045220557;\n  *((_DWORD *)this + 147) = 1053609165;\n  *((_DWORD *)this + 148) = 1060320051;\n  *(_QWORD *)((char *)this + 596) = 1065353216;\n  *((_DWORD *)this + 151) = 0;\n  *((_DWORD *)this + 152) = 1045220557;\n  *(_QWORD *)((char *)this + 612) = 1036831949;\n  *((float *)this + 166) = (float)v9 * 0.5;\n  *(_QWORD *)((char *)this + 620) = 0;\n  *(_QWORD *)((char *)this + 628) = 1065353216;\n  *(_QWORD *)((char *)this + 636) = 0;\n  *((_DWORD *)this + 161) = 0;\n  v10 = sub_180065EE0();\n  if ( v10 )\n    (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))(\n      (char *)this + 320,\n      v10);\n  LOBYTE(v11) = 1;\n  (*(void (__fastcall **)(cocos2d::CCParticleMeteor *, __int64))(*(_QWORD *)this + 1272LL))(this, v11);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleMeteor::initWithTotalParticles from 0x180066ab0 to 0x180066cd7 (551 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180065a67\n; > cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180065a56\n; > <???> @ 0x1801032f8\n; > <???> @ 0x180142f84\n; > <???> @ 0x180142f94\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdda4\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, 0x180066ab0\nsub     rsp, 20h                                                       ; +0x2, 0x180066ab2\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180066ab6\nmov     rdi, rcx                                                       ; +0x9, 0x180066ab9\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x180066abc\ntest    al, al                                                         ; +0x11, 0x180066ac1\njz      loc_180066CCF                                                  ; +0x13, 0x180066ac3\nmov     rax, [rdi]                                                     ; +0x19, 0x180066ac9\nxor     edx, edx                                                       ; +0x1c, 0x180066acc\nmov     rcx, rdi                                                       ; +0x1e, 0x180066ace\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x180066ad1\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x26, 0x180066ad6\ncall    qword ptr [rax+618h]                                           ; +0x30, 0x180066ae0\nmovss   xmm2, cs:dword_1801053E4                                       ; +0x36, 0x180066ae6\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x3e, 0x180066aee\nmovss   xmm1, cs:dword_1801053EC                                       ; +0x43, 0x180066af3\nmov     rbx, [rdi]                                                     ; +0x4b, 0x180066afb\ncall    kmVec2Fill                                                     ; +0x4e, 0x180066afe\nmov     rdx, rax                                                       ; +0x53, 0x180066b03\nmov     rcx, rdi                                                       ; +0x56, 0x180066b06\ncall    qword ptr [rbx+410h]                                           ; +0x59, 0x180066b09\nmov     rax, [rdi]                                                     ; +0x5f, 0x180066b0f\nmov     rcx, rdi                                                       ; +0x62, 0x180066b12\nmovss   xmm1, cs:dword_1801053BC                                       ; +0x65, 0x180066b15\ncall    qword ptr [rax+420h]                                           ; +0x6d, 0x180066b1d\nmov     rax, [rdi]                                                     ; +0x73, 0x180066b23\nmov     rcx, rdi                                                       ; +0x76, 0x180066b26\nmovss   xmm1, cs:flt_1800FD6A8                                         ; +0x79, 0x180066b29\ncall    qword ptr [rax+430h]                                           ; +0x81, 0x180066b31\nmov     rax, [rdi]                                                     ; +0x87, 0x180066b37\nxorps   xmm1, xmm1                                                     ; +0x8a, 0x180066b3a\nmov     rcx, rdi                                                       ; +0x8d, 0x180066b3d\ncall    qword ptr [rax+460h]                                           ; +0x90, 0x180066b40\nmov     rax, [rdi]                                                     ; +0x96, 0x180066b46\nxorps   xmm1, xmm1                                                     ; +0x99, 0x180066b49\nmov     rcx, rdi                                                       ; +0x9c, 0x180066b4c\ncall    qword ptr [rax+470h]                                           ; +0x9f, 0x180066b4f\nmov     rax, [rdi]                                                     ; +0xa5, 0x180066b55\nxorps   xmm1, xmm1                                                     ; +0xa8, 0x180066b58\nmov     rcx, rdi                                                       ; +0xab, 0x180066b5b\ncall    qword ptr [rax+440h]                                           ; +0xae, 0x180066b5e\nmov     rax, [rdi]                                                     ; +0xb4, 0x180066b64\nxorps   xmm1, xmm1                                                     ; +0xb7, 0x180066b67\nmov     rcx, rdi                                                       ; +0xba, 0x180066b6a\ncall    qword ptr [rax+450h]                                           ; +0xbd, 0x180066b6d\nmov     dword ptr [rdi+1F0h], 42B40000h                                ; +0xc3, 0x180066b73\nmov     dword ptr [rdi+1F4h], 43B40000h                                ; +0xcd, 0x180066b7d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd7, 0x180066b87\nmov     rcx, rax                                                       ; +0xdc, 0x180066b8c\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xdf, 0x180066b8f\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xe4, 0x180066b94\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0xe9, 0x180066b99\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xef, 0x180066b9f\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0xf4, 0x180066ba4\nmulss   xmm2, cs:dword_1800EC358                                       ; +0xfa, 0x180066baa\nmov     rbx, [rdi]                                                     ; +0x102, 0x180066bb2\nmulss   xmm1, cs:dword_1800EC358                                       ; +0x105, 0x180066bb5\ncall    kmVec2Fill                                                     ; +0x10d, 0x180066bbd\nmov     rdx, rax                                                       ; +0x112, 0x180066bc2\nmov     rcx, rdi                                                       ; +0x115, 0x180066bc5\ncall    qword ptr [rbx+0B8h]                                           ; +0x118, 0x180066bc8\nmov     rax, [rdi]                                                     ; +0x11e, 0x180066bce\nlea     rdx, unk_1801B2448                                             ; +0x121, 0x180066bd1\nmov     rcx, rdi                                                       ; +0x128, 0x180066bd8\ncall    qword ptr [rax+3B8h]                                           ; +0x12b, 0x180066bdb\nmov     eax, [rdi+29Ch]                                                ; +0x131, 0x180066be1\nxorps   xmm0, xmm0                                                     ; +0x137, 0x180066be7\nmov     dword ptr [rdi+1E8h], 40000000h                                ; +0x13a, 0x180066bea\nmov     dword ptr [rdi+1ECh], 3F800000h                                ; +0x144, 0x180066bf4\nmov     dword ptr [rdi+238h], 42700000h                                ; +0x14e, 0x180066bfe\ncvtsi2ss xmm0, rax                                                     ; +0x158, 0x180066c08\nxor     eax, eax                                                       ; +0x15d, 0x180066c0d\nmov     dword ptr [rdi+23Ch], 41200000h                                ; +0x15f, 0x180066c0f\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x169, 0x180066c19\nmov     dword ptr [rdi+248h], 3E4CCCCDh                                ; +0x173, 0x180066c23\nmov     dword ptr [rdi+24Ch], 3ECCCCCDh                                ; +0x17d, 0x180066c2d\nmov     dword ptr [rdi+250h], 3F333333h                                ; +0x187, 0x180066c37\nmov     qword ptr [rdi+254h], 3F800000h                                ; +0x191, 0x180066c41\nmulss   xmm0, cs:dword_1800EC358                                       ; +0x19c, 0x180066c4c\nmov     [rdi+25Ch], eax                                                ; +0x1a4, 0x180066c54\nmov     dword ptr [rdi+260h], 3E4CCCCDh                                ; +0x1aa, 0x180066c5a\nmov     qword ptr [rdi+264h], 3DCCCCCDh                                ; +0x1b4, 0x180066c64\nmovss   dword ptr [rdi+298h], xmm0                                     ; +0x1bf, 0x180066c6f\nmov     [rdi+26Ch], rax                                                ; +0x1c7, 0x180066c77\nmov     qword ptr [rdi+274h], 3F800000h                                ; +0x1ce, 0x180066c7e\nmov     [rdi+27Ch], rax                                                ; +0x1d9, 0x180066c89\nmov     [rdi+284h], eax                                                ; +0x1e0, 0x180066c90\ncall    sub_180065EE0                                                  ; +0x1e6, 0x180066c96\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1eb, 0x180066c9b\ntest    rax, rax                                                       ; +0x1f0, 0x180066ca0\njz      short loc_180066CB9                                            ; +0x1f3, 0x180066ca3\nlea     rcx, [rdi+140h]                                                ; +0x1f5, 0x180066ca5\nmov     rdx, [rcx]                                                     ; +0x1fc, 0x180066cac\nmov     r8, [rdx+18h]                                                  ; +0x1ff, 0x180066caf\nmov     rdx, rax                                                       ; +0x203, 0x180066cb3\ncall    r8                                                             ; +0x206, 0x180066cb6\nmov     rax, [rdi]                                                     ; +0x209, 0x180066cb9\nmov     dl, 1                                                          ; +0x20c, 0x180066cbc\nmov     rcx, rdi                                                       ; +0x20e, 0x180066cbe\ncall    qword ptr [rax+4F8h]                                           ; +0x211, 0x180066cc1\nmov     al, 1                                                          ; +0x217, 0x180066cc7\nadd     rsp, 20h                                                       ; +0x219, 0x180066cc9\npop     rdi                                                            ; +0x21d, 0x180066ccd\nretn                                                                   ; +0x21e, 0x180066cce\nxor     al, al                                                         ; +0x21f, 0x180066ccf\nadd     rsp, 20h                                                       ; +0x221, 0x180066cd1\npop     rdi                                                            ; +0x225, 0x180066cd5\nretn                                                                   ; +0x226, 0x180066cd6", "xrefs": ["cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180065a67", "cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180065a56", "<???> @ 0x1801032f8", "<???> @ 0x180142f84", "<???> @ 0x180142f94", "<???> @ 0x18014cf68", "<???> @ 0x1801bdda4"], "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"}