//
// GameObject::parentForZLayer from 0x76f208 to 0x76f274 (108 bytes)
//
// 7 xrefs:
// > GameObject::addMainSpriteToParent @ 0x76f87c
// > GameObject::addColorSpriteToParent @ 0x76fa40
// > GameObject::activateObject @ 0x76fbb0
// > GameObject::claimParticle @ 0x775928
// > ParticleGameObject::addMainSpriteToParent @ 0x86f4fc
// > GameObject::playDestroyObjectAnim @ 0xaf3fd8
// > ??> @ 0xdcd98
//
// This function is hookable on this platform (idp: arm, 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:53:12 +0000
//
__int64 __fastcall GameObject::parentForZLayer(GameObject *this, int a2, bool a3, int a4)
{
GameManager *v6; // x0
GJBaseGameLayer *v7; // x0
v6 = (GameManager *)*((unsigned __int8 *)this + 649);
if ( (_DWORD)v6 )
v7 = *(GJBaseGameLayer **)(GameManager::sharedState(v6) + 552);
else
v7 = *(GJBaseGameLayer **)(GameManager::sharedState(v6) + 544);
return GJBaseGameLayer::parentForZLayer(v7, a2, a3, a4, *((unsigned __int8 *)this + 1345));
}