//
// sub_315552 from 0x315552 to 0x315582 (48 bytes)
//
// 2 xrefs:
// > EffectManagerState::~EffectManagerState @ 0x315ec6
// > EffectManagerState::operator= @ 0x31da6e
//
// 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 sub_315552(void **p)
{
void **v2; // r6
char *v3; // r5
char *v4; // r7
void **v5; // r0
void *v6; // r0
void **v7; // r0
while ( p )
{
v2 = (void **)*p;
v3 = (char *)p[2];
v4 = (char *)p[3];
while ( v3 != v4 )
{
v5 = (void **)(v3 + 32);
v3 += 44;
std::_Vector_base::~_Vector_base(v5);
}
v6 = p[2];
if ( v6 )
operator delete(v6);
v7 = p;
p = v2;
operator delete(v7);
}
}