{"type": "func", "start": 6442873696, "end": 6442874266, "name": "cocos2d::CCParticleSpiral::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSpiral::initWithTotalParticles from 0x180067360 to 0x18006759a (570 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleSpiral::createWithTotalParticles @ 0x180065da7\n// > cocos2d::CCParticleSpiral::createWithTotalParticles @ 0x180065d96\n// > <???> @ 0x180103978\n// > <???> @ 0x180142fac\n// > <???> @ 0x180142fbc\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bde34\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::CCParticleSpiral::initWithTotalParticles(cocos2d::CCParticleSpiral *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  float v12; // [rsp+40h] [rbp+18h] BYREF\n  float v13; // [rsp+44h] [rbp+1Ch]\n  float v14; // [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::CCParticleSpiral *, _QWORD))(v3 + 1560))(this, 0);\n  v4 = *(_QWORD *)this;\n  v5 = kmVec2Fill(&v14, 0.0, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *, float *))(v4 + 1040))(this, v5);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *))(*(_QWORD *)this + 1056LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *))(*(_QWORD *)this + 1072LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *))(*(_QWORD *)this + 1120LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *))(*(_QWORD *)this + 1136LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *))(*(_QWORD *)this + 1088LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *))(*(_QWORD *)this + 1104LL))(this);\n  *((_QWORD *)this + 62) = 1119092736;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6, &v12);\n  v7 = *(_QWORD *)this;\n  v8 = kmVec2Fill(&v14, v12 * 0.5, v13 * 0.5);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *, float *))(v7 + 184))(this, v8);\n  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *, void *))(*(_QWORD *)this + 952LL))(this, &unk_1801B2448);\n  v9 = *((_DWORD *)this + 167);\n  *((_QWORD *)this + 61) = 1094713344;\n  *((_QWORD *)this + 71) = 1101004800;\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  *((_QWORD *)this + 76) = 1056964608;\n  *((_DWORD *)this + 154) = 1056964608;\n  *((_DWORD *)this + 155) = 1056964608;\n  *((_DWORD *)this + 156) = 1056964608;\n  *((_DWORD *)this + 157) = 1065353216;\n  *((_DWORD *)this + 158) = 1056964608;\n  *((_DWORD *)this + 159) = 1056964608;\n  *((_QWORD *)this + 80) = 1056964608;\n  *((float *)this + 166) = (float)v9 / 12.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  (*(void (__fastcall **)(cocos2d::CCParticleSpiral *, _QWORD))(*(_QWORD *)this + 1272LL))(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleSpiral::initWithTotalParticles from 0x180067360 to 0x18006759a (570 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleSpiral::createWithTotalParticles @ 0x180065da7\n; > cocos2d::CCParticleSpiral::createWithTotalParticles @ 0x180065d96\n; > <???> @ 0x180103978\n; > <???> @ 0x180142fac\n; > <???> @ 0x180142fbc\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bde34\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, 0x180067360\nsub     rsp, 20h                                                       ; +0x2, 0x180067362\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180067366\nmov     rdi, rcx                                                       ; +0x9, 0x180067369\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x18006736c\ntest    al, al                                                         ; +0x11, 0x180067371\njz      loc_180067592                                                  ; +0x13, 0x180067373\nmov     rax, [rdi]                                                     ; +0x19, 0x180067379\nxor     edx, edx                                                       ; +0x1c, 0x18006737c\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1e, 0x18006737e\nmov     rcx, rdi                                                       ; +0x23, 0x180067383\nmov     [rsp+28h+arg_8], rsi                                           ; +0x26, 0x180067386\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x2b, 0x18006738b\ncall    qword ptr [rax+618h]                                           ; +0x35, 0x180067395\nmov     rbx, [rdi]                                                     ; +0x3b, 0x18006739b\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x3e, 0x18006739e\nxorps   xmm2, xmm2                                                     ; +0x43, 0x1800673a3\nxorps   xmm1, xmm1                                                     ; +0x46, 0x1800673a6\ncall    kmVec2Fill                                                     ; +0x49, 0x1800673a9\nmov     rdx, rax                                                       ; +0x4e, 0x1800673ae\nmov     rcx, rdi                                                       ; +0x51, 0x1800673b1\ncall    qword ptr [rbx+410h]                                           ; +0x54, 0x1800673b4\nmov     rax, [rdi]                                                     ; +0x5a, 0x1800673ba\nmov     rcx, rdi                                                       ; +0x5d, 0x1800673bd\nmovss   xmm1, cs:dword_1801053E0                                       ; +0x60, 0x1800673c0\ncall    qword ptr [rax+420h]                                           ; +0x68, 0x1800673c8\nmov     rax, [rdi]                                                     ; +0x6e, 0x1800673ce\nxorps   xmm1, xmm1                                                     ; +0x71, 0x1800673d1\nmov     rcx, rdi                                                       ; +0x74, 0x1800673d4\ncall    qword ptr [rax+430h]                                           ; +0x77, 0x1800673d7\nmov     rax, [rdi]                                                     ; +0x7d, 0x1800673dd\nmov     rcx, rdi                                                       ; +0x80, 0x1800673e0\nmovss   xmm1, cs:dword_1801053F0                                       ; +0x83, 0x1800673e3\ncall    qword ptr [rax+460h]                                           ; +0x8b, 0x1800673eb\nmov     rax, [rdi]                                                     ; +0x91, 0x1800673f1\nxorps   xmm1, xmm1                                                     ; +0x94, 0x1800673f4\nmov     rcx, rdi                                                       ; +0x97, 0x1800673f7\ncall    qword ptr [rax+470h]                                           ; +0x9a, 0x1800673fa\nmov     rax, [rdi]                                                     ; +0xa0, 0x180067400\nmov     rcx, rdi                                                       ; +0xa3, 0x180067403\nmovss   xmm1, cs:flt_1800FB418                                         ; +0xa6, 0x180067406\ncall    qword ptr [rax+440h]                                           ; +0xae, 0x18006740e\nmov     rax, [rdi]                                                     ; +0xb4, 0x180067414\nxorps   xmm1, xmm1                                                     ; +0xb7, 0x180067417\nmov     rcx, rdi                                                       ; +0xba, 0x18006741a\ncall    qword ptr [rax+450h]                                           ; +0xbd, 0x18006741d\nmov     qword ptr [rdi+1F0h], 42B40000h                                ; +0xc3, 0x180067423\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xce, 0x18006742e\nmov     rcx, rax                                                       ; +0xd3, 0x180067433\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xd6, 0x180067436\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xdb, 0x18006743b\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0xe0, 0x180067440\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xe6, 0x180067446\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0xeb, 0x18006744b\nmulss   xmm2, cs:dword_1800EC358                                       ; +0xf1, 0x180067451\nmov     rbx, [rdi]                                                     ; +0xf9, 0x180067459\nmulss   xmm1, cs:dword_1800EC358                                       ; +0xfc, 0x18006745c\ncall    kmVec2Fill                                                     ; +0x104, 0x180067464\nmov     rdx, rax                                                       ; +0x109, 0x180067469\nmov     rcx, rdi                                                       ; +0x10c, 0x18006746c\ncall    qword ptr [rbx+0B8h]                                           ; +0x10f, 0x18006746f\nmov     rax, [rdi]                                                     ; +0x115, 0x180067475\nlea     rdx, unk_1801B2448                                             ; +0x118, 0x180067478\nmov     rcx, rdi                                                       ; +0x11f, 0x18006747f\ncall    qword ptr [rax+3B8h]                                           ; +0x122, 0x180067482\nmov     eax, [rdi+29Ch]                                                ; +0x128, 0x180067488\nxorps   xmm0, xmm0                                                     ; +0x12e, 0x18006748e\nmov     qword ptr [rdi+1E8h], 41400000h                                ; +0x131, 0x180067491\nmov     qword ptr [rdi+238h], 41A00000h                                ; +0x13c, 0x18006749c\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x147, 0x1800674a7\ncvtsi2ss xmm0, rax                                                     ; +0x151, 0x1800674b1\nmov     dword ptr [rdi+248h], 3F000000h                                ; +0x156, 0x1800674b6\nmov     dword ptr [rdi+24Ch], 3F000000h                                ; +0x160, 0x1800674c0\nmov     dword ptr [rdi+250h], 3F000000h                                ; +0x16a, 0x1800674ca\nmov     dword ptr [rdi+254h], 3F800000h                                ; +0x174, 0x1800674d4\nmov     dword ptr [rdi+258h], 3F000000h                                ; +0x17e, 0x1800674de\nmov     dword ptr [rdi+25Ch], 3F000000h                                ; +0x188, 0x1800674e8\ndivss   xmm0, cs:dword_1800ED378                                       ; +0x192, 0x1800674f2\nmov     qword ptr [rdi+260h], 3F000000h                                ; +0x19a, 0x1800674fa\nmov     dword ptr [rdi+268h], 3F000000h                                ; +0x1a5, 0x180067505\nmov     dword ptr [rdi+26Ch], 3F000000h                                ; +0x1af, 0x18006750f\nmov     dword ptr [rdi+270h], 3F000000h                                ; +0x1b9, 0x180067519\nmov     dword ptr [rdi+274h], 3F800000h                                ; +0x1c3, 0x180067523\nmov     dword ptr [rdi+278h], 3F000000h                                ; +0x1cd, 0x18006752d\nmov     dword ptr [rdi+27Ch], 3F000000h                                ; +0x1d7, 0x180067537\nmov     qword ptr [rdi+280h], 3F000000h                                ; +0x1e1, 0x180067541\nmovss   dword ptr [rdi+298h], xmm0                                     ; +0x1ec, 0x18006754c\ncall    sub_180065EE0                                                  ; +0x1f4, 0x180067554\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x1f9, 0x180067559\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1fe, 0x18006755e\ntest    rax, rax                                                       ; +0x203, 0x180067563\njz      short loc_18006757C                                            ; +0x206, 0x180067566\nlea     rcx, [rdi+140h]                                                ; +0x208, 0x180067568\nmov     rdx, [rcx]                                                     ; +0x20f, 0x18006756f\nmov     r8, [rdx+18h]                                                  ; +0x212, 0x180067572\nmov     rdx, rax                                                       ; +0x216, 0x180067576\ncall    r8                                                             ; +0x219, 0x180067579\nmov     rax, [rdi]                                                     ; +0x21c, 0x18006757c\nxor     edx, edx                                                       ; +0x21f, 0x18006757f\nmov     rcx, rdi                                                       ; +0x221, 0x180067581\ncall    qword ptr [rax+4F8h]                                           ; +0x224, 0x180067584\nmov     al, 1                                                          ; +0x22a, 0x18006758a\nadd     rsp, 20h                                                       ; +0x22c, 0x18006758c\npop     rdi                                                            ; +0x230, 0x180067590\nretn                                                                   ; +0x231, 0x180067591\nxor     al, al                                                         ; +0x232, 0x180067592\nadd     rsp, 20h                                                       ; +0x234, 0x180067594\npop     rdi                                                            ; +0x238, 0x180067598\nretn                                                                   ; +0x239, 0x180067599", "xrefs": ["cocos2d::CCParticleSpiral::createWithTotalParticles @ 0x180065da7", "cocos2d::CCParticleSpiral::createWithTotalParticles @ 0x180065d96", "<???> @ 0x180103978", "<???> @ 0x180142fac", "<???> @ 0x180142fbc", "<???> @ 0x18014cf68", "<???> @ 0x1801bde34"], "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"}