//
// SecretLayer5::updateSearchLabel from 0x6e4d88 to 0x6e4ed6 (334 bytes)
//
// 3 xrefs:
// > SecretLayer5::textInputClosed @ 0x6e4f0e
// > SecretLayer5::textChanged @ 0x6e4f66
// > SecretLayer5::init @ 0x6e5ef4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:23 +0000
//
int __fastcall SecretLayer5::updateSearchLabel(SecretLayer5 *this, const char *a2)
{
int v4; // r7
size_t v5; // r0
_BOOL4 v6; // r10
size_t v7; // r0
float *v8; // r8
int (__fastcall *v9)(int, char *); // r3
int (__fastcall *v11)(int, char *); // r2
char v12; // [sp+0h] [bp-3Ch] BYREF
char v13; // [sp+1h] [bp-3Bh]
char v14; // [sp+2h] [bp-3Ah]
int v15[3]; // [sp+4h] [bp-38h] BYREF
int v16[3]; // [sp+10h] [bp-2Ch] BYREF
int v17[3]; // [sp+1Ch] [bp-20h] BYREF
int v18; // [sp+28h] [bp-14h] BYREF
int v19; // [sp+2Ch] [bp-10h]
int v20; // [sp+30h] [bp-Ch]
memset(v15, 0, sizeof(v15));
v4 = *(_DWORD *)(*((_DWORD *)this + 89) + 428);
v5 = strlen(a2);
std::string::__init(v15, a2, v5);
memset(v16, 0, sizeof(v16));
std::string::__init(v16, &unk_B6B226, 0);
v6 = sub_6E2792((unsigned __int8 *)v15, (unsigned __int8 *)v16);
if ( !v6 )
{
memset(v17, 0, sizeof(v17));
v7 = strlen(a2);
std::string::__init(v17, a2, v7);
v18 = 0;
v19 = 0;
v20 = 0;
std::string::__init(&v18, "...", 3u);
v6 = sub_6E2792((unsigned __int8 *)v17, (unsigned __int8 *)&v18);
std::string::~string((int)&v18);
std::string::~string((int)v17);
}
std::string::~string((int)v16);
std::string::~string((int)v15);
if ( v6 )
{
v8 = *((float **)this + 89);
v18 = 0;
v19 = 0;
v20 = 0;
std::string::__init(&v18, "...", 3u);
CCTextInputNode::updateLabel(v8, (int)&v18);
std::string::~string((int)&v18);
v9 = *(int (__fastcall **)(int, char *))(*(_DWORD *)v4 + 536);
v12 = 108;
v13 = -103;
v14 = -40;
return v9(v4, &v12);
}
else
{
v11 = *(int (__fastcall **)(int, char *))(*(_DWORD *)v4 + 536);
v12 = -1;
v13 = -1;
v14 = -1;
return v11(v4, &v12);
}
}