//
// LevelListLayer::textInputOpened from 0x100360b30 to 0x100360baa (122 bytes)
//
// 2 xrefs:
// > sub_100360BF0 @ 0x100360bf5
// > ??> @ 0x1009186d0
//
// 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 LevelListLayer::textInputOpened(LevelListLayer *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) != 1002 )
goto LABEL_8;
if ( ((__int64)v3[0] & 1) != 0 )
{
if ( v3[1] )
goto LABEL_8;
}
else if ( LOBYTE(v3[0]) >> 1 )
{
goto LABEL_8;
}
*(_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_8:
if ( ((__int64)v3[0] & 1) != 0 )
operator delete(v3[2]);
}