//
// GJBaseGameLayer::removeTemporaryParticles from 0x100159d20 to 0x100159de4 (196 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::resetLevelVariables @ 0x100159181
//
// 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 v1; // rax
unsigned int v2; // r15d
_DWORD *v3; // r13
int v4[11]; // [rsp+0h] [rbp-2Ch] BYREF
v4[0] = HIDWORD(v1);
if ( (unsigned int)sub_100720070(a1->m_temporaryParticles) )
{
v2 = 0;
do
{
while ( 1 )
{
v3 = (_DWORD *)sub_1007200C0(a1->m_temporaryParticles, v2);
if ( !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 1560LL))(v3) )
break;
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 520LL))(v3);
v4[0] = v3[2];
sub_1000569A0(&a1->m_customParticlesUIDs.__table_.__bucket_list_.__ptr_.__value_, v4);
sub_100720280(a1->m_temporaryParticles, v2);
if ( v2 >= (unsigned int)sub_100720070(a1->m_temporaryParticles) )
return;
}
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_temporaryParticles) );
}
}