//
// SetGroupIDLayer::updateZOrder from 0x10003e91c to 0x10003e99c (128 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::onArrow @ 0x10003e664
// > SetGroupIDLayer::textChanged @ 0x10003eda8
//
// 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 __fastcall SetGroupIDLayer::updateZOrder(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // x8
__int64 v3; // x20
__int64 v4; // x0
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_zOrder = a1->m_zOrderValue;
m_targetObject->m_updateParents = 1;
}
else if ( (unsigned int)sub_10024A36C(a1->m_targetObjects) )
{
v3 = 0;
do
{
v4 = sub_10024A388(a1->m_targetObjects, v3);
*(_DWORD *)(v4 + 1128) = a1->m_zOrderValue;
*(_BYTE *)(v4 + 1148) = 1;
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_targetObjects) );
}
}