//
// SFXBrowser::textChanged from 0x100434860 to 0x100434970 (272 bytes)
//
// 2 xrefs:
// > sub_100434990 @ 0x10043499c
// > ??> @ 0x100b42500
//
// This function is hookable on this platform (idp: pc, 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 12:30:23 +0000
//
void __fastcall SFXBrowser::textChanged(__int64 a1, __int64 a2)
{
__int64 v4; // rsi
__int64 v5; // r14
char v6; // r15
size_t size; // rdx
unsigned int v8; // eax
std::string::pointer data; // rdi
_DWORD *v10; // rdi
std::string __str; // [rsp+0h] [rbp-30h] BYREF
if ( *(_BYTE *)(a1 + 872) == 1 )
{
v4 = *(_QWORD *)(a1 + 840);
if ( v4 == a2 )
{
if ( *(_QWORD *)(a1 + 712) )
{
CCTextInputNode::getString(&__str, v4);
v5 = *(_QWORD *)(a1 + 712);
v6 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
{
size = __str.__r_.__value_.__l.__size_;
v8 = *(unsigned __int8 *)(v5 + 104);
if ( (v8 & 1) == 0 )
goto LABEL_7;
}
else
{
size = *(_BYTE *)&__str.__r_.__value_.__l.0 >> 1;
v8 = *(unsigned __int8 *)(v5 + 104);
if ( (v8 & 1) == 0 )
{
LABEL_7:
if ( size != v8 >> 1 )
goto LABEL_17;
goto LABEL_11;
}
}
if ( size != *(_QWORD *)(v5 + 112) )
goto LABEL_17;
LABEL_11:
if ( v6 )
{
data = __str.__r_.__value_.__l.__data_;
if ( (v8 & 1) == 0 )
goto LABEL_13;
}
else
{
data = __str.__r_.__value_.__s.__data_;
if ( (v8 & 1) == 0 )
{
LABEL_13:
if ( !memcmp(data, (const void *)(v5 + 105), size) )
{
LABEL_18:
if ( v6 )
operator delete(__str.__r_.__value_.__l.__data_);
return;
}
LABEL_17:
std::string::operator=((std::string *)(v5 + 104), &__str);
v10 = *(_DWORD **)(a1 + 712);
v10[24] = 0;
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v10 + 80LL))(v10, *(unsigned int *)(a1 + 1112));
SFXBrowser::setupList((_DWORD *)a1, *(_QWORD *)(a1 + 712));
v6 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;
goto LABEL_18;
}
}
if ( !memcmp(data, *(const void **)(v5 + 120), size) )
goto LABEL_18;
goto LABEL_17;
}
}
}
}