//
// GJBaseGameLayer::removeTemporaryParticles from 0x10029f6ec to 0x10029f794 (168 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f084
//
// 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:12 +0000
//
__int64 __fastcall GJBaseGameLayer::removeTemporaryParticles(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
_DWORD *v4; // x21
int v5; // [xsp+Ch] [xbp-24h] BYREF
result = sub_1002E757C(*(_QWORD *)(a1 + 12352));
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = (_DWORD *)sub_1002E75A0(*(_QWORD *)(a1 + 12352), v3);
if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1576LL))(v4) )
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 536LL))(v4);
v5 = v4[2];
sub_10001BB58((_QWORD *)(a1 + 12360), &v5);
sub_1002E767C(*(_QWORD *)(a1 + 12352), v3);
}
else
{
v3 = (unsigned int)(v3 + 1);
}
result = sub_1002E757C(*(_QWORD *)(a1 + 12352));
}
while ( (unsigned int)v3 < (unsigned int)result );
}
return result;
}