//
// EditorSoundsLayer::textChanged from 0x1008fed70 to 0x1008fee67 (247 bytes)
//
// 2 xrefs:
// > sub_1008FEE90 @ 0x1008fee9c
// > ??> @ 0x100bb7bb0
//
// 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:38:01 +0000
//
void __fastcall EditorSoundsLayer::textChanged(__int64 a1, __int64 a2)
{
__int64 v3; // rsi
char v5; // r14
size_t size; // rdx
unsigned int v7; // eax
std::string::pointer data; // rdi
std::string __str; // [rsp+8h] [rbp-28h] BYREF
v3 = *(_QWORD *)(a1 + 1096);
if ( v3 == a2 )
{
CCTextInputNode::getString(&__str, v3);
v5 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
{
size = __str.__r_.__value_.__l.__size_;
v7 = *(unsigned __int8 *)(a1 + 1120);
if ( (v7 & 1) == 0 )
goto LABEL_4;
}
else
{
size = *(_BYTE *)&__str.__r_.__value_.__l.0 >> 1;
v7 = *(unsigned __int8 *)(a1 + 1120);
if ( (v7 & 1) == 0 )
{
LABEL_4:
if ( size != v7 >> 1 )
goto LABEL_14;
goto LABEL_8;
}
}
if ( size != *(_QWORD *)(a1 + 1128) )
goto LABEL_14;
LABEL_8:
if ( v5 )
{
data = __str.__r_.__value_.__l.__data_;
if ( (v7 & 1) == 0 )
goto LABEL_10;
}
else
{
data = __str.__r_.__value_.__s.__data_;
if ( (v7 & 1) == 0 )
{
LABEL_10:
if ( !memcmp(data, (const void *)(a1 + 1121), size) )
{
LABEL_17:
if ( v5 )
operator delete(__str.__r_.__value_.__l.__data_);
return;
}
LABEL_14:
std::string::operator=((std::string *)(a1 + 1120), &__str);
if ( *(_QWORD *)(a1 + 1152) )
ScrollableContentLayer::scrollTo(0.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1504LL))(a1, *(unsigned int *)(a1 + 1144));
v5 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;
goto LABEL_17;
}
}
if ( !memcmp(data, *(const void **)(a1 + 1136), size) )
goto LABEL_17;
goto LABEL_14;
}
}