//
// SecretLayer::textInputOpened from 0x1005fd8d0 to 0x1005fd93e (110 bytes)
//
// 2 xrefs:
// > sub_1005FD980 @ 0x1005fd98c
// > ??> @ 0x10097d238
//
// 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 SecretLayer::textInputOpened(SecretLayer *a1, CCTextInputNode *a2)
{
double v2; // xmm0_8
CCTextInputNode *m_searchInput; // rdi
void *v4[3]; // [rsp+8h] [rbp-38h] BYREF
std::string v5; // [rsp+20h] [rbp-20h] BYREF
CCTextInputNode::getString(v4, (__int64)a2, v2);
if ( ((__int64)v4[0] & 1) != 0 )
{
if ( v4[1] )
goto LABEL_7;
}
else if ( LOBYTE(v4[0]) >> 1 )
{
goto LABEL_7;
}
m_searchInput = a1->m_searchInput;
*(_WORD *)&v5.__r_.__value_.__l.0 = 8194;
v5.__r_.__value_.__s.__data_[1] = 0;
CCTextInputNode::updateLabel(m_searchInput, &v5, v2);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v5.__r_.__value_.__l.__data_);
LABEL_7:
if ( ((__int64)v4[0] & 1) != 0 )
operator delete(v4[2]);
}