//
// SetupTouchTogglePopup::textChanged from 0x95be58 to 0x95bf54 (252 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupTouchTogglePopup::textChanged @ 0x95bf58
// > ??> @ 0x4a490
// > ??> @ 0x11bb218
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupTouchTogglePopup::textChanged(SetupTouchTogglePopup *a1, CCTextInputNode *a2)
{
char *v3; // x21
char *v4; // x0
unsigned int *v5; // x21
int v6; // w1
char *v8; // [xsp+50h] [xbp+50h] BYREF
if ( !a1->m_disableTextDelegate && a2->getTag(a2) == 3 )
{
CCTextInputNode::getString(a2, (__int64)&v8);
v3 = v8;
a1->m_groupID = atoi(v8);
v4 = v3 - 24;
if ( v3 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v3 - 8);
do
v6 = __ldaxr(v5);
while ( __stlxr(v6 - 1, v5) );
}
else
{
v6 = *((_DWORD *)v3 - 2);
*((_DWORD *)v3 - 2) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v4);
}
SetupTouchTogglePopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
}