//
// GameObject::getParentMode from 0x10068e870 to 0x10068e8d3 (99 bytes)
//
// 6 xrefs:
// > GameObject::playDestroyObjectAnim @ 0x1002492bd
// > SetGroupIDLayer::init @ 0x1002fe273
// > SetGroupIDLayer::init @ 0x1002fe2e8
// > GameObject::addColorSpriteToParent @ 0x10067b8c5
// > GameObject::claimParticle @ 0x10068e2fa
// > GameObject::addMainSpriteToParent @ 0x10068f51d
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:07 +0000
//
unsigned int __fastcall GameObject::getParentMode(__int64 a1)
{
unsigned int result; // eax
LOWORD(result) = *(_WORD *)(a1 + 1018);
if ( (_WORD)result != 0xFFFF )
return (__int16)result;
LOWORD(result) = 4;
if ( *(_BYTE *)(a1 + 772) )
goto LABEL_7;
LOWORD(result) = 1;
if ( *(_BYTE *)(a1 + 1052) )
goto LABEL_7;
result = *(_DWORD *)(a1 + 1028) - 142;
if ( result <= 0x112D )
{
LOWORD(result) = word_100A0E3A4[result];
LABEL_7:
*(_WORD *)(a1 + 1018) = result;
return (__int16)result;
}
*(_WORD *)(a1 + 1018) = 0;
return 0;
}