//
// SetGroupIDLayer::updateZOrder from 0xabafb4 to 0xabb040 (140 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::textChanged @ 0xabbe60
// > SetGroupIDLayer::onArrow @ 0xabc388
// > ??> @ 0xa10c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:01 +0000
//
__int64 __fastcall SetGroupIDLayer::updateZOrder(SetGroupIDLayer *this)
{
__int64 v1; // x1
__int64 result; // x0
unsigned int v4; // w20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
*((_DWORD *)this + 195) = 0;
v1 = *((_QWORD *)this + 84);
if ( v1 )
{
*(_DWORD *)(v1 + 1128) = *((_DWORD *)this + 194);
result = *((_QWORD *)this + 84);
*(_BYTE *)(result + 1148) = 1;
}
else
{
v4 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85));
v6 = v4 >= (unsigned int)result;
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v7);
*(_DWORD *)(v5 + 1128) = *((_DWORD *)this + 194);
*(_BYTE *)(v5 + 1148) = 1;
}
}
return result;
}