//
// SetupAnimationPopup::textChanged from 0x94e3e4 to 0x94e558 (372 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupAnimationPopup::textChanged @ 0x94e55c
// > ??> @ 0x4bfc0
// > ??> @ 0x11b5a28
//
// 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 SetupAnimationPopup::textChanged(SetupAnimationPopup *a1, CCTextInputNode *a2)
{
char *v3; // x21
char *v4; // x0
char *v5; // x21
char *v6; // x0
unsigned int *v7; // x21
int v8; // w1
unsigned int *v9; // x21
int v10; // w1
char *v12; // [xsp+50h] [xbp+50h] BYREF
if ( !a1->m_disableTextDelegate )
{
if ( a2->getTag(a2) )
{
CCTextInputNode::getString(a2, (__int64)&v12);
v5 = v12;
a1->m_animationID = atoi(v12);
v6 = v5 - 24;
if ( v5 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)(v5 - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *((_DWORD *)v5 - 2);
*((_DWORD *)v5 - 2) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v6);
}
SetupAnimationPopup::updateAnimationID(a1);
}
else
{
CCTextInputNode::getString(a2, (__int64)&v12);
v3 = v12;
a1->m_targetID = atoi(v12);
v4 = v3 - 24;
if ( v3 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v9 = (unsigned int *)(v3 - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *((_DWORD *)v3 - 2);
*((_DWORD *)v3 - 2) = v10 - 1;
}
if ( v10 <= 0 )
operator delete(v4);
}
SetupAnimationPopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
}
}