//
// SetGroupIDLayer::updateOrderChannel from 0xabba74 to 0xabbb34 (192 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::textChanged @ 0xabbd38
// > SetGroupIDLayer::onArrow @ 0xabc400
// > SetGroupIDLayer::onNextFreeOrderChannel @ 0xabc64c
// > ??> @ 0xda650
//
// 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:02 +0000
//
__int64 __fastcall SetGroupIDLayer::updateOrderChannel(SetGroupIDLayer *this)
{
unsigned int v2; // w19
__int64 v3; // x0
__int64 result; // x0
bool v5; // cf
unsigned int v6; // w1
_DWORD *v7; // x21
v2 = 0;
v3 = *((_QWORD *)this + 84);
*((_BYTE *)this + 760) = 1;
if ( v3 )
{
result = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1696LL))(v3);
if ( (_BYTE)result )
{
result = *((_QWORD *)this + 84);
*(_DWORD *)(result + 1776) = *((_DWORD *)this + 189);
}
}
else
{
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85));
v5 = v2 >= (unsigned int)result;
v6 = v2++;
if ( v5 )
break;
while ( 1 )
{
v7 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v6);
if ( !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v7 + 1696LL))(v7) )
break;
v7[444] = *((_DWORD *)this + 189);
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85));
v5 = v2 >= (unsigned int)result;
v6 = v2++;
if ( v5 )
return result;
}
}
}
return result;
}