//
// SetupAnimationPopup::textChanged from 0x1003c40b0 to 0x1003c4184 (212 bytes)
//
// 2 xrefs:
// > sub_1003C4184 @ 0x1003c4188
// > ??> @ 0x1008131c8
//
// 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 __fastcall SetupAnimationPopup::textChanged(SetupAnimationPopup *a1, CCTextInputNode *a2)
{
char *v4; // x20
char *v5; // x20
char *v6[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_disableTextDelegate )
{
if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) )
{
CCTextInputNode::getString((__int64)a2, v6);
if ( v7 < 0 )
{
v4 = v6[0];
a1->m_animationID = atoi(v6[0]);
operator delete(v4);
}
else
{
a1->m_animationID = atoi((const char *)v6);
}
SetupAnimationPopup::updateAnimationID(a1);
}
else
{
CCTextInputNode::getString((__int64)a2, v6);
if ( v7 < 0 )
{
v5 = v6[0];
a1->m_targetID = atoi(v6[0]);
operator delete(v5);
}
else
{
a1->m_targetID = atoi((const char *)v6);
}
SetupAnimationPopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
}
}