//
// SetupCollisionTriggerPopup::textChanged from 0x4f5298 to 0x4f5338 (160 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupCollisionTriggerPopup::textChanged @ 0x4f5340
//
// 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 SetupCollisionTriggerPopup::textChanged(SetupCollisionTriggerPopup *a1, CCTextInputNode *a2)
{
char *v4[3]; // [sp+0h] [bp-Ch] BYREF
v4[0] = (char *)a1;
v4[1] = (char *)a2;
if ( !a1->m_disableTextDelegate )
{
if ( a2->getTag(a2) )
{
if ( a2->getTag(a2) == 1 )
{
CCTextInputNode::getString((CCTextInputNode *)v4, (int)a2);
a1->m_blockBID = atoi(v4[0]);
sub_774008(v4);
SetupCollisionTriggerPopup::updateItemID2(a1);
}
else
{
CCTextInputNode::getString((CCTextInputNode *)v4, (int)a2);
a1->m_targetID = atoi(v4[0]);
sub_774008(v4);
SetupCollisionTriggerPopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
}
else
{
CCTextInputNode::getString((CCTextInputNode *)v4, (int)a2);
a1->m_blockAID = atoi(v4[0]);
sub_774008(v4);
SetupCollisionTriggerPopup::updateItemID(a1);
}
}
}