// // EditorSoundsLayer::textChanged from 0x1004d85d4 to 0x1004d86ac (216 bytes) // // 2 xrefs: // > sub_1004D86C8 @ 0x1004d86cc // > @ 0x10098abb8 // // 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:06:32 +0000 // void __fastcall EditorSoundsLayer::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 __int64 v10; // x0 std::string __str; // [xsp+8h] [xbp-38h] BYREF v3 = *(_QWORD *)(a1 + 1096); 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 + 1143); v7 = (char)v6; if ( (v6 & 0x80u) != 0LL ) v6 = *(_QWORD *)(a1 + 1128); 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 + 1120)) : (v9 = *(const void **)(a1 + 1120)), memcmp(p_str, v9, size)) ) { std::string::operator=((std::string *)(a1 + 1120), &__str); v10 = *(_QWORD *)(a1 + 1152); if ( v10 ) ScrollableContentLayer::scrollTo(v10, 0.0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1504LL))(a1, *(unsigned int *)(a1 + 1144)); v4 = HIBYTE(__str.__r_.__value_.__r.__words[2]); } if ( v4 < 0 ) operator delete(__str.__r_.__value_.__l.__data_); } }