//
// SetGroupIDLayer::updateZOrder from 0x63a8e0 to 0x63a92e (78 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::textChanged @ 0x63abb2
// > SetGroupIDLayer::onArrow @ 0x63b47c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:23 +0000
//
_DWORD *__fastcall SetGroupIDLayer::updateZOrder(_DWORD *this)
{
unsigned int v1; // r4
_DWORD *v2; // r5
int v3; // r0
v1 = *(this + 131);
v2 = this;
*(this + 148) = 0;
if ( v1 )
{
*(_DWORD *)(v1 + 984) = *(this + 147);
*(_BYTE *)(*(this + 131) + 1004) = 1;
}
else
{
while ( 1 )
{
this = (_DWORD *)cocos2d::CCArray::count((cocos2d::CCArray *)v2[132]);
if ( v1 >= (unsigned int)this )
break;
v3 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v2[132], v1++);
*(_DWORD *)(v3 + 984) = v2[147];
*(_BYTE *)(v3 + 1004) = 1;
}
}
return this;
}