//
// cocos2d::CCParticleSnow::initWithTotalParticles from 0x180067120 to 0x180067352 (562 bytes)
//
// 7 xrefs:
// > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cd7
// > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x180065cc6
// > ??> @ 0x180104cf8
// > ??> @ 0x180143024
// > ??> @ 0x180143034
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bde10
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:53 +0000
//
char __fastcall cocos2d::CCParticleSnow::initWithTotalParticles(cocos2d::CCParticleSnow *this, unsigned int a2)
{
__int64 v3; // rax
__int64 v4; // rbx
float *v5; // rax
struct cocos2d::CCDirector *v6; // rax
__int64 v7; // rbx
float *v8; // rax
__int64 v9; // rbx
float *v10; // rax
struct cocos2d::CCTexture2D *v11; // rax
float v13; // [rsp+50h] [rbp+18h] BYREF
float v14; // [rsp+54h] [rbp+1Ch]
float v15; // [rsp+58h] [rbp+20h] BYREF
if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) )
return 0;
v3 = *(_QWORD *)this;
*((_DWORD *)this + 117) = -1082130432;
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, _QWORD))(v3 + 1560))(this, 0);
v4 = *(_QWORD *)this;
v5 = kmVec2Fill(&v15, 0.0, -1.0);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(v4 + 1040))(this, v5);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1056LL))(this);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1072LL))(this);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1120LL))(this);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1136LL))(this);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1088LL))(this);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *))(*(_QWORD *)this + 1104LL))(this);
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6, &v13);
v7 = *(_QWORD *)this;
v8 = kmVec2Fill(&v15, v13 * 0.5, v14 + 10.0);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(v7 + 184))(this, v8);
v9 = *(_QWORD *)this;
v10 = kmVec2Fill(&v15, v13 * 0.5, 0.0);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(v9 + 952))(this, v10);
*((_DWORD *)this + 124) = -1028390912;
*(_QWORD *)((char *)this + 604) = 0;
*((_DWORD *)this + 153) = 0;
*((_DWORD *)this + 125) = 1084227584;
*((_DWORD *)this + 122) = 1110704128;
*((_DWORD *)this + 123) = 1097859072;
*((_DWORD *)this + 142) = 1092616192;
*((_DWORD *)this + 143) = 1084227584;
*((_DWORD *)this + 144) = -1082130432;
*((_DWORD *)this + 166) = 1092616192;
*((_DWORD *)this + 146) = 1065353216;
*((_DWORD *)this + 147) = 1065353216;
*((_DWORD *)this + 148) = 1065353216;
*(_QWORD *)((char *)this + 596) = 1065353216;
*((_DWORD *)this + 154) = 1065353216;
*((_DWORD *)this + 155) = 1065353216;
*((_QWORD *)this + 78) = 1065353216;
*((_QWORD *)this + 79) = 0;
*((_QWORD *)this + 80) = 0;
v11 = sub_180065EE0();
if ( v11 )
(*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))(
(char *)this + 320,
v11);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, _QWORD))(*(_QWORD *)this + 1272LL))(this, 0);
return 1;
}