{"type": "func", "start": 6442869840, "end": 6442870347, "name": "cocos2d::CCParticleFireworks::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleFireworks::initWithTotalParticles from 0x180066450 to 0x18006664b (507 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x1800657f7\n// > cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x1800657e6\n// > <???> @ 0x1801018f8\n// > <???> @ 0x180142ef4\n// > <???> @ 0x180142f04\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdd38\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::CCParticleFireworks::initWithTotalParticles(\n        cocos2d::CCParticleFireworks *this,\n        unsigned int a2)\n{\n  float *v3; // rax\n  struct cocos2d::CCDirector *v4; // rax\n  __int64 v5; // rbx\n  float *v6; // rax\n  int v7; // eax\n  struct cocos2d::CCTexture2D *v8; // rax\n  float v10; // [rsp+40h] [rbp+18h] BYREF\n  float v11; // [rsp+44h] [rbp+1Ch]\n  float v12; // [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(&v12, 0.0, -90.0);\n  cocos2d::CCSize::operator=((_DWORD *)this + 91, v3);\n  *(_QWORD *)((char *)this + 388) = 0;\n  *((_DWORD *)this + 93) = 1127481344;\n  *((_DWORD *)this + 94) = 1112014848;\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v4, &v10);\n  v5 = *(_QWORD *)this;\n  v6 = kmVec2Fill(&v12, v10 * 0.5, v11 * 0.5);\n  (*(void (__fastcall **)(cocos2d::CCParticleFireworks *, float *))(v5 + 184))(this, v6);\n  v7 = *((_DWORD *)this + 167);\n  *((_DWORD *)this + 124) = 1119092736;\n  *((_DWORD *)this + 125) = 1101004800;\n  *((_DWORD *)this + 122) = 1080033280;\n  *((_DWORD *)this + 123) = 1065353216;\n  *((_DWORD *)this + 146) = 1056964608;\n  *((_DWORD *)this + 147) = 1056964608;\n  *((_DWORD *)this + 148) = 1056964608;\n  *((_DWORD *)this + 149) = 1065353216;\n  *((_DWORD *)this + 150) = 1056964608;\n  *((_DWORD *)this + 151) = 1056964608;\n  *((_DWORD *)this + 152) = 1056964608;\n  *((_DWORD *)this + 153) = 1036831949;\n  *((_DWORD *)this + 154) = 1036831949;\n  *((_DWORD *)this + 155) = 1036831949;\n  *((_DWORD *)this + 156) = 1036831949;\n  *((_DWORD *)this + 157) = 1045220557;\n  *((_DWORD *)this + 158) = 1036831949;\n  *((_DWORD *)this + 159) = 1036831949;\n  *((_DWORD *)this + 160) = 1036831949;\n  *((_DWORD *)this + 161) = 1045220557;\n  *((_DWORD *)this + 142) = 1090519040;\n  *((_DWORD *)this + 143) = 0x40000000;\n  *((_DWORD *)this + 144) = -1082130432;\n  *((float *)this + 166) = (float)v7 / 3.5;\n  v8 = sub_180065EE0();\n  if ( v8 )\n    (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))(\n      (char *)this + 320,\n      v8);\n  (*(void (__fastcall **)(cocos2d::CCParticleFireworks *, _QWORD))(*(_QWORD *)this + 1272LL))(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleFireworks::initWithTotalParticles from 0x180066450 to 0x18006664b (507 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x1800657f7\n; > cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x1800657e6\n; > <???> @ 0x1801018f8\n; > <???> @ 0x180142ef4\n; > <???> @ 0x180142f04\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdd38\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, 0x180066450\nsub     rsp, 20h                                                       ; +0x2, 0x180066452\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180066456\nmov     rdi, rcx                                                       ; +0x9, 0x180066459\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x18006645c\ntest    al, al                                                         ; +0x11, 0x180066461\njz      loc_180066643                                                  ; +0x13, 0x180066463\nmovss   xmm2, cs:dword_1800FB42C                                       ; +0x19, 0x180066469\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x21, 0x180066471\nmov     [rsp+28h+arg_0], rbx                                           ; +0x26, 0x180066476\nxorps   xmm1, xmm1                                                     ; +0x2b, 0x18006647b\nxor     ebx, ebx                                                       ; +0x2e, 0x18006647e\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x30, 0x180066480\nmov     [rdi+2BCh], ebx                                                ; +0x3a, 0x18006648a\ncall    kmVec2Fill                                                     ; +0x40, 0x180066490\nmov     rdx, rax                                                       ; +0x45, 0x180066495\nlea     rcx, [rdi+16Ch]                                                ; +0x48, 0x180066498\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x4f, 0x18006649f\nmov     [rdi+184h], rbx                                                ; +0x54, 0x1800664a4\nmov     dword ptr [rdi+174h], 43340000h                                ; +0x5b, 0x1800664ab\nmov     dword ptr [rdi+178h], 42480000h                                ; +0x65, 0x1800664b5\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6f, 0x1800664bf\nmov     rcx, rax                                                       ; +0x74, 0x1800664c4\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x77, 0x1800664c7\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x7c, 0x1800664cc\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0x81, 0x1800664d1\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x87, 0x1800664d7\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0x8c, 0x1800664dc\nmulss   xmm2, cs:dword_1800EC358                                       ; +0x92, 0x1800664e2\nmov     rbx, [rdi]                                                     ; +0x9a, 0x1800664ea\nmulss   xmm1, cs:dword_1800EC358                                       ; +0x9d, 0x1800664ed\ncall    kmVec2Fill                                                     ; +0xa5, 0x1800664f5\nmov     rdx, rax                                                       ; +0xaa, 0x1800664fa\nmov     rcx, rdi                                                       ; +0xad, 0x1800664fd\ncall    qword ptr [rbx+0B8h]                                           ; +0xb0, 0x180066500\nmov     eax, [rdi+29Ch]                                                ; +0xb6, 0x180066506\nxorps   xmm0, xmm0                                                     ; +0xbc, 0x18006650c\nmov     dword ptr [rdi+1F0h], 42B40000h                                ; +0xbf, 0x18006650f\nmov     dword ptr [rdi+1F4h], 41A00000h                                ; +0xc9, 0x180066519\nmov     dword ptr [rdi+1E8h], 40600000h                                ; +0xd3, 0x180066523\ncvtsi2ss xmm0, rax                                                     ; +0xdd, 0x18006652d\nmov     dword ptr [rdi+1ECh], 3F800000h                                ; +0xe2, 0x180066532\nmov     dword ptr [rdi+248h], 3F000000h                                ; +0xec, 0x18006653c\nmov     dword ptr [rdi+24Ch], 3F000000h                                ; +0xf6, 0x180066546\nmov     dword ptr [rdi+250h], 3F000000h                                ; +0x100, 0x180066550\nmov     dword ptr [rdi+254h], 3F800000h                                ; +0x10a, 0x18006655a\nmov     dword ptr [rdi+258h], 3F000000h                                ; +0x114, 0x180066564\ndivss   xmm0, cs:dword_1801053B8                                       ; +0x11e, 0x18006656e\nmov     dword ptr [rdi+25Ch], 3F000000h                                ; +0x126, 0x180066576\nmov     dword ptr [rdi+260h], 3F000000h                                ; +0x130, 0x180066580\nmov     dword ptr [rdi+264h], 3DCCCCCDh                                ; +0x13a, 0x18006658a\nmov     dword ptr [rdi+268h], 3DCCCCCDh                                ; +0x144, 0x180066594\nmov     dword ptr [rdi+26Ch], 3DCCCCCDh                                ; +0x14e, 0x18006659e\nmov     dword ptr [rdi+270h], 3DCCCCCDh                                ; +0x158, 0x1800665a8\nmov     dword ptr [rdi+274h], 3E4CCCCDh                                ; +0x162, 0x1800665b2\nmov     dword ptr [rdi+278h], 3DCCCCCDh                                ; +0x16c, 0x1800665bc\nmov     dword ptr [rdi+27Ch], 3DCCCCCDh                                ; +0x176, 0x1800665c6\nmov     dword ptr [rdi+280h], 3DCCCCCDh                                ; +0x180, 0x1800665d0\nmov     dword ptr [rdi+284h], 3E4CCCCDh                                ; +0x18a, 0x1800665da\nmov     dword ptr [rdi+238h], 41000000h                                ; +0x194, 0x1800665e4\nmov     dword ptr [rdi+23Ch], 40000000h                                ; +0x19e, 0x1800665ee\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x1a8, 0x1800665f8\nmovss   dword ptr [rdi+298h], xmm0                                     ; +0x1b2, 0x180066602\ncall    sub_180065EE0                                                  ; +0x1ba, 0x18006660a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1bf, 0x18006660f\ntest    rax, rax                                                       ; +0x1c4, 0x180066614\njz      short loc_18006662D                                            ; +0x1c7, 0x180066617\nlea     rcx, [rdi+140h]                                                ; +0x1c9, 0x180066619\nmov     rdx, [rcx]                                                     ; +0x1d0, 0x180066620\nmov     r8, [rdx+18h]                                                  ; +0x1d3, 0x180066623\nmov     rdx, rax                                                       ; +0x1d7, 0x180066627\ncall    r8                                                             ; +0x1da, 0x18006662a\nmov     rax, [rdi]                                                     ; +0x1dd, 0x18006662d\nxor     edx, edx                                                       ; +0x1e0, 0x180066630\nmov     rcx, rdi                                                       ; +0x1e2, 0x180066632\ncall    qword ptr [rax+4F8h]                                           ; +0x1e5, 0x180066635\nmov     al, 1                                                          ; +0x1eb, 0x18006663b\nadd     rsp, 20h                                                       ; +0x1ed, 0x18006663d\npop     rdi                                                            ; +0x1f1, 0x180066641\nretn                                                                   ; +0x1f2, 0x180066642\nxor     al, al                                                         ; +0x1f3, 0x180066643\nadd     rsp, 20h                                                       ; +0x1f5, 0x180066645\npop     rdi                                                            ; +0x1f9, 0x180066649\nretn                                                                   ; +0x1fa, 0x18006664a", "xrefs": ["cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x1800657f7", "cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x1800657e6", "<???> @ 0x1801018f8", "<???> @ 0x180142ef4", "<???> @ 0x180142f04", "<???> @ 0x18014cf68", "<???> @ 0x1801bdd38"], "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"}