//
// CollisionBlockPopup::textChanged from 0x100085924 to 0x10008599c (120 bytes)
//
// 2 xrefs:
// > sub_10008599C @ 0x1000859a0
// > ??> @ 0x10077e130
//
// 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 CollisionBlockPopup::textChanged(CollisionBlockPopup *a1, CCTextInputNode *a2)
{
char *v3; // x20
char *v4[2]; // [xsp+8h] [xbp-28h] BYREF
char v5; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_disableDelegate )
{
CCTextInputNode::getString(v4, a2);
if ( v5 < 0 )
{
v3 = v4[0];
a1->m_blockID = atoi(v4[0]);
operator delete(v3);
}
else
{
a1->m_blockID = atoi((const char *)v4);
}
CollisionBlockPopup::updateItemID(a1);
CollisionBlockPopup::updateEditorLabel(a1);
}
}