//
// LevelSettingsLayer::textChanged from 0x10017be50 to 0x10017bf44 (244 bytes)
//
// 2 xrefs:
// > sub_10017BF44 @ 0x10017bf48
// > ??> @ 0x1007a09b8
//
// 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 LevelSettingsLayer::textChanged(LevelSettingsLayer *a1, CCTextInputNode *a2)
{
int v4; // w20
int v5; // w20
char *v6; // x21
char *v7; // x21
char *v8[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
if ( !a1->m_disableInput )
{
if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 1 )
{
CCTextInputNode::getString((__int64)a2, v8);
if ( v9 < 0 )
{
v6 = v8[0];
v4 = atoi(v8[0]);
operator delete(v6);
}
else
{
v4 = atoi((const char *)v8);
}
a1->m_settingsObject->m_targetOrder = v4;
}
else if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 2 )
{
CCTextInputNode::getString((__int64)a2, v8);
if ( v9 < 0 )
{
v7 = v8[0];
v5 = atoi(v8[0]);
operator delete(v7);
}
else
{
v5 = atoi((const char *)v8);
}
a1->m_settingsObject->m_targetChannel = v5;
}
}
}