//
// cocos2d::CCParticleSnow::initWithTotalParticles from 0x7e206c to 0x7e220c (416 bytes)
//
// 1 xrefs:
// > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x7e2bfe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:50 +0000
//
int __fastcall cocos2d::CCParticleSnow::initWithTotalParticles(cocos2d::CCParticleSnow *this, unsigned int a2)
{
int v3; // r9
int v4; // r3
void (__fastcall *v5)(cocos2d::CCParticleSnow *, float *); // r10
cocos2d::CCDirector *v6; // r0
int v7; // r0
void (__fastcall *v8)(cocos2d::CCParticleSnow *, float *); // r10
int (__fastcall *v9)(cocos2d::CCParticleSnow *, float *); // r10
cocos2d::CCTextureCache *v10; // r0
int v11; // r1
float v13[2]; // [sp+4h] [bp-14h] BYREF
float v14[2]; // [sp+Ch] [bp-Ch] BYREF
v3 = cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0);
if ( v3 )
{
v4 = *(_DWORD *)this;
*((_DWORD *)this + 95) = -1082130432;
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, _DWORD))(v4 + 800))(this, 0);
v5 = *(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(*(_DWORD *)this + 524);
cocos2d::CCPoint::CCPoint(v14, 0.0, -1.0);
v5(this, v14);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, int))(*(_DWORD *)this + 532))(this, 1084227584);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, int))(*(_DWORD *)this + 540))(this, 1065353216);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, _DWORD))(*(_DWORD *)this + 564))(this, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, int))(*(_DWORD *)this + 572))(this, 1065353216);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, _DWORD))(*(_DWORD *)this + 548))(this, 0);
v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCParticleSnow *, int))(*(_DWORD *)this + 556))(
this,
1065353216);
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13, v7);
v8 = *(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(*(_DWORD *)this + 92);
cocos2d::CCPoint::CCPoint(v14, v13[0] * 0.5, v13[1] + 10.0);
v8(this, v14);
v9 = *(int (__fastcall **)(cocos2d::CCParticleSnow *, float *))(*(_DWORD *)this + 480);
cocos2d::CCPoint::CCPoint(v14, v13[0] * 0.5, 0.0);
v10 = (cocos2d::CCTextureCache *)v9(this, v14);
*((float *)this + 120) = 10.0;
*((_DWORD *)this + 102) = -1028390912;
*((_DWORD *)this + 100) = 1110704128;
*((_DWORD *)this + 122) = -1082130432;
*((_DWORD *)this + 103) = 1084227584;
*((_DWORD *)this + 101) = 1097859072;
*((_DWORD *)this + 121) = 1084227584;
*((float *)this + 144) = 10.0;
*((_DWORD *)this + 124) = 1065353216;
*((_DWORD *)this + 125) = 1065353216;
*((_DWORD *)this + 126) = 1065353216;
*((_DWORD *)this + 127) = 1065353216;
*((_DWORD *)this + 128) = 0;
*((_DWORD *)this + 129) = 0;
*((_DWORD *)this + 130) = 0;
*((_DWORD *)this + 131) = 0;
*((_DWORD *)this + 132) = 1065353216;
*((_DWORD *)this + 133) = 1065353216;
*((_DWORD *)this + 134) = 1065353216;
*((_DWORD *)this + 135) = 0;
*((_DWORD *)this + 136) = 0;
*((_DWORD *)this + 137) = 0;
*((_DWORD *)this + 138) = 0;
*((_DWORD *)this + 139) = 0;
v11 = sub_7E10F8(v10);
if ( v11 )
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, int))(*(_DWORD *)this + 760))(this, v11);
(*(void (__fastcall **)(cocos2d::CCParticleSnow *, _DWORD))(*(_DWORD *)this + 640))(this, 0);
}
return v3;
}