//
// KeybindingsLayer::textChanged from 0x1000259cc to 0x100025aa4 (216 bytes)
//
// 3 xrefs:
// > sub_100025AC0 @ 0x100025ac4
// > ??> @ 0x1008af8b0
// > ??> @ 0x100993f50
//
// 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 10:57:25 +0000
//
void __fastcall KeybindingsLayer::textChanged(__int64 a1, __int64 a2)
{
char v3; // w21
size_t size; // x2
__int64 v5; // x9
int v6; // w8
std::string *p_str; // x0
const void *v8; // x1
__int64 v9; // x0
std::string __str; // [xsp+8h] [xbp-38h] BYREF
if ( *(_QWORD *)(a1 + 1112) == a2 )
{
CCTextInputNode::getString(&__str);
v3 = 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_;
v5 = *(unsigned __int8 *)(a1 + 1183);
v6 = (char)v5;
if ( (v5 & 0x80u) != 0LL )
v5 = *(_QWORD *)(a1 + 1168);
if ( size != v5
|| ((__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL
? (p_str = &__str)
: (p_str = (std::string *)__str.__r_.__value_.__r.__words[0]),
v6 >= 0 ? (v8 = (const void *)(a1 + 1160)) : (v8 = *(const void **)(a1 + 1160)),
memcmp(p_str, v8, size)) )
{
std::string::operator=((std::string *)(a1 + 1160), &__str);
v9 = *(_QWORD *)(a1 + 1136);
if ( v9 )
ScrollableContentLayer::scrollTo(v9, 0.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1504LL))(a1, *(unsigned int *)(a1 + 1184));
v3 = HIBYTE(__str.__r_.__value_.__r.__words[2]);
}
if ( v3 < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
}
}