//
// SetupTouchTogglePopup::textChanged from 0xaa2cf4 to 0xaa2dbc (200 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupTouchTogglePopup::textChanged @ 0xaa2dc0
// > ??> @ 0x68b00
// > ??> @ 0x14a23a8
//
// 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 13:00:49 +0000
//
__int64 __fastcall SetupTouchTogglePopup::textChanged(SetupTouchTogglePopup *this, CCTextInputNode *a2)
{
char *v4; // x21
__int64 v6[2]; // [xsp+40h] [xbp+40h] BYREF
char *v7; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 744) && (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
CCTextInputNode::getString(a2, v6);
if ( (v6[0] & 1) != 0 )
{
v4 = v7;
*((_DWORD *)this + 256) = atoi(v7);
operator delete(v4);
}
else
{
*((_DWORD *)this + 256) = atoi((const char *)v6 + 1);
}
SetupTouchTogglePopup::updateTargetID(this);
SetupTriggerPopup::updateEditorLabel(this);
}
return _stack_chk_guard;
}