//
// PlayerObject::resetAllParticles from 0x1002ba744 to 0x1002ba7a8 (100 bytes)
//
// 2 xrefs:
// > PlayerObject::toggleVisibility @ 0x1002ba6e0
// > MenuGameLayer::resetPlayer @ 0x100442424
//
// This function is hookable on this platform (idp: arm, 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:02:25 +0000
//
__int64 __fastcall PlayerObject::resetAllParticles(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 v4; // x21
result = sub_1002E757C(*(_QWORD *)(a1 + 1680));
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 1680), v3);
cocos2d::CCParticleSystem::resetSystem(v4);
cocos2d::CCParticleSystem::stopSystem(v4);
v3 = (unsigned int)(v3 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 1680));
}
while ( (unsigned int)v3 < (unsigned int)result );
}
return result;
}