//
// GameObject::parentForZLayer from 0x1002562bc to 0x100256320 (100 bytes)
//
// 2 xrefs:
// > GameObject::playDestroyObjectAnim @ 0x10034a1e0
// > ParticleGameObject::addMainSpriteToParent @ 0x100380ed8
//
// 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)
{
_BOOL4 m_editorEnabled; // w23
GameManager *v9; // x0
__int64 v10; // x8
m_editorEnabled = a1->m_editorEnabled;
v9 = GameManager::sharedState();
v10 = 504;
if ( m_editorEnabled )
v10 = 512;
return GJBaseGameLayer::parentForZLayer(
*(GJBaseGameLayer **)((char *)&v9->__vftable + v10),
a2,
a3,
a4,
a1->m_isUIObject);
}