//
// SFXBrowser::textChanged from 0xb92de8 to 0xb92f9c (436 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SFXBrowser::textChanged @ 0xb92fa0
// > ??> @ 0xb5c78
// > ??> @ 0x14d6c68
//
// 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:02:39 +0000
//
__int64 __fastcall SFXBrowser::textChanged(SFXBrowser *this, CCTextInputNode *a2)
{
CCTextInputNode *v3; // x0
__int64 v5; // x21
int v6; // w4
size_t v7; // x2
__int64 *v8; // x23
__int64 v9; // x1
char *v10; // x1
size_t v11; // x2
unsigned __int8 *v12; // x0
unsigned __int8 *v13; // x1
unsigned __int8 *v14; // x4
unsigned __int8 *v15; // x2
int v16; // t1
__int64 v17; // [xsp+40h] [xbp+40h] BYREF
size_t v18; // [xsp+48h] [xbp+48h]
void *v19; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 872) )
return _stack_chk_guard;
v3 = *((CCTextInputNode **)this + 105);
if ( v3 != a2 || !*((_QWORD *)this + 89) )
return _stack_chk_guard;
CCTextInputNode::getString(v3, &v17);
v5 = *((_QWORD *)this + 89);
v6 = v17 & 1;
v7 = (unsigned __int8)v17 >> 1;
if ( v6 )
v7 = v18;
v8 = (__int64 *)(v5 + 104);
v9 = *(_BYTE *)(v5 + 104) >> 1;
if ( (*(_BYTE *)(v5 + 104) & 1) != 0 )
v9 = *(_QWORD *)(v5 + 112);
if ( v7 != v9 )
{
if ( v8 == &v17 )
goto LABEL_14;
if ( v6 )
goto LABEL_12;
goto LABEL_28;
}
v12 = (unsigned __int8 *)&v17 + 1;
if ( v6 )
v12 = (unsigned __int8 *)v19;
v13 = (unsigned __int8 *)(v5 + 105);
if ( (*(_BYTE *)(v5 + 104) & 1) != 0 )
v13 = *(unsigned __int8 **)(v5 + 120);
if ( v6 )
{
if ( !v7 || !memcmp(v12, v13, v7) )
goto LABEL_15;
if ( v8 == &v17 )
goto LABEL_14;
LABEL_12:
v10 = (char *)v19;
v11 = v18;
LABEL_13:
std::string::assign((__int64 *)(v5 + 104), v10, v11);
v5 = *((_QWORD *)this + 89);
goto LABEL_14;
}
if ( !v7 )
return _stack_chk_guard;
if ( *v12 == *v13 )
{
v14 = v12 + 1;
v15 = &v12[v7];
do
{
++v13;
if ( v14 == v15 )
return _stack_chk_guard;
v16 = *v14++;
}
while ( *v13 == v16 );
}
if ( v8 != &v17 )
{
LABEL_28:
v11 = (unsigned __int8)v17 >> 1;
v10 = (char *)&v17 + 1;
goto LABEL_13;
}
LABEL_14:
*(_DWORD *)(v5 + 96) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 89) + 80LL))(
*((_QWORD *)this + 89),
*((unsigned int *)this + 278));
SFXBrowser::setupList(this, *((cocos2d::CCArray ***)this + 89));
if ( (v17 & 1) != 0 )
LABEL_15:
operator delete(v19);
return _stack_chk_guard;
}