//
// SecretLayer2::textInputOpened from 0x10049b0c0 to 0x10049b12e (110 bytes)
//
// 2 xrefs:
// > sub_10049B170 @ 0x10049b17c
// > ??> @ 0x100b507f8
//
// 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:30:50 +0000
//
void __fastcall SecretLayer2::textInputOpened(__int64 a1, __int64 a2)
{
__int64 v2; // rdi
void *v3[3]; // [rsp+8h] [rbp-38h] BYREF
std::string v4; // [rsp+20h] [rbp-20h] BYREF
CCTextInputNode::getString(v3, a2);
if ( ((__int64)v3[0] & 1) != 0 )
{
if ( v3[1] )
goto LABEL_7;
}
else if ( LOBYTE(v3[0]) >> 1 )
{
goto LABEL_7;
}
v2 = *(_QWORD *)(a1 + 456);
*(_WORD *)&v4.__r_.__value_.__l.0 = 8194;
v4.__r_.__value_.__s.__data_[1] = 0;
CCTextInputNode::updateLabel(v2, &v4);
if ( (*(_BYTE *)&v4.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v4.__r_.__value_.__l.__data_);
LABEL_7:
if ( ((__int64)v3[0] & 1) != 0 )
operator delete(v3[2]);
}