// // GJGarageLayer::textInputClosed from 0x10036c860 to 0x10036c9c8 (360 bytes) // // 2 xrefs: // > sub_10036CA10 @ 0x10036ca15 // > @ 0x10091baf0 // // 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 GJGarageLayer::textInputClosed(GJGarageLayer *a1, CCTextInputNode *a2) { __m128 v2; // xmm0 GameManager *v3; // r14 const char *data; // r14 size_t v5; // rax size_t v6; // r15 char *v7; // r12 size_t v8; // 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 v12; // [rsp+30h] [rbp-40h] BYREF CCTextInputNode::getString(&v12, (__int64)a2, *(double *)v2.i64); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) { if ( v12.__r_.__value_.__l.__size_ ) goto LABEL_6; } else if ( *(_BYTE *)&v12.__r_.__value_.__l.0 >> 1 ) { goto LABEL_6; } std::string::assign(&v12, "Player"); LABEL_6: GameManager::sharedState()->m_scoreValid = 0; v3 = GameManager::sharedState(); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) { sub_100006B70(&__str, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_, *(double *)v2.i64); } else { __str = v12; v2 = *(__m128 *)&v12.__r_.__value_.__l.0; } std::string::operator=((std::string *)&v3->m_playerName, &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) data = v12.__r_.__value_.__l.__data_; else data = v12.__r_.__value_.__s.__data_; v5 = strlen(data); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)v2.i64); v6 = v5; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); __p = v7; __dst[0] = v8 | 1; __dst[1] = v6; goto LABEL_21; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) LABEL_21: memmove(v7, data, v6); v7[v6] = 0; CCTextInputNode::setString(a2, (__int64)__dst, v2); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v12.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source