//
// GameObject::parentForZLayer from 0x355abe to 0x355afa (60 bytes)
//
// 6 xrefs:
// > GameObject::claimParticle @ 0x355eb2
// > GameObject::addMainSpriteToParent @ 0x35622a
// > GameObject::addColorSpriteToParent @ 0x356362
// > GameObject::activateObject @ 0x356434
// > ParticleGameObject::addMainSpriteToParent @ 0x3e456c
// > GameObject::playDestroyObjectAnim @ 0x52b106
//
// 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
//
cocos2d::CCNode *GameObject::parentForZLayer(GameObject *a1, int a2, bool a3, int a4)
{
GameManager *v8; // r0
GameManager *v10; // r0
if ( a1->m_editorEnabled )
{
v8 = GameManager::sharedState();
return GJBaseGameLayer::parentForZLayer(v8->m_levelEditorLayer, a2, a3, a4, a1->m_isUIObject);
}
else
{
v10 = GameManager::sharedState();
return GJBaseGameLayer::parentForZLayer(v10->m_playLayer, a2, a3, a4, a1->m_isUIObject);
}
}