//
// GameObject::parentForZLayer from 0x44d4ea to 0x44d526 (60 bytes)
//
// 6 xrefs:
// > GameObject::addMainSpriteToParent @ 0x44d8fe
// > GameObject::addColorSpriteToParent @ 0x44da36
// > GameObject::activateObject @ 0x44db08
// > GameObject::claimParticle @ 0x452cfc
// > ParticleGameObject::addMainSpriteToParent @ 0x4e6614
// > GameObject::playDestroyObjectAnim @ 0x65f31e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:35 +0000
//
int __fastcall GameObject::parentForZLayer(GameObject *this, int a2, bool a3, int a4)
{
int v8; // r0
int v10; // r0
if ( *((_BYTE *)this + 549) )
{
v8 = GameManager::sharedState(this);
return GJBaseGameLayer::parentForZLayer(
*(GJBaseGameLayer **)(v8 + 408),
a2,
a3,
a4,
*((unsigned __int8 *)this + 1165));
}
else
{
v10 = GameManager::sharedState(this);
return GJBaseGameLayer::parentForZLayer(
*(GJBaseGameLayer **)(v10 + 404),
a2,
a3,
a4,
*((unsigned __int8 *)this + 1165));
}
}