//
// SetupSmartTemplateLayer::textInputOpened from 0x1004e3450 to 0x1004e34d2 (130 bytes)
//
// 2 xrefs:
// > sub_1004E3500 @ 0x1004e3505
// > ??> @ 0x100b61f80
//
// 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:31:19 +0000
//
void __fastcall SetupSmartTemplateLayer::textInputOpened(__int64 a1, __int64 a2)
{
int v2; // r14d
void *v3[3]; // [rsp+0h] [rbp-40h] BYREF
std::string v4; // [rsp+18h] [rbp-28h] BYREF
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
CCTextInputNode::getString(v3, a2);
if ( v2 )
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);
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]);
}