//
// GameObject::unclaimParticle from 0x1401992a0 to 0x14019938b (235 bytes)
//
// 46 xrefs:
// > ??> @ 0x140556888
// > ??> @ 0x140556ff8
// > ??> @ 0x14055e030
// > ??> @ 0x14055e6b0
// > ??> @ 0x1405c8748
// > ??> @ 0x14060e228
// > ??> @ 0x14060e948
// > ??> @ 0x14060f180
// > ??> @ 0x14060f828
// > ??> @ 0x14060fef8
// > ??> @ 0x1406105b0
// > ??> @ 0x140610cf8
// > ??> @ 0x140611558
// > ??> @ 0x140611c90
// > ??> @ 0x140612478
// > ??> @ 0x140612b20
// > ??> @ 0x1406131c8
// > ??> @ 0x140613938
// > ??> @ 0x140613fe0
// > ??> @ 0x1406147c8
// > ??> @ 0x140615000
// > ??> @ 0x140615748
// > ??> @ 0x140615df0
// > ??> @ 0x140616538
// > ??> @ 0x140616cf8
// > ??> @ 0x1406173a0
// > ??> @ 0x140617a48
// > ??> @ 0x1406181b8
// > ??> @ 0x140618860
// > ??> @ 0x140618fa8
// > ??> @ 0x140619a48
// > ??> @ 0x14061a0f0
// > ??> @ 0x14061a798
// > ??> @ 0x14061aeb8
// > ??> @ 0x14061b560
// > ??> @ 0x14061bca8
// > ??> @ 0x14061c440
// > ??> @ 0x14061cae8
// > ??> @ 0x14061d190
// > ??> @ 0x14061d838
// > ??> @ 0x14061dee0
// > ??> @ 0x14061e588
// > ??> @ 0x14061ec30
// > ??> @ 0x14061f440
// > ??> @ 0x14061fbd8
// > ??> @ 0x1406cbce8
//
// 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
//
// Hidden C++ exception states: #wind=2
void GameObject::unclaimParticle(GameObject *a1)
{
std::string *p_m_particleString; // rbx
__int64 v3; // rax
GJBaseGameLayer *v4; // rcx
__int64 v5; // rax
void *v6; // [rsp+30h] [rbp+8h]
void *v7; // [rsp+30h] [rbp+8h]
p_m_particleString = &a1->m_particleString;
if ( a1->m_editorEnabled )
{
if ( a1->m_particleString.m_data.m_capacity > 0xF )
p_m_particleString = (std::string *)p_m_particleString->m_data.m_bigStorage;
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
v4 = *(GJBaseGameLayer **)(v3 + 528);
}
else
{
if ( a1->m_particleString.m_data.m_capacity > 0xF )
p_m_particleString = (std::string *)p_m_particleString->m_data.m_bigStorage;
v5 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v5 = qword_1406C2ED8;
}
v4 = *(GJBaseGameLayer **)(v5 + 520);
}
GJBaseGameLayer::unclaimParticle(v4, p_m_particleString->m_data.m_smallStorage._Elems, a1->m_particle);
a1->m_particle = nullptr;
}