//
// GameObject::parentForZLayer from 0x645ab4 to 0x645b20 (108 bytes)
//
// 7 xrefs:
// > GameObject::claimParticle @ 0x646114
// > GameObject::addMainSpriteToParent @ 0x64664c
// > GameObject::addColorSpriteToParent @ 0x646810
// > GameObject::activateObject @ 0x646980
// > ParticleGameObject::addMainSpriteToParent @ 0x74a888
// > GameObject::playDestroyObjectAnim @ 0x9b2f0c
// > ??> @ 0xa85d0
//
// 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)
{
GJBaseGameLayer *m_levelEditorLayer; // x0
if ( a1->m_editorEnabled )
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
else
m_levelEditorLayer = GameManager::sharedState()->m_playLayer;
return GJBaseGameLayer::parentForZLayer(m_levelEditorLayer, a2, a3, a4, a1->m_isUIObject);
}