//
// SecretLayer4::updateSearchLabel from 0xa95338 to 0xa955b4 (636 bytes)
//
// 4 xrefs:
// > SecretLayer4::textInputClosed @ 0xa955fc
// > SecretLayer4::textChanged @ 0xa956a4
// > SecretLayer4::init @ 0xa9735c
// > ??> @ 0x66388
//
// This function is hookable on this platform (idp: arm, 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 13:00:42 +0000
//
__int64 __fastcall SecretLayer4::updateSearchLabel(SecretLayer4 *this, char *a2)
{
__int64 v4; // x22
size_t v5; // x0
bool v6; // w0
_BOOL4 v7; // w21
__int64 v8; // x21
void (__fastcall *v9)(__int64, char *); // x2
void (__fastcall *v11)(__int64, char *); // x3
size_t v12; // x0
char v13; // [xsp+40h] [xbp+40h] BYREF
char v14; // [xsp+41h] [xbp+41h]
char v15; // [xsp+42h] [xbp+42h]
__int64 v16[2]; // [xsp+48h] [xbp+48h] BYREF
void *v17; // [xsp+58h] [xbp+58h]
__int64 v18[2]; // [xsp+60h] [xbp+60h] BYREF
void *v19; // [xsp+70h] [xbp+70h]
__int64 v20[2]; // [xsp+78h] [xbp+78h] BYREF
void *v21; // [xsp+88h] [xbp+88h]
__int64 v22; // [xsp+90h] [xbp+90h] BYREF
__int64 v23; // [xsp+98h] [xbp+98h]
void *v24; // [xsp+A0h] [xbp+A0h]
v16[0] = 0;
v4 = *(_QWORD *)(*((_QWORD *)this + 57) + 600LL);
v16[1] = 0;
v17 = nullptr;
v5 = strlen(a2);
std::string::__init(v16, a2, v5);
v18[0] = 0;
v18[1] = 0;
v19 = nullptr;
std::string::__init(v18, &byte_11B8890, 0);
v6 = sub_A93CB8((__int64)v16, (__int64)v18);
v7 = v6;
if ( v6 )
goto LABEL_2;
v20[0] = 0;
v20[1] = 0;
v21 = nullptr;
v12 = strlen(a2);
std::string::__init(v20, a2, v12);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "...", 3u);
v7 = sub_A93CB8((__int64)v20, (__int64)&v22);
if ( (v22 & 1) != 0 )
operator delete(v24);
if ( (v20[0] & 1) == 0 )
{
LABEL_2:
if ( (v18[0] & 1) == 0 )
goto LABEL_3;
}
else
{
operator delete(v21);
if ( (v18[0] & 1) == 0 )
goto LABEL_3;
}
operator delete(v19);
LABEL_3:
if ( (v16[0] & 1) != 0 )
operator delete(v17);
if ( v7 )
{
v8 = *((_QWORD *)this + 57);
v22 = 0;
v23 = 0;
v24 = nullptr;
std::string::__init(&v22, "...", 3u);
CCTextInputNode::updateLabel(v8, (__int64)&v22);
if ( (v22 & 1) != 0 )
operator delete(v24);
v9 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v4 + 1072LL);
v13 = 108;
v14 = -103;
v15 = -40;
v9(v4, &v13);
}
else
{
v11 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v4 + 1072LL);
v13 = -1;
v14 = -1;
v15 = -1;
v11(v4, &v13);
}
return _stack_chk_guard;
}