//
// SetupInstantCountPopup::textChanged from 0x1001bd004 to 0x1001bd138 (308 bytes)
//
// 2 xrefs:
// > sub_1001BD138 @ 0x1001bd13c
// > ??> @ 0x1007b54e0
//
// 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 SetupInstantCountPopup::textChanged(SetupInstantCountPopup *a1, CCTextInputNode *a2)
{
char *v4; // x20
char *v5; // x20
char *v6; // x20
char *v7[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_disableTextDelegate )
{
if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) )
{
if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 1 )
{
CCTextInputNode::getString((__int64)a2, v7);
if ( v8 < 0 )
{
v5 = v7[0];
a1->m_targetCount = atoi(v7[0]);
operator delete(v5);
}
else
{
a1->m_targetCount = atoi((const char *)v7);
}
SetupInstantCountPopup::updateTargetCount(a1);
}
else
{
CCTextInputNode::getString((__int64)a2, v7);
if ( v8 < 0 )
{
v6 = v7[0];
a1->m_targetID = atoi(v7[0]);
operator delete(v6);
}
else
{
a1->m_targetID = atoi((const char *)v7);
}
SetupInstantCountPopup::updateTargetID(a1);
}
}
else
{
CCTextInputNode::getString((__int64)a2, v7);
if ( v8 < 0 )
{
v4 = v7[0];
a1->m_itemID = atoi(v7[0]);
operator delete(v4);
}
else
{
a1->m_itemID = atoi((const char *)v7);
}
SetupInstantCountPopup::updateItemID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
}
}