//
// GameObject::getObjectZOrder from 0x3561dc to 0x3561ea (14 bytes)
//
// 24 xrefs:
// > PlayLayer::addObject @ 0x311346
// > GameObject::addMainSpriteToParent @ 0x356254
// > GameObject::addMainSpriteToParent @ 0x35626c
// > GameObject::addColorSpriteToParent @ 0x356394
// > GameObject::addColorSpriteToParent @ 0x3563d0
// > GameObject::duplicateAttributes @ 0x3587cc
// > EditorUI::spriteFromObjectString @ 0x387b88
// > EditorUI::spriteFromObjectString @ 0x387e56
// > EditorUI::updateObjectInfoLabel @ 0x3a0792
// > EditorUI::updateObjectInfoLabel @ 0x3a0798
// > EditorUI::updateObjectInfoLabel @ 0x3a0828
// > ParticleGameObject::addMainSpriteToParent @ 0x3e459e
// > ParticleGameObject::addMainSpriteToParent @ 0x3e45ba
// > ParticleGameObject::claimParticle @ 0x3e7602
// > ParticleGameObject::claimParticle @ 0x3e7628
// > GJBaseGameLayer::spawnParticleTrigger @ 0x47799c
// > GJBaseGameLayer::triggerGradientCommand @ 0x47caec
// > SetGroupIDLayer::determineStartValues @ 0x5096c2
// > SetGroupIDLayer::determineStartValues @ 0x5096ea
// > SetGroupIDLayer::determineStartValues @ 0x5096f0
// > GameObject::playDestroyObjectAnim @ 0x52aaf8
// > GameObject::playDestroyObjectAnim @ 0x52af26
// > GameObject::playDestroyObjectAnim @ 0x52b114
// > EditorUI::createExtraObject @ 0x537a62
//
// 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
//
int GameObject::getObjectZOrder(GameObject *a1)
{
int m_zOrder; // r3
m_zOrder = a1->m_zOrder;
if ( !m_zOrder )
return a1->m_defaultZOrder;
return m_zOrder;
}