//
// sub_100042288 from 0x100042288 to 0x100042328 (160 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::onArrow @ 0x100042110
// > SetGroupIDLayer::textChanged @ 0x10004286c
//
// 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 10:57:37 +0000
//
__int64 __fastcall sub_100042288(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
__int64 v4; // x20
_DWORD *v5; // x21
*(_BYTE *)(a1 + 796) = 1;
v2 = *(_QWORD *)(a1 + 672);
if ( v2 )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1696LL))(v2);
if ( (_DWORD)result )
*(_DWORD *)(*(_QWORD *)(a1 + 672) + 1772LL) = *(_DWORD *)(a1 + 792);
}
else
{
result = sub_1002E757C(*(_QWORD *)(a1 + 680));
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = (_DWORD *)sub_1002E75A0(*(_QWORD *)(a1 + 680), v4);
if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v5 + 1696LL))(v5) )
v5[443] = *(_DWORD *)(a1 + 792);
v4 = (unsigned int)(v4 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 680));
}
while ( (unsigned int)v4 < (unsigned int)result );
}
}
return result;
}