//
// SetGroupIDLayer::updateOrderChannel from 0x100301ae0 to 0x100301b90 (176 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::textChanged @ 0x10030238f
//
// This function is hookable on this platform (idp: pc, 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 12:28:33 +0000
//
__int64 __fastcall SetGroupIDLayer::updateOrderChannel(__int64 a1)
{
__int64 v2; // rdi
__int64 result; // rax
unsigned int v4; // r14d
_DWORD *v5; // r15
*(_BYTE *)(a1 + 760) = 1;
v2 = *(_QWORD *)(a1 + 672);
if ( v2 )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1696LL))(v2);
if ( (_BYTE)result )
{
result = *(_QWORD *)(a1 + 672);
*(_DWORD *)(result + 1776) = *(_DWORD *)(a1 + 756);
}
}
else
{
result = sub_1007FEF90(*(_QWORD *)(a1 + 680));
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = (_DWORD *)sub_1007FEFE0(*(_QWORD *)(a1 + 680), v4);
if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v5 + 1696LL))(v5) )
v5[444] = *(_DWORD *)(a1 + 756);
++v4;
result = sub_1007FEF90(*(_QWORD *)(a1 + 680));
}
while ( v4 < (unsigned int)result );
}
}
return result;
}