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

GD Web Decomp

Raw Source