//
// EditLevelLayer::textInputOpened from 0x1001fd960 to 0x1001fd9e3 (131 bytes)
//
// 2 xrefs:
// > sub_1001FDA30 @ 0x1001fda35
// > ??> @ 0x1008da800
//
// 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 EditLevelLayer::textInputOpened(EditLevelLayer *a1, CCTextInputNode *a2)
{
double v2; // xmm0_8
void *v3[3]; // [rsp+8h] [rbp-38h] BYREF
std::string v4; // [rsp+20h] [rbp-20h] BYREF
CCTextInputNode::getString(v3, (__int64)a2, v2);
if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) != 1 )
{
((void (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
goto LABEL_9;
}
if ( ((__int64)v3[0] & 1) != 0 )
{
if ( v3[1] )
goto LABEL_9;
}
else if ( LOBYTE(v3[0]) >> 1 )
{
goto LABEL_9;
}
*(_WORD *)&v4.__r_.__value_.__l.0 = 8194;
v4.__r_.__value_.__s.__data_[1] = 0;
CCTextInputNode::updateLabel(a2, &v4, v2);
if ( (*(_BYTE *)&v4.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v4.__r_.__value_.__l.__data_);
LABEL_9:
if ( ((__int64)v3[0] & 1) != 0 )
operator delete(v3[2]);
}