//
// OptionsScrollLayer::textChanged from 0x10046b83c to 0x10046b8fc (192 bytes)
//
// 2 xrefs:
// > sub_10046B918 @ 0x10046b91c
// > ??> @ 0x10096bc58
//
// 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 11:05:35 +0000
//
void __fastcall OptionsScrollLayer::textChanged(__int64 a1, __int64 a2)
{
__int64 v3; // x0
char v4; // w21
size_t size; // x2
__int64 v6; // x9
int v7; // w8
std::string *p_str; // x0
const void *v9; // x1
std::string __str; // [xsp+8h] [xbp-38h] BYREF
v3 = *(_QWORD *)(a1 + 696);
if ( v3 == a2 )
{
CCTextInputNode::getString(v3, &__str);
v4 = HIBYTE(__str.__r_.__value_.__r.__words[2]);
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
size = HIBYTE(__str.__r_.__value_.__r.__words[2]);
else
size = __str.__r_.__value_.__l.__size_;
v6 = *(unsigned __int8 *)(a1 + 743);
v7 = (char)v6;
if ( (v6 & 0x80u) != 0LL )
v6 = *(_QWORD *)(a1 + 728);
if ( size != v6
|| ((__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL
? (p_str = &__str)
: (p_str = (std::string *)__str.__r_.__value_.__r.__words[0]),
v7 >= 0 ? (v9 = (const void *)(a1 + 720)) : (v9 = *(const void **)(a1 + 720)),
memcmp(p_str, v9, size)) )
{
std::string::operator=((std::string *)(a1 + 720), &__str);
OptionsScrollLayer::setupList(a1, *(_QWORD *)(a1 + 672));
v4 = HIBYTE(__str.__r_.__value_.__r.__words[2]);
}
if ( v4 < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
}
}