{"type": "func", "start": 6442870352, "end": 6442870916, "name": "cocos2d::CCParticleFlower::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleFlower::initWithTotalParticles from 0x180066650 to 0x180066884 (564 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleFlower::createWithTotalParticles @ 0x1800658c7\n// > cocos2d::CCParticleFlower::createWithTotalParticles @ 0x1800658b6\n// > <???> @ 0x180102c78\n// > <???> @ 0x180142f60\n// > <???> @ 0x180142f70\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdd5c\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::CCParticleFlower::initWithTotalParticles(cocos2d::CCParticleFlower *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::CCParticleFlower *, _QWORD))(v3 + 1560))(this, 0);\n  v4 = *(_QWORD *)this;\n  v5 = kmVec2Fill(&v15, 0.0, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *, float *))(v4 + 1040))(this, v5);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *))(*(_QWORD *)this + 1056LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *))(*(_QWORD *)this + 1072LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *))(*(_QWORD *)this + 1120LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *))(*(_QWORD *)this + 1136LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *))(*(_QWORD *)this + 1088LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *))(*(_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::CCParticleFlower *, float *))(v7 + 184))(this, v8);\n  (*(void (__fastcall **)(cocos2d::CCParticleFlower *, void *))(*(_QWORD *)this + 952LL))(this, &unk_1801B2448);\n  v9 = *((_DWORD *)this + 167);\n  *((_DWORD *)this + 122) = 1082130432;\n  *((_DWORD *)this + 123) = 1065353216;\n  *((_DWORD *)this + 142) = 1106247680;\n  *((_DWORD *)this + 143) = 1092616192;\n  *((_DWORD *)this + 144) = -1082130432;\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  *((float *)this + 166) = (float)v9 * 0.25;\n  *(_QWORD *)((char *)this + 612) = 1056964608;\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::CCParticleFlower *, __int64))(*(_QWORD *)this + 1272LL))(this, v11);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleFlower::initWithTotalParticles from 0x180066650 to 0x180066884 (564 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleFlower::createWithTotalParticles @ 0x1800658c7\n; > cocos2d::CCParticleFlower::createWithTotalParticles @ 0x1800658b6\n; > <???> @ 0x180102c78\n; > <???> @ 0x180142f60\n; > <???> @ 0x180142f70\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdd5c\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, 0x180066650\nsub     rsp, 20h                                                       ; +0x2, 0x180066652\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180066656\nmov     rdi, rcx                                                       ; +0x9, 0x180066659\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x18006665c\ntest    al, al                                                         ; +0x11, 0x180066661\njz      loc_18006687C                                                  ; +0x13, 0x180066663\nmov     rax, [rdi]                                                     ; +0x19, 0x180066669\nxor     edx, edx                                                       ; +0x1c, 0x18006666c\nmov     rcx, rdi                                                       ; +0x1e, 0x18006666e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x180066671\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x26, 0x180066676\ncall    qword ptr [rax+618h]                                           ; +0x30, 0x180066680\nmov     rbx, [rdi]                                                     ; +0x36, 0x180066686\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x39, 0x180066689\nxorps   xmm2, xmm2                                                     ; +0x3e, 0x18006668e\nxorps   xmm1, xmm1                                                     ; +0x41, 0x180066691\ncall    kmVec2Fill                                                     ; +0x44, 0x180066694\nmov     rdx, rax                                                       ; +0x49, 0x180066699\nmov     rcx, rdi                                                       ; +0x4c, 0x18006669c\ncall    qword ptr [rbx+410h]                                           ; +0x4f, 0x18006669f\nmov     rax, [rdi]                                                     ; +0x55, 0x1800666a5\nmov     rcx, rdi                                                       ; +0x58, 0x1800666a8\nmovss   xmm1, cs:dword_1801053D8                                       ; +0x5b, 0x1800666ab\ncall    qword ptr [rax+420h]                                           ; +0x63, 0x1800666b3\nmov     rax, [rdi]                                                     ; +0x69, 0x1800666b9\nmov     rcx, rdi                                                       ; +0x6c, 0x1800666bc\nmovss   xmm1, cs:dword_1800EE4B0                                       ; +0x6f, 0x1800666bf\ncall    qword ptr [rax+430h]                                           ; +0x77, 0x1800666c7\nmov     rax, [rdi]                                                     ; +0x7d, 0x1800666cd\nmov     rcx, rdi                                                       ; +0x80, 0x1800666d0\nmovss   xmm1, cs:dword_1800FFD38                                       ; +0x83, 0x1800666d3\ncall    qword ptr [rax+460h]                                           ; +0x8b, 0x1800666db\nmov     rax, [rdi]                                                     ; +0x91, 0x1800666e1\nxorps   xmm1, xmm1                                                     ; +0x94, 0x1800666e4\nmov     rcx, rdi                                                       ; +0x97, 0x1800666e7\ncall    qword ptr [rax+470h]                                           ; +0x9a, 0x1800666ea\nmov     rax, [rdi]                                                     ; +0xa0, 0x1800666f0\nmov     rcx, rdi                                                       ; +0xa3, 0x1800666f3\nmovss   xmm1, cs:dword_1801053BC                                       ; +0xa6, 0x1800666f6\ncall    qword ptr [rax+440h]                                           ; +0xae, 0x1800666fe\nmov     rax, [rdi]                                                     ; +0xb4, 0x180066704\nxorps   xmm1, xmm1                                                     ; +0xb7, 0x180066707\nmov     rcx, rdi                                                       ; +0xba, 0x18006670a\ncall    qword ptr [rax+450h]                                           ; +0xbd, 0x18006670d\nmov     dword ptr [rdi+1F0h], 42B40000h                                ; +0xc3, 0x180066713\nmov     dword ptr [rdi+1F4h], 43B40000h                                ; +0xcd, 0x18006671d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd7, 0x180066727\nmov     rcx, rax                                                       ; +0xdc, 0x18006672c\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xdf, 0x18006672f\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xe4, 0x180066734\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0xe9, 0x180066739\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xef, 0x18006673f\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0xf4, 0x180066744\nmulss   xmm2, cs:dword_1800EC358                                       ; +0xfa, 0x18006674a\nmov     rbx, [rdi]                                                     ; +0x102, 0x180066752\nmulss   xmm1, cs:dword_1800EC358                                       ; +0x105, 0x180066755\ncall    kmVec2Fill                                                     ; +0x10d, 0x18006675d\nmov     rdx, rax                                                       ; +0x112, 0x180066762\nmov     rcx, rdi                                                       ; +0x115, 0x180066765\ncall    qword ptr [rbx+0B8h]                                           ; +0x118, 0x180066768\nmov     rax, [rdi]                                                     ; +0x11e, 0x18006676e\nlea     rdx, unk_1801B2448                                             ; +0x121, 0x180066771\nmov     rcx, rdi                                                       ; +0x128, 0x180066778\ncall    qword ptr [rax+3B8h]                                           ; +0x12b, 0x18006677b\nmov     eax, [rdi+29Ch]                                                ; +0x131, 0x180066781\nxorps   xmm0, xmm0                                                     ; +0x137, 0x180066787\nmov     dword ptr [rdi+1E8h], 40800000h                                ; +0x13a, 0x18006678a\nmov     dword ptr [rdi+1ECh], 3F800000h                                ; +0x144, 0x180066794\nmov     dword ptr [rdi+238h], 41F00000h                                ; +0x14e, 0x18006679e\ncvtsi2ss xmm0, rax                                                     ; +0x158, 0x1800667a8\nxor     eax, eax                                                       ; +0x15d, 0x1800667ad\nmov     dword ptr [rdi+23Ch], 41200000h                                ; +0x15f, 0x1800667af\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x169, 0x1800667b9\nmov     dword ptr [rdi+248h], 3F000000h                                ; +0x173, 0x1800667c3\nmov     dword ptr [rdi+24Ch], 3F000000h                                ; +0x17d, 0x1800667cd\nmov     dword ptr [rdi+250h], 3F000000h                                ; +0x187, 0x1800667d7\nmov     dword ptr [rdi+254h], 3F800000h                                ; +0x191, 0x1800667e1\nmulss   xmm0, cs:dword_1800EE454                                       ; +0x19b, 0x1800667eb\nmov     dword ptr [rdi+258h], 3F000000h                                ; +0x1a3, 0x1800667f3\nmov     dword ptr [rdi+25Ch], 3F000000h                                ; +0x1ad, 0x1800667fd\nmov     dword ptr [rdi+260h], 3F000000h                                ; +0x1b7, 0x180066807\nmovss   dword ptr [rdi+298h], xmm0                                     ; +0x1c1, 0x180066811\nmov     qword ptr [rdi+264h], 3F000000h                                ; +0x1c9, 0x180066819\nmov     [rdi+26Ch], rax                                                ; +0x1d4, 0x180066824\nmov     qword ptr [rdi+274h], 3F800000h                                ; +0x1db, 0x18006682b\nmov     [rdi+27Ch], rax                                                ; +0x1e6, 0x180066836\nmov     [rdi+284h], eax                                                ; +0x1ed, 0x18006683d\ncall    sub_180065EE0                                                  ; +0x1f3, 0x180066843\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1f8, 0x180066848\ntest    rax, rax                                                       ; +0x1fd, 0x18006684d\njz      short loc_180066866                                            ; +0x200, 0x180066850\nlea     rcx, [rdi+140h]                                                ; +0x202, 0x180066852\nmov     rdx, [rcx]                                                     ; +0x209, 0x180066859\nmov     r8, [rdx+18h]                                                  ; +0x20c, 0x18006685c\nmov     rdx, rax                                                       ; +0x210, 0x180066860\ncall    r8                                                             ; +0x213, 0x180066863\nmov     rax, [rdi]                                                     ; +0x216, 0x180066866\nmov     dl, 1                                                          ; +0x219, 0x180066869\nmov     rcx, rdi                                                       ; +0x21b, 0x18006686b\ncall    qword ptr [rax+4F8h]                                           ; +0x21e, 0x18006686e\nmov     al, 1                                                          ; +0x224, 0x180066874\nadd     rsp, 20h                                                       ; +0x226, 0x180066876\npop     rdi                                                            ; +0x22a, 0x18006687a\nretn                                                                   ; +0x22b, 0x18006687b\nxor     al, al                                                         ; +0x22c, 0x18006687c\nadd     rsp, 20h                                                       ; +0x22e, 0x18006687e\npop     rdi                                                            ; +0x232, 0x180066882\nretn                                                                   ; +0x233, 0x180066883", "xrefs": ["cocos2d::CCParticleFlower::createWithTotalParticles @ 0x1800658c7", "cocos2d::CCParticleFlower::createWithTotalParticles @ 0x1800658b6", "<???> @ 0x180102c78", "<???> @ 0x180142f60", "<???> @ 0x180142f70", "<???> @ 0x18014cf68", "<???> @ 0x1801bdd5c"], "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"}