// // ShareCommentLayer::textChanged from 0x1006b35a0 to 0x1006b368b (235 bytes) // // 2 xrefs: // > sub_1006B36D0 @ 0x1006b36dc // > @ 0x100b88d40 // // 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:35:25 +0000 // void __fastcall ShareCommentLayer::textChanged(__int64 a1, __int64 a2) { char *v2; // r14 size_t v3; // rax std::string::size_type v4; // r15 char *data; // r12 size_t v6; // r13 char *v7[2]; // [rsp+8h] [rbp-58h] BYREF char *__s; // [rsp+18h] [rbp-48h] std::string __dst[2]; // [rsp+20h] [rbp-40h] BYREF CCTextInputNode::getString(v7, a2); if ( ((__int64)v7[0] & 1) != 0 ) v2 = __s; else v2 = (char *)v7 + 1; v3 = strlen(v2); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v4 = v3; if ( v3 >= 0x17 ) { v6 = 26; if ( (v3 | 7) != 0x17 ) v6 = (v3 | 7) + 1; data = (char *)operator new(v6); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v6 | 1; __dst[0].__r_.__value_.__l.__size_ = v4; goto LABEL_11; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v3); data = __dst[0].__r_.__value_.__s.__data_; if ( v3 ) LABEL_11: memmove(data, v2, v4); data[v4] = 0; std::string::operator=((std::string *)(a1 + 728), __dst); ShareCommentLayer::updateCharCountLabel(a1); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( ((__int64)v7[0] & 1) != 0 ) operator delete(__s); }
GD Web Decomp Icon

GD Web Decomp

Raw Source