//
// SetGroupIDLayer::onZLayer from 0x50a0b8 to 0x50a116 (94 bytes)
//
// 0 xrefs:
//
// 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
//
void SetGroupIDLayer::onZLayer(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
int v3; // r1
GameObject *m_targetObject; // r0
unsigned int v5; // r4
GameObject *v6; // r0
GameObject *v7; // r7
v3 = a2->getTag(a2);
a1->m_zLayerValue = v3;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
GameObject::setCustomZLayer(m_targetObject, v3);
a1->m_targetObject->m_updateParents = 1;
}
else
{
v5 = 0;
while ( v5 < cocos2d::CCArray::count(a1->m_targetObjects) )
{
v6 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v5++);
v7 = v6;
GameObject::setCustomZLayer(v6, a1->m_zLayerValue);
v7->m_updateParents = 1;
}
}
SetGroupIDLayer::updateZLayerButtons(a1);
}