//
// SecretLayer5::updateSearchLabel from 0x100074cbc to 0x100074dfc (320 bytes)
//
// 3 xrefs:
// > SecretLayer5::init @ 0x100074484
// > SecretLayer5::textInputClosed @ 0x100076ec8
// > SecretLayer5::textChanged @ 0x100076f48
//
// 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 SecretLayer5::updateSearchLabel(SecretLayer5 *a1, const char *a2)
{
cocos2d::CCLabelBMFont *m_textLabel; // x19
_BOOL4 v5; // w21
CCTextInputNode *m_textInput; // x20
__int16 v7; // w8
void *v8[2]; // [xsp+8h] [xbp-98h] BYREF
char v9; // [xsp+1Fh] [xbp-81h]
void *__p[2]; // [xsp+20h] [xbp-80h] BYREF
char v11; // [xsp+37h] [xbp-69h]
void *v12[2]; // [xsp+38h] [xbp-68h] BYREF
char v13; // [xsp+4Fh] [xbp-51h]
void *v14[2]; // [xsp+50h] [xbp-50h] BYREF
char v15; // [xsp+67h] [xbp-39h]
void *v16[2]; // [xsp+68h] [xbp-38h] BYREF
char v17; // [xsp+7Fh] [xbp-21h]
m_textLabel = a1->m_textInput->m_textLabel;
sub_100009900(v16, (char *)a2);
sub_100009900(v14, "");
if ( sub_1000045BC(v16, v14) )
{
v5 = 1;
}
else
{
sub_100009900(v12, (char *)a2);
sub_100009900(__p, "...");
v5 = sub_1000045BC(v12, __p);
if ( v11 < 0 )
operator delete(__p[0]);
if ( v13 < 0 )
operator delete(v12[0]);
}
if ( v15 < 0 )
operator delete(v14[0]);
if ( v17 < 0 )
{
operator delete(v16[0]);
if ( v5 )
goto LABEL_11;
LABEL_15:
BYTE2(v16[0]) = -1;
v7 = -1;
goto LABEL_16;
}
if ( !v5 )
goto LABEL_15;
LABEL_11:
m_textInput = a1->m_textInput;
sub_100009900(v8, "...");
CCTextInputNode::updateLabel(m_textInput, v8);
if ( v9 < 0 )
operator delete(v8[0]);
BYTE2(v16[0]) = -40;
v7 = -26260;
LABEL_16:
LOWORD(v16[0]) = v7;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))m_textLabel->setColor)(m_textLabel, v16);
}