//
// GameObject::getParentMode from 0x1005bd100 to 0x1005bd163 (99 bytes)
//
// 6 xrefs:
// > GameObject::playDestroyObjectAnim @ 0x10025f32d
// > SetGroupIDLayer::init @ 0x1003138b1
// > SetGroupIDLayer::init @ 0x100313928
// > GameObject::addColorSpriteToParent @ 0x1005aa175
// > GameObject::claimParticle @ 0x1005bcb8a
// > GameObject::addMainSpriteToParent @ 0x1005bde6d
//
// 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
//
int __fastcall GameObject::getParentMode(GameObject *a1)
{
__int64 v1; // rax
LOWORD(v1) = a1->m_parentMode;
if ( (_WORD)v1 == 0xFFFF )
{
LOWORD(v1) = 4;
if ( !a1->m_addToNodeContainer )
{
LOWORD(v1) = 1;
if ( !a1->m_unk40C )
{
LODWORD(v1) = a1->m_objectID - 142;
if ( (unsigned int)v1 > 0x112D )
{
a1->m_parentMode = 0;
return 0;
}
LOWORD(v1) = word_10081F4CC[(unsigned int)v1];
}
}
a1->m_parentMode = v1;
LODWORD(v1) = (__int16)v1;
}
else
{
LODWORD(v1) = (__int16)v1;
}
return v1;
}