//
// SetGroupIDLayer::textChanged from 0x100042624 to 0x1000428a8 (644 bytes)
//
// 2 xrefs:
// > sub_1000428A8 @ 0x1000428ac
// > ??> @ 0x1008b97e8
//
// 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 SetGroupIDLayer::textChanged(__int64 result, __int64 a2)
{
_DWORD *v3; // x19
int *v4; // x21
char *v5; // x20
int v6; // w8
char *v7; // x20
char *v8; // x20
char *v9; // x20
char *v10; // x20
char *v11; // x20
char *v12[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [xsp+1Fh] [xbp-21h]
if ( (*(_BYTE *)(result + 797) & 1) == 0 )
{
v3 = (_DWORD *)result;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
CCTextInputNode::getString(v12);
if ( v13 < 0 )
{
v5 = v12[0];
v4 = v3 + 191;
v3[191] = atoi(v12[0]);
operator delete(v5);
result = (unsigned int)v3[191];
}
else
{
result = atoi((const char *)v12);
v4 = v3 + 191;
}
if ( (int)result >= 9999 )
v6 = 9999;
else
v6 = result;
*v4 = v6;
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 5 )
{
CCTextInputNode::getString(v12);
if ( v13 < 0 )
{
v7 = v12[0];
v3[192] = atoi(v12[0]);
operator delete(v7);
}
else
{
v3[192] = atoi((const char *)v12);
}
return sub_1000421B8((__int64)v3);
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 6 )
{
CCTextInputNode::getString(v12);
if ( v13 < 0 )
{
v8 = v12[0];
v3[193] = atoi(v12[0]);
operator delete(v8);
}
else
{
v3[193] = atoi((const char *)v12);
}
return sub_100042220((__int64)v3);
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 7 )
{
CCTextInputNode::getString(v12);
if ( v13 < 0 )
{
v9 = v12[0];
v3[194] = atoi(v12[0]);
operator delete(v9);
}
else
{
v3[194] = atoi((const char *)v12);
}
return sub_1000423C8((__int64)v3);
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
CCTextInputNode::getString(v12);
if ( v13 < 0 )
{
v10 = v12[0];
v3[198] = atoi(v12[0]);
operator delete(v10);
}
else
{
v3[198] = atoi((const char *)v12);
}
return sub_100042288((__int64)v3);
}
else
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 4 )
{
CCTextInputNode::getString(v12);
if ( v13 < 0 )
{
v11 = v12[0];
v3[189] = atoi(v12[0]);
operator delete(v11);
}
else
{
v3[189] = atoi((const char *)v12);
}
return sub_100042328((__int64)v3);
}
}
}
return result;
}