//
// GJBaseGameLayer::removeTemporaryParticles from 0x10020296c to 0x100202a14 (168 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::resetLevelVariables @ 0x10020230c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::removeTemporaryParticles(GJBaseGameLayer *a1)
{
__int64 v2; // x20
_DWORD *v3; // x21
int v4; // [xsp+Ch] [xbp-24h] BYREF
if ( (unsigned int)sub_10024A36C(a1->m_temporaryParticles) )
{
v2 = 0;
do
{
v3 = (_DWORD *)sub_10024A388(a1->m_temporaryParticles, v2);
if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 1560LL))(v3) )
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 520LL))(v3);
v4 = v3[2];
sub_10001B104(&a1->m_customParticlesUIDs.__table_.__bucket_list_.__ptr_.__value_, &v4);
sub_10024A464(a1->m_temporaryParticles, v2);
}
else
{
v2 = (unsigned int)(v2 + 1);
}
}
while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_temporaryParticles) );
}
}