{"type": "func", "start": 6442868784, "end": 6442869357, "name": "cocos2d::CCParticleExplosion::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleExplosion::initWithTotalParticles from 0x180066030 to 0x18006626d (573 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleExplosion::createWithTotalParticles @ 0x180065657\n// > cocos2d::CCParticleExplosion::createWithTotalParticles @ 0x180065646\n// > <???> @ 0x180103ff8\n// > <???> @ 0x180142fd0\n// > <???> @ 0x180142fe0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdcf0\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::CCParticleExplosion::initWithTotalParticles(\n        cocos2d::CCParticleExplosion *this,\n        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  float v10; // xmm0_4\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) = 1036831949;\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, _QWORD))(v3 + 1560))(this, 0);\n  v4 = *(_QWORD *)this;\n  v5 = kmVec2Fill(&v15, 0.0, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, float *))(v4 + 1040))(this, v5);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *))(*(_QWORD *)this + 1056LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *))(*(_QWORD *)this + 1072LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *))(*(_QWORD *)this + 1120LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *))(*(_QWORD *)this + 1136LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *))(*(_QWORD *)this + 1088LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *))(*(_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::CCParticleExplosion *, float *))(v7 + 184))(this, v8);\n  (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, void *))(*(_QWORD *)this + 952LL))(this, &unk_1801B2448);\n  v9 = *((_DWORD *)this + 167);\n  *((_DWORD *)this + 122) = 1084227584;\n  *((_DWORD *)this + 123) = 0x40000000;\n  *((_DWORD *)this + 142) = 1097859072;\n  *((_DWORD *)this + 143) = 1092616192;\n  *((_DWORD *)this + 144) = -1082130432;\n  *((_DWORD *)this + 146) = 1060320051;\n  *((_DWORD *)this + 147) = 1036831949;\n  *((_DWORD *)this + 148) = 1045220557;\n  *((_DWORD *)this + 149) = 1065353216;\n  v10 = (float)v9 / *((float *)this + 117);\n  *((_DWORD *)this + 150) = 1056964608;\n  *((_DWORD *)this + 151) = 1056964608;\n  *((_QWORD *)this + 76) = 1056964608;\n  *((_DWORD *)this + 154) = 1056964608;\n  *((_DWORD *)this + 155) = 1056964608;\n  *((_QWORD *)this + 78) = 1056964608;\n  *((_DWORD *)this + 158) = 1056964608;\n  *((_DWORD *)this + 159) = 1056964608;\n  *((_QWORD *)this + 80) = 1056964608;\n  *((float *)this + 166) = v10;\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::CCParticleExplosion *, _QWORD))(*(_QWORD *)this + 1272LL))(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleExplosion::initWithTotalParticles from 0x180066030 to 0x18006626d (573 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleExplosion::createWithTotalParticles @ 0x180065657\n; > cocos2d::CCParticleExplosion::createWithTotalParticles @ 0x180065646\n; > <???> @ 0x180103ff8\n; > <???> @ 0x180142fd0\n; > <???> @ 0x180142fe0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdcf0\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, 0x180066030\nsub     rsp, 20h                                                       ; +0x2, 0x180066032\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180066036\nmov     rdi, rcx                                                       ; +0x9, 0x180066039\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x18006603c\ntest    al, al                                                         ; +0x11, 0x180066041\njz      loc_180066265                                                  ; +0x13, 0x180066043\nmov     rax, [rdi]                                                     ; +0x19, 0x180066049\nxor     edx, edx                                                       ; +0x1c, 0x18006604c\nmov     rcx, rdi                                                       ; +0x1e, 0x18006604e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x180066051\nmov     dword ptr [rdi+1D4h], 3DCCCCCDh                                ; +0x26, 0x180066056\ncall    qword ptr [rax+618h]                                           ; +0x30, 0x180066060\nmov     rbx, [rdi]                                                     ; +0x36, 0x180066066\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x39, 0x180066069\nxorps   xmm2, xmm2                                                     ; +0x3e, 0x18006606e\nxorps   xmm1, xmm1                                                     ; +0x41, 0x180066071\ncall    kmVec2Fill                                                     ; +0x44, 0x180066074\nmov     rdx, rax                                                       ; +0x49, 0x180066079\nmov     rcx, rdi                                                       ; +0x4c, 0x18006607c\ncall    qword ptr [rbx+410h]                                           ; +0x4f, 0x18006607f\nmov     rax, [rdi]                                                     ; +0x55, 0x180066085\nmov     rcx, rdi                                                       ; +0x58, 0x180066088\nmovss   xmm1, cs:dword_1801053D4                                       ; +0x5b, 0x18006608b\ncall    qword ptr [rax+420h]                                           ; +0x63, 0x180066093\nmov     rax, [rdi]                                                     ; +0x69, 0x180066099\nmov     rcx, rdi                                                       ; +0x6c, 0x18006609c\nmovss   xmm1, cs:dword_1801053CC                                       ; +0x6f, 0x18006609f\ncall    qword ptr [rax+430h]                                           ; +0x77, 0x1800660a7\nmov     rax, [rdi]                                                     ; +0x7d, 0x1800660ad\nxorps   xmm1, xmm1                                                     ; +0x80, 0x1800660b0\nmov     rcx, rdi                                                       ; +0x83, 0x1800660b3\ncall    qword ptr [rax+460h]                                           ; +0x86, 0x1800660b6\nmov     rax, [rdi]                                                     ; +0x8c, 0x1800660bc\nxorps   xmm1, xmm1                                                     ; +0x8f, 0x1800660bf\nmov     rcx, rdi                                                       ; +0x92, 0x1800660c2\ncall    qword ptr [rax+470h]                                           ; +0x95, 0x1800660c5\nmov     rax, [rdi]                                                     ; +0x9b, 0x1800660cb\nxorps   xmm1, xmm1                                                     ; +0x9e, 0x1800660ce\nmov     rcx, rdi                                                       ; +0xa1, 0x1800660d1\ncall    qword ptr [rax+440h]                                           ; +0xa4, 0x1800660d4\nmov     rax, [rdi]                                                     ; +0xaa, 0x1800660da\nxorps   xmm1, xmm1                                                     ; +0xad, 0x1800660dd\nmov     rcx, rdi                                                       ; +0xb0, 0x1800660e0\ncall    qword ptr [rax+450h]                                           ; +0xb3, 0x1800660e3\nmov     dword ptr [rdi+1F0h], 42B40000h                                ; +0xb9, 0x1800660e9\nmov     dword ptr [rdi+1F4h], 43B40000h                                ; +0xc3, 0x1800660f3\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xcd, 0x1800660fd\nmov     rcx, rax                                                       ; +0xd2, 0x180066102\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xd5, 0x180066105\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xda, 0x18006610a\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0xdf, 0x18006610f\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xe5, 0x180066115\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0xea, 0x18006611a\nmulss   xmm2, cs:dword_1800EC358                                       ; +0xf0, 0x180066120\nmov     rbx, [rdi]                                                     ; +0xf8, 0x180066128\nmulss   xmm1, cs:dword_1800EC358                                       ; +0xfb, 0x18006612b\ncall    kmVec2Fill                                                     ; +0x103, 0x180066133\nmov     rdx, rax                                                       ; +0x108, 0x180066138\nmov     rcx, rdi                                                       ; +0x10b, 0x18006613b\ncall    qword ptr [rbx+0B8h]                                           ; +0x10e, 0x18006613e\nmov     rax, [rdi]                                                     ; +0x114, 0x180066144\nlea     rdx, unk_1801B2448                                             ; +0x117, 0x180066147\nmov     rcx, rdi                                                       ; +0x11e, 0x18006614e\ncall    qword ptr [rax+3B8h]                                           ; +0x121, 0x180066151\nmov     eax, [rdi+29Ch]                                                ; +0x127, 0x180066157\nxorps   xmm0, xmm0                                                     ; +0x12d, 0x18006615d\nmov     dword ptr [rdi+1E8h], 40A00000h                                ; +0x130, 0x180066160\nmov     dword ptr [rdi+1ECh], 40000000h                                ; +0x13a, 0x18006616a\nmov     dword ptr [rdi+238h], 41700000h                                ; +0x144, 0x180066174\ncvtsi2ss xmm0, rax                                                     ; +0x14e, 0x18006617e\nmov     dword ptr [rdi+23Ch], 41200000h                                ; +0x153, 0x180066183\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x15d, 0x18006618d\nmov     dword ptr [rdi+248h], 3F333333h                                ; +0x167, 0x180066197\nmov     dword ptr [rdi+24Ch], 3DCCCCCDh                                ; +0x171, 0x1800661a1\nmov     dword ptr [rdi+250h], 3E4CCCCDh                                ; +0x17b, 0x1800661ab\nmov     dword ptr [rdi+254h], 3F800000h                                ; +0x185, 0x1800661b5\ndivss   xmm0, dword ptr [rdi+1D4h]                                     ; +0x18f, 0x1800661bf\nmov     dword ptr [rdi+258h], 3F000000h                                ; +0x197, 0x1800661c7\nmov     dword ptr [rdi+25Ch], 3F000000h                                ; +0x1a1, 0x1800661d1\nmov     qword ptr [rdi+260h], 3F000000h                                ; +0x1ab, 0x1800661db\nmov     dword ptr [rdi+268h], 3F000000h                                ; +0x1b6, 0x1800661e6\nmov     dword ptr [rdi+26Ch], 3F000000h                                ; +0x1c0, 0x1800661f0\nmov     qword ptr [rdi+270h], 3F000000h                                ; +0x1ca, 0x1800661fa\nmov     dword ptr [rdi+278h], 3F000000h                                ; +0x1d5, 0x180066205\nmov     dword ptr [rdi+27Ch], 3F000000h                                ; +0x1df, 0x18006620f\nmov     qword ptr [rdi+280h], 3F000000h                                ; +0x1e9, 0x180066219\nmovss   dword ptr [rdi+298h], xmm0                                     ; +0x1f4, 0x180066224\ncall    sub_180065EE0                                                  ; +0x1fc, 0x18006622c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x201, 0x180066231\ntest    rax, rax                                                       ; +0x206, 0x180066236\njz      short loc_18006624F                                            ; +0x209, 0x180066239\nlea     rcx, [rdi+140h]                                                ; +0x20b, 0x18006623b\nmov     rdx, [rcx]                                                     ; +0x212, 0x180066242\nmov     r8, [rdx+18h]                                                  ; +0x215, 0x180066245\nmov     rdx, rax                                                       ; +0x219, 0x180066249\ncall    r8                                                             ; +0x21c, 0x18006624c\nmov     rax, [rdi]                                                     ; +0x21f, 0x18006624f\nxor     edx, edx                                                       ; +0x222, 0x180066252\nmov     rcx, rdi                                                       ; +0x224, 0x180066254\ncall    qword ptr [rax+4F8h]                                           ; +0x227, 0x180066257\nmov     al, 1                                                          ; +0x22d, 0x18006625d\nadd     rsp, 20h                                                       ; +0x22f, 0x18006625f\npop     rdi                                                            ; +0x233, 0x180066263\nretn                                                                   ; +0x234, 0x180066264\nxor     al, al                                                         ; +0x235, 0x180066265\nadd     rsp, 20h                                                       ; +0x237, 0x180066267\npop     rdi                                                            ; +0x23b, 0x18006626b\nretn                                                                   ; +0x23c, 0x18006626c", "xrefs": ["cocos2d::CCParticleExplosion::createWithTotalParticles @ 0x180065657", "cocos2d::CCParticleExplosion::createWithTotalParticles @ 0x180065646", "<???> @ 0x180103ff8", "<???> @ 0x180142fd0", "<???> @ 0x180142fe0", "<???> @ 0x18014cf68", "<???> @ 0x1801bdcf0"], "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"}