//
// SetIDPopup::textChanged from 0x10037ba74 to 0x10037bb08 (148 bytes)
//
// 5 xrefs:
// > sub_10037BB08 @ 0x10037bb0c
// > ??> @ 0x1009259e8
// > ??> @ 0x100935cf8
// > ??> @ 0x100939d18
// > ??> @ 0x10093a4d0
//
// 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 11:03:27 +0000
//
__int64 __fastcall SetIDPopup::textChanged(__int64 result, __int64 a2)
{
_DWORD *v2; // x19
int v3; // w0
char *v4; // x20
int v5; // w8
int v6; // w9
char *v7[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( (*(_BYTE *)(result + 676) & 1) == 0 )
{
v2 = (_DWORD *)result;
CCTextInputNode::getString(a2, v7);
if ( v8 < 0 )
{
v4 = v7[0];
v2[168] = atoi(v7[0]);
operator delete(v4);
v3 = v2[168];
}
else
{
v3 = atoi((const char *)v7);
}
v5 = v2[170];
v6 = v2[171];
if ( v6 >= v3 )
v6 = v3;
if ( v5 <= v6 )
v5 = v6;
v2[168] = v5;
return (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v2 + 1360LL))(v2);
}
return result;
}