//
// GameObject::parentForZLayer from 0x1005a9ff0 to 0x1005aa042 (82 bytes)
//
// 2 xrefs:
// > ParticleGameObject::addMainSpriteToParent @ 0x1001b1b34
// > GameObject::playDestroyObjectAnim @ 0x10025f33e
//
// 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 *__fastcall GameObject::parentForZLayer(GameObject *a1, int a2, bool a3, int a4)
{
_BOOL8 m_editorEnabled; // r13
GameManager *v7; // rax
m_editorEnabled = a1->m_editorEnabled;
v7 = GameManager::sharedState();
return GJBaseGameLayer::parentForZLayer(
*((GJBaseGameLayer **)&v7->m_playLayer + m_editorEnabled),
a2,
a3,
a4,
a1->m_isUIObject);
}