// // GJGarageLayer::textInputClosed from 0x100355c80 to 0x100355de8 (360 bytes) // // 2 xrefs: // > sub_100355E30 @ 0x100355e35 // > @ 0x100b23cb0 // // 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:28:52 +0000 // void __fastcall GJGarageLayer::textInputClosed(__int64 a1, const std::string::value_type *a2) { std::string::value_type *v2; // rbx __int64 v3; // rdx __int64 v4; // rax __int64 v5; // rdx __int64 v6; // rax __int64 v7; // r14 const char *data; // r14 size_t v9; // rax size_t v10; // r15 char *v11; // r12 size_t v12; // r13 std::string __str; // [rsp+0h] [rbp-70h] BYREF _QWORD __dst[2]; // [rsp+18h] [rbp-58h] BYREF void *__p; // [rsp+28h] [rbp-48h] std::string v16; // [rsp+30h] [rbp-40h] BYREF v2 = (std::string::value_type *)a2; CCTextInputNode::getString(&v16, (__int64)a2); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) { if ( v16.__r_.__value_.__l.__size_ ) goto LABEL_6; } else if ( *(_BYTE *)&v16.__r_.__value_.__l.0 >> 1 ) { goto LABEL_6; } a2 = "Player"; std::string::assign(&v16, "Player"); LABEL_6: GameManager::sharedState(&v16, a2, v3); *(_BYTE *)(v4 + 656) = 0; GameManager::sharedState(&v16, a2, v5); v7 = v6; if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(&__str, v16.__r_.__value_.__l.__data_, v16.__r_.__value_.__l.__size_); else __str = v16; std::string::operator=((std::string *)(v7 + 632), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) data = v16.__r_.__value_.__l.__data_; else data = v16.__r_.__value_.__s.__data_; v9 = strlen(data); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v10 = v9; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v11 = (char *)operator new(v12); __p = v11; __dst[0] = v12 | 1; __dst[1] = v10; goto LABEL_21; } LOBYTE(__dst[0]) = 2 * v9; v11 = (char *)__dst + 1; if ( v9 ) LABEL_21: memmove(v11, data, v10); v11[v10] = 0; CCTextInputNode::setString(v2, (__int64)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v16.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source