//
// cocos2d::CCParticleFire::initWithTotalParticles from 0x7e1158 to 0x7e12b2 (346 bytes)
//
// 1 xrefs:
// > cocos2d::CCParticleFire::createWithTotalParticles @ 0x7e26ca
//
// 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:49 +0000
//
int __fastcall cocos2d::CCParticleFire::initWithTotalParticles(cocos2d::CCParticleFire *this, unsigned int a2)
{
int v3; // r8
float *v4; // r0
int v5; // r0
float *v6; // r0
unsigned int v7; // s15
int v8; // r1
void (__fastcall *v10)(cocos2d::CCParticleFire *, float *); // [sp+0h] [bp-24h]
float v11[2]; // [sp+Ch] [bp-18h] BYREF
float v12[2]; // [sp+14h] [bp-10h] BYREF
v3 = cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0);
if ( v3 )
{
*((_DWORD *)this + 152) = 0;
*((_DWORD *)this + 95) = -1082130432;
cocos2d::CCPoint::CCPoint(v12, 0.0, 0.0);
v4 = cocos2d::CCPoint::operator=((float *)this + 71, v12);
*((_DWORD *)this + 77) = 0;
*((_DWORD *)this + 73) = 1114636288;
*((_DWORD *)this + 102) = 1119092736;
*((_DWORD *)this + 78) = 0;
*((_DWORD *)this + 74) = 1101004800;
*((_DWORD *)this + 103) = 1092616192;
v5 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v4);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v11, v5);
v10 = *(void (__fastcall **)(cocos2d::CCParticleFire *, float *))(*(_DWORD *)this + 92);
cocos2d::CCPoint::CCPoint(v12, v11[0] * 0.5, 60.0);
v10(this, v12);
cocos2d::CCPoint::CCPoint(v12, 40.0, 20.0);
v6 = cocos2d::CCPoint::operator=((float *)this + 98, v12);
v7 = *((_DWORD *)this + 145);
*((_DWORD *)this + 101) = 1048576000;
*((_DWORD *)this + 125) = 1048576000;
*((_DWORD *)this + 120) = 1113063424;
*((_DWORD *)this + 121) = 1092616192;
*((_DWORD *)this + 126) = 1039516303;
*((_DWORD *)this + 122) = -1082130432;
*((_DWORD *)this + 124) = 1061326684;
*((_DWORD *)this + 127) = 1065353216;
*((_DWORD *)this + 128) = 0;
*((_DWORD *)this + 129) = 0;
*((float *)this + 100) = 3.0;
*((_DWORD *)this + 130) = 0;
*((_DWORD *)this + 131) = 0;
*((_DWORD *)this + 132) = 0;
*((_DWORD *)this + 133) = 0;
*((_DWORD *)this + 134) = 0;
*((_DWORD *)this + 135) = 1065353216;
*((_DWORD *)this + 136) = 0;
*((_DWORD *)this + 137) = 0;
*((_DWORD *)this + 138) = 0;
*((_DWORD *)this + 139) = 0;
*((float *)this + 144) = (float)v7 / 3.0;
v8 = sub_7E10F8((cocos2d::CCTextureCache *)v6);
if ( v8 )
(*(void (__fastcall **)(cocos2d::CCParticleFire *, int))(*(_DWORD *)this + 760))(this, v8);
(*(void (__fastcall **)(cocos2d::CCParticleFire *, int))(*(_DWORD *)this + 640))(this, 1);
}
return v3;
}