// // ShareCommentLayer::textChanged from 0x1005e1540 to 0x1005e162b (235 bytes) // // 2 xrefs: // > sub_1005E1670 @ 0x1005e167c // > @ 0x100976138 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall ShareCommentLayer::textChanged(ShareCommentLayer *a1, CCTextInputNode *a2) { double v2; // xmm0_8 char *v3; // r14 size_t v4; // rax std::string::size_type v5; // r15 char *data; // r12 size_t v7; // r13 char *v8[2]; // [rsp+8h] [rbp-58h] BYREF char *__s; // [rsp+18h] [rbp-48h] std::string __dst[2]; // [rsp+20h] [rbp-40h] BYREF CCTextInputNode::getString(v8, (__int64)a2, v2); if ( ((__int64)v8[0] & 1) != 0 ) v3 = __s; else v3 = (char *)v8 + 1; v4 = strlen(v3); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; data = (char *)operator new(v7); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v7 | 1; __dst[0].__r_.__value_.__l.__size_ = v5; goto LABEL_11; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v4); data = __dst[0].__r_.__value_.__s.__data_; if ( v4 ) LABEL_11: memmove(data, v3, v5); data[v5] = 0; std::string::operator=((std::string *)&a1->m_descText, __dst); ShareCommentLayer::updateCharCountLabel(a1); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( ((__int64)v8[0] & 1) != 0 ) operator delete(__s); }
GD Web Decomp Icon

GD Web Decomp

Raw Source