//
// SetGroupIDLayer::updateOrderChannel from 0x63a9e2 to 0x63aa3c (90 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::textChanged @ 0x63ac22
// > SetGroupIDLayer::onArrow @ 0x63b3a2
// > SetGroupIDLayer::onNextFreeOrderChannel @ 0x63b4f8
//
// 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
//
unsigned int __fastcall SetGroupIDLayer::updateOrderChannel(SetGroupIDLayer *this)
{
int v2; // r0
unsigned int i; // r4
unsigned int result; // r0
_DWORD *v5; // r6
*((_BYTE *)this + 572) = 1;
v2 = *((_DWORD *)this + 131);
if ( v2 )
{
result = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 848))(v2);
if ( result )
*(_DWORD *)(*((_DWORD *)this + 131) + 1592) = *((_DWORD *)this + 142);
}
else
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132));
if ( i >= result )
break;
v5 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), i);
if ( (*(int (__fastcall **)(_DWORD *))(*v5 + 848))(v5) )
v5[398] = *((_DWORD *)this + 142);
}
}
return result;
}