//
// SetGroupIDLayer::updateZOrder from 0x976bf0 to 0x976c74 (132 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::textChanged @ 0x979dcc
// > SetGroupIDLayer::onArrow @ 0x97a03c
// > ??> @ 0x785a0
//
// 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::updateZOrder(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // x1
unsigned int v3; // w20
__int64 v4; // x0
bool v5; // cf
unsigned int v6; // w1
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_zOrder = a1->m_zOrderValue;
m_targetObject->m_updateParents = 1;
}
else
{
v3 = 0;
while ( 1 )
{
v5 = v3 >= (unsigned int)cocos2d::CCArray::count(a1->m_targetObjects);
v6 = v3++;
if ( v5 )
break;
v4 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v6);
*(_DWORD *)(v4 + 1112) = a1->m_zOrderValue;
*(_BYTE *)(v4 + 1132) = 1;
}
}
}