//
// SetupTouchTogglePopup::textChanged from 0x1002e90b8 to 0x1002e914c (148 bytes)
//
// 2 xrefs:
// > sub_1002E91D0 @ 0x1002e91d4
// > ??> @ 0x1009265c0
//
// 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:02:52 +0000
//
void __fastcall SetupTouchTogglePopup::textChanged(__int64 a1, __int64 a2)
{
char *v4; // x20
char *v5[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( (*(_BYTE *)(a1 + 744) & 1) == 0 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
CCTextInputNode::getString(a2, v5);
if ( v6 < 0 )
{
v4 = v5[0];
*(_DWORD *)(a1 + 1024) = atoi(v5[0]);
operator delete(v4);
}
else
{
*(_DWORD *)(a1 + 1024) = atoi((const char *)v5);
}
sub_1002E914C(a1);
sub_1001AD6E0(a1);
}
}