//
// SecretLayer::textInputClosed from 0x1403df970 to 0x1403dfa3d (205 bytes)
//
// 3 xrefs:
// > ??> @ 0x1405cfca0
// > ??> @ 0x1405cfcb0
// > ??> @ 0x1406d7e50
//
// 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 SecretLayer::textInputClosed(SecretLayer *a1, CCTextInputNode *a2)
{
const char *v3; // rax
size_t v4; // r8
void **v5; // rdx
void *v6; // rcx
void *Block[2]; // [rsp+28h] [rbp-30h] BYREF
__int128 v8; // [rsp+38h] [rbp-20h]
v3 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)Block = 0;
v8 = 0;
v4 = -1;
do
++v4;
while ( v3[v4] );
sub_14003A930(Block, v3, v4);
v5 = Block;
if ( *((_QWORD *)&v8 + 1) > 0xFu )
v5 = (void **)Block[0];
SecretLayer::updateSearchLabel((SecretLayer *)((char *)a1 - 408), (const char *)v5);
if ( *((_QWORD *)&v8 + 1) > 0xFu )
{
v6 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v6);
}
}