//
// EditLevelLayer::textInputOpened from 0x1001e0010 to 0x1001e0093 (131 bytes)
//
// 2 xrefs:
// > sub_1001E00E0 @ 0x1001e00e5
// > ??> @ 0x100ade980
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:26:28 +0000
//
void __fastcall EditLevelLayer::textInputOpened(__int64 a1, __int64 a2)
{
void *v2[3]; // [rsp+8h] [rbp-38h] BYREF
std::string v3; // [rsp+20h] [rbp-20h] BYREF
CCTextInputNode::getString(v2, a2);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
goto LABEL_9;
}
if ( ((__int64)v2[0] & 1) != 0 )
{
if ( v2[1] )
goto LABEL_9;
}
else if ( LOBYTE(v2[0]) >> 1 )
{
goto LABEL_9;
}
*(_WORD *)&v3.__r_.__value_.__l.0 = 8194;
v3.__r_.__value_.__s.__data_[1] = 0;
CCTextInputNode::updateLabel(a2, &v3);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v3.__r_.__value_.__l.__data_);
LABEL_9:
if ( ((__int64)v2[0] & 1) != 0 )
operator delete(v2[2]);
}