// // ShareCommentLayer::textInputClosed from 0x1006b3410 to 0x1006b3511 (257 bytes) // // 2 xrefs: // > sub_1006B3560 @ 0x1006b356c // > @ 0x100b88d38 // // 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::textInputClosed(__int64 a1, __int64 a2) { const char *data; // r15 size_t v3; // rax std::string::size_type v4; // r12 char *v5; // r13 size_t v6; // rbx std::string __str; // [rsp+8h] [rbp-58h] BYREF std::string __dst[2]; // [rsp+20h] [rbp-40h] BYREF CCTextInputNode::getString(&__str, a2); std::string::operator=((std::string *)(a1 + 728), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) data = __str.__r_.__value_.__l.__data_; else data = __str.__r_.__value_.__s.__data_; v3 = strlen(data); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v4 = v3; if ( v3 >= 0x17 ) { v6 = 26; if ( (v3 | 7) != 0x17 ) v6 = (v3 | 7) + 1; v5 = (char *)operator new(v6); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v5; __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); v5 = __dst[0].__r_.__value_.__s.__data_; if ( v3 ) LABEL_11: memmove(v5, data, v4); v5[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 ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source