//
// SFXBrowser::textChanged from 0x6c6520 to 0x6c6600 (224 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SFXBrowser::textChanged @ 0x6c6608
//
// 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:56:55 +0000
//
int __fastcall SFXBrowser::textChanged(int this, CCTextInputNode *a2)
{
int v2; // r4
int v3; // r7
int v4; // r3
int v5; // lr
size_t v6; // r2
int v7; // r1
int v8; // r3
char *v9; // r0
unsigned __int8 *v10; // r1
char *v11; // r0
unsigned __int8 *v12; // r2
int v13; // t1
unsigned __int8 v14; // [sp+0h] [bp-14h] BYREF
char v15; // [sp+1h] [bp-13h] BYREF
size_t v16; // [sp+4h] [bp-10h]
char *v17; // [sp+8h] [bp-Ch]
v2 = this;
if ( *(_BYTE *)(this + 624) && a2 == *(CCTextInputNode **)(this + 608) && *(_DWORD *)(this + 544) )
{
CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2);
v3 = *(_DWORD *)(v2 + 544);
v4 = *(unsigned __int8 *)(v3 + 80);
v5 = v14 & 1;
if ( v5 )
v6 = v16;
else
v6 = (int)v14 >> 1;
v7 = v4 & 1;
if ( (v4 & 1) != 0 )
v8 = *(_DWORD *)(v3 + 84);
else
v8 = v4 >> 1;
if ( v6 != v8 )
goto LABEL_26;
if ( v5 )
v9 = v17;
else
v9 = &v15;
if ( v7 )
v10 = *(unsigned __int8 **)(v3 + 88);
else
v10 = (unsigned __int8 *)(v3 + 81);
if ( !v5 )
{
v11 = v9 - 1;
v12 = &v10[v6];
while ( v10 != v12 )
{
v13 = (unsigned __int8)*++v11;
if ( v13 != *v10 )
goto LABEL_26;
++v10;
}
return std::string::~string((int)&v14);
}
if ( v6 && memcmp(v9, v10, v6) )
{
LABEL_26:
std::string::operator=((unsigned __int8 *)(v3 + 80), &v14);
*(_DWORD *)(*(_DWORD *)(v2 + 544) + 72) = 0;
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 544) + 40))(
*(_DWORD *)(v2 + 544),
*(_DWORD *)(v2 + 772));
SFXBrowser::setupList((int *)v2, *(cocos2d::CCArray ***)(v2 + 544));
}
return std::string::~string((int)&v14);
}
return this;
}