//
// GameObject::unclaimParticle from 0x10025c29c to 0x10025c2f4 (88 bytes)
//
// 46 xrefs:
// > ??> @ 0x1007c4128
// > ??> @ 0x1007cfdf8
// > ??> @ 0x1007d05e0
// > ??> @ 0x1007d0df0
// > ??> @ 0x1007f5660
// > ??> @ 0x1007f5e98
// > ??> @ 0x1007f6690
// > ??> @ 0x1007f6e88
// > ??> @ 0x1007f7680
// > ??> @ 0x1007f7e78
// > ??> @ 0x1007f8670
// > ??> @ 0x1007f8e68
// > ??> @ 0x1007f9e60
// > ??> @ 0x1007fa6c8
// > ??> @ 0x1007faed8
// > ??> @ 0x1007fb6e8
// > ??> @ 0x1007fbef8
// > ??> @ 0x1007fc708
// > ??> @ 0x1007fcf18
// > ??> @ 0x1007fd728
// > ??> @ 0x1007fdf38
// > ??> @ 0x1007fe748
// > ??> @ 0x1007fef58
// > ??> @ 0x1007ff780
// > ??> @ 0x1007fffd8
// > ??> @ 0x100800800
// > ??> @ 0x100801028
// > ??> @ 0x100801850
// > ??> @ 0x100802078
// > ??> @ 0x100802888
// > ??> @ 0x100803098
// > ??> @ 0x1008038a8
// > ??> @ 0x1008040b8
// > ??> @ 0x1008048c8
// > ??> @ 0x1008050d8
// > ??> @ 0x1008058e8
// > ??> @ 0x1008060f8
// > ??> @ 0x100806908
// > ??> @ 0x100807118
// > ??> @ 0x100807928
// > ??> @ 0x100808138
// > ??> @ 0x100808948
// > ??> @ 0x100809158
// > ??> @ 0x100809968
// > ??> @ 0x10080a178
// > ??> @ 0x100816498
//
// 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 GameObject::unclaimParticle(GameObject *a1)
{
_BOOL4 m_editorEnabled; // w20
GameManager *v3; // x0
std::string *p_m_particleString; // x1
int v5; // w8
GJBaseGameLayer *m_levelEditorLayer; // x0
m_editorEnabled = a1->m_editorEnabled;
v3 = GameManager::sharedState();
p_m_particleString = &a1->m_particleString;
v5 = a1->m_particleString.m_data.m_short.shortStorage.__elems_[22];
if ( m_editorEnabled )
{
m_levelEditorLayer = v3->m_levelEditorLayer;
if ( v5 < 0 )
goto LABEL_5;
}
else
{
m_levelEditorLayer = v3->m_playLayer;
if ( v5 < 0 )
LABEL_5:
p_m_particleString = (std::string *)p_m_particleString->m_data.m_long.capacitym1;
}
GJBaseGameLayer::unclaimParticle(m_levelEditorLayer, (const char *)p_m_particleString, a1->m_particle);
a1->m_particle = nullptr;
}