{"type": "func", "start": 6442873120, "end": 6442873682, "name": "cocos2d::CCParticleSnow::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSnow::initWithTotalParticles from 0x180067120 to 0x180067352 (562 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cd7\n// > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cc6\n// > <???> @ 0x180104cf8\n// > <???> @ 0x180143024\n// > <???> @ 0x180143034\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bde10\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::CCParticleSnow::initWithTotalParticles(cocos2d::CCParticleSnow *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  __int64 v9; // rbx\n  float *v10; // rax\n  struct cocos2d::CCTexture2D *v11; // rax\n  float v13; // [rsp+50h] [rbp+18h] BYREF\n  float v14; // [rsp+54h] [rbp+1Ch]\n  float v15; // [rsp+58h] [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::CCParticleSnow *, _QWORD))(v3 + 1560))(this, 0);\n  v4 = *(_QWORD *)this;\n  v5 = kmVec2Fill(&v15, 0.0, -1.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(v4 + 1040))(this, v5);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1056LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1072LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1120LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1136LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1088LL))(this);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1104LL))(this);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6, &v13);\n  v7 = *(_QWORD *)this;\n  v8 = kmVec2Fill(&v15, v13 * 0.5, v14 + 10.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(v7 + 184))(this, v8);\n  v9 = *(_QWORD *)this;\n  v10 = kmVec2Fill(&v15, v13 * 0.5, 0.0);\n  (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(v9 + 952))(this, v10);\n  *((_DWORD *)this + 124) = -1028390912;\n  *(_QWORD *)((char *)this + 604) = 0;\n  *((_DWORD *)this + 153) = 0;\n  *((_DWORD *)this + 125) = 1084227584;\n  *((_DWORD *)this + 122) = 1110704128;\n  *((_DWORD *)this + 123) = 1097859072;\n  *((_DWORD *)this + 142) = 1092616192;\n  *((_DWORD *)this + 143) = 1084227584;\n  *((_DWORD *)this + 144) = -1082130432;\n  *((_DWORD *)this + 166) = 1092616192;\n  *((_DWORD *)this + 146) = 1065353216;\n  *((_DWORD *)this + 147) = 1065353216;\n  *((_DWORD *)this + 148) = 1065353216;\n  *(_QWORD *)((char *)this + 596) = 1065353216;\n  *((_DWORD *)this + 154) = 1065353216;\n  *((_DWORD *)this + 155) = 1065353216;\n  *((_QWORD *)this + 78) = 1065353216;\n  *((_QWORD *)this + 79) = 0;\n  *((_QWORD *)this + 80) = 0;\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::CCParticleSnow *, _QWORD))(*(_QWORD *)this + 1272LL))(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleSnow::initWithTotalParticles from 0x180067120 to 0x180067352 (562 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cd7\n; > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cc6\n; > <???> @ 0x180104cf8\n; > <???> @ 0x180143024\n; > <???> @ 0x180143034\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bde10\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, 0x180067120\nsub     rsp, 30h                                                       ; +0x2, 0x180067122\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180067126\nmov     rdi, rcx                                                       ; +0x9, 0x180067129\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x18006712c\ntest    al, al                                                         ; +0x11, 0x180067131\njz      loc_18006734A                                                  ; +0x13, 0x180067133\nmov     rax, [rdi]                                                     ; +0x19, 0x180067139\nxor     edx, edx                                                       ; +0x1c, 0x18006713c\nmov     [rsp+38h+arg_0], rbx                                           ; +0x1e, 0x18006713e\nmov     rcx, rdi                                                       ; +0x23, 0x180067143\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x26, 0x180067146\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x2b, 0x18006714b\ncall    qword ptr [rax+618h]                                           ; +0x35, 0x180067155\nmovss   xmm2, cs:dword_1800ED380                                       ; +0x3b, 0x18006715b\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x43, 0x180067163\nmov     rbx, [rdi]                                                     ; +0x48, 0x180067168\nxorps   xmm1, xmm1                                                     ; +0x4b, 0x18006716b\ncall    kmVec2Fill                                                     ; +0x4e, 0x18006716e\nmov     rdx, rax                                                       ; +0x53, 0x180067173\nmov     rcx, rdi                                                       ; +0x56, 0x180067176\ncall    qword ptr [rbx+410h]                                           ; +0x59, 0x180067179\nmov     rax, [rdi]                                                     ; +0x5f, 0x18006717f\nmov     rcx, rdi                                                       ; +0x62, 0x180067182\nmovss   xmm1, cs:flt_1800FD6A8                                         ; +0x65, 0x180067185\ncall    qword ptr [rax+420h]                                           ; +0x6d, 0x18006718d\nmov     rax, [rdi]                                                     ; +0x73, 0x180067193\nmov     rcx, rdi                                                       ; +0x76, 0x180067196\nmovss   xmm6, cs:flt_1800EC208                                         ; +0x79, 0x180067199\nmovaps  xmm1, xmm6                                                     ; +0x81, 0x1800671a1\ncall    qword ptr [rax+430h]                                           ; +0x84, 0x1800671a4\nmov     rax, [rdi]                                                     ; +0x8a, 0x1800671aa\nxorps   xmm1, xmm1                                                     ; +0x8d, 0x1800671ad\nmov     rcx, rdi                                                       ; +0x90, 0x1800671b0\ncall    qword ptr [rax+460h]                                           ; +0x93, 0x1800671b3\nmov     rax, [rdi]                                                     ; +0x99, 0x1800671b9\nmovaps  xmm1, xmm6                                                     ; +0x9c, 0x1800671bc\nmov     rcx, rdi                                                       ; +0x9f, 0x1800671bf\ncall    qword ptr [rax+470h]                                           ; +0xa2, 0x1800671c2\nmov     rax, [rdi]                                                     ; +0xa8, 0x1800671c8\nxorps   xmm1, xmm1                                                     ; +0xab, 0x1800671cb\nmov     rcx, rdi                                                       ; +0xae, 0x1800671ce\ncall    qword ptr [rax+440h]                                           ; +0xb1, 0x1800671d1\nmov     rax, [rdi]                                                     ; +0xb7, 0x1800671d7\nmovaps  xmm1, xmm6                                                     ; +0xba, 0x1800671da\nmov     rcx, rdi                                                       ; +0xbd, 0x1800671dd\ncall    qword ptr [rax+450h]                                           ; +0xc0, 0x1800671e0\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc6, 0x1800671e6\nmov     rcx, rax                                                       ; +0xcb, 0x1800671eb\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xce, 0x1800671ee\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xd3, 0x1800671f3\nmovss   xmm2, [rsp+38h+arg_14]                                         ; +0xd8, 0x1800671f8\nlea     rcx, [rsp+38h+arg_18]                                          ; +0xde, 0x1800671fe\nmovss   xmm1, [rsp+38h+arg_10]                                         ; +0xe3, 0x180067203\naddss   xmm2, cs:dword_1800EE4B0                                       ; +0xe9, 0x180067209\nmulss   xmm1, cs:dword_1800EC358                                       ; +0xf1, 0x180067211\nmov     rbx, [rdi]                                                     ; +0xf9, 0x180067219\ncall    kmVec2Fill                                                     ; +0xfc, 0x18006721c\nmov     rdx, rax                                                       ; +0x101, 0x180067221\nmov     rcx, rdi                                                       ; +0x104, 0x180067224\ncall    qword ptr [rbx+0B8h]                                           ; +0x107, 0x180067227\nmovss   xmm1, [rsp+38h+arg_10]                                         ; +0x10d, 0x18006722d\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x113, 0x180067233\nmulss   xmm1, cs:dword_1800EC358                                       ; +0x118, 0x180067238\nxorps   xmm2, xmm2                                                     ; +0x120, 0x180067240\nmov     rbx, [rdi]                                                     ; +0x123, 0x180067243\ncall    kmVec2Fill                                                     ; +0x126, 0x180067246\nmov     rdx, rax                                                       ; +0x12b, 0x18006724b\nmov     rcx, rdi                                                       ; +0x12e, 0x18006724e\ncall    qword ptr [rbx+3B8h]                                           ; +0x131, 0x180067251\nxor     eax, eax                                                       ; +0x137, 0x180067257\nmov     dword ptr [rdi+1F0h], 0C2B40000h                               ; +0x139, 0x180067259\nmov     [rdi+25Ch], rax                                                ; +0x143, 0x180067263\nmov     [rdi+264h], eax                                                ; +0x14a, 0x18006726a\nmov     dword ptr [rdi+1F4h], 40A00000h                                ; +0x150, 0x180067270\nmov     dword ptr [rdi+1E8h], 42340000h                                ; +0x15a, 0x18006727a\nmov     dword ptr [rdi+1ECh], 41700000h                                ; +0x164, 0x180067284\nmov     dword ptr [rdi+238h], 41200000h                                ; +0x16e, 0x18006728e\nmov     dword ptr [rdi+23Ch], 40A00000h                                ; +0x178, 0x180067298\nmov     dword ptr [rdi+240h], 0BF800000h                               ; +0x182, 0x1800672a2\nmov     dword ptr [rdi+298h], 41200000h                                ; +0x18c, 0x1800672ac\nmov     dword ptr [rdi+248h], 3F800000h                                ; +0x196, 0x1800672b6\nmov     dword ptr [rdi+24Ch], 3F800000h                                ; +0x1a0, 0x1800672c0\nmov     dword ptr [rdi+250h], 3F800000h                                ; +0x1aa, 0x1800672ca\nmov     qword ptr [rdi+254h], 3F800000h                                ; +0x1b4, 0x1800672d4\nmov     dword ptr [rdi+268h], 3F800000h                                ; +0x1bf, 0x1800672df\nmov     dword ptr [rdi+26Ch], 3F800000h                                ; +0x1c9, 0x1800672e9\nmov     qword ptr [rdi+270h], 3F800000h                                ; +0x1d3, 0x1800672f3\nmov     [rdi+278h], rax                                                ; +0x1de, 0x1800672fe\nmov     [rdi+280h], rax                                                ; +0x1e5, 0x180067305\ncall    sub_180065EE0                                                  ; +0x1ec, 0x18006730c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x1f1, 0x180067311\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1f6, 0x180067316\ntest    rax, rax                                                       ; +0x1fb, 0x18006731b\njz      short loc_180067334                                            ; +0x1fe, 0x18006731e\nlea     rcx, [rdi+140h]                                                ; +0x200, 0x180067320\nmov     rdx, [rcx]                                                     ; +0x207, 0x180067327\nmov     r8, [rdx+18h]                                                  ; +0x20a, 0x18006732a\nmov     rdx, rax                                                       ; +0x20e, 0x18006732e\ncall    r8                                                             ; +0x211, 0x180067331\nmov     rax, [rdi]                                                     ; +0x214, 0x180067334\nxor     edx, edx                                                       ; +0x217, 0x180067337\nmov     rcx, rdi                                                       ; +0x219, 0x180067339\ncall    qword ptr [rax+4F8h]                                           ; +0x21c, 0x18006733c\nmov     al, 1                                                          ; +0x222, 0x180067342\nadd     rsp, 30h                                                       ; +0x224, 0x180067344\npop     rdi                                                            ; +0x228, 0x180067348\nretn                                                                   ; +0x229, 0x180067349\nxor     al, al                                                         ; +0x22a, 0x18006734a\nadd     rsp, 30h                                                       ; +0x22c, 0x18006734c\npop     rdi                                                            ; +0x230, 0x180067350\nretn                                                                   ; +0x231, 0x180067351", "xrefs": ["cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cd7", "cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cc6", "<???> @ 0x180104cf8", "<???> @ 0x180143024", "<???> @ 0x180143034", "<???> @ 0x18014cf68", "<???> @ 0x1801bde10"], "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"}