// // LabelGameObject::updatePreviewLabel from 0x8aa748 to 0x8aa9b0 (616 bytes) // // 4 xrefs: // > GJBaseGameLayer::resetGroupCounters @ 0x9aeda0 // > GJBaseGameLayer::resetGroupCounters @ 0x9aee48 // > SetItemIDLayer::updateEditorLabel @ 0xa97dd0 // > @ 0x45598 // // This function is hookable on this platform (idp: arm, 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:56:20 +0000 // __int64 __fastcall LabelGameObject::updatePreviewLabel(LabelGameObject *this) { int v2; // w0 int v3; // w0 __int64 v4; // x23 size_t v5; // x0 void *v7; // [xsp+48h] [xbp+48h] __int64 v8[2]; // [xsp+60h] [xbp+60h] BYREF void *v9; // [xsp+70h] [xbp+70h] __int64 v10; // [xsp+78h] [xbp+78h] BYREF unsigned __int64 v11; // [xsp+80h] [xbp+80h] _BYTE *v12; // [xsp+88h] [xbp+88h] _BYTE v13[504]; // [xsp+90h] [xbp+90h] BYREF v2 = *((_DWORD *)this + 473); switch ( v2 ) { case -1: v10 = 0; v11 = 0; v12 = nullptr; std::string::__init(&v10, "C:GT", 4u); LabelGameObject::updateLabel((__int64)this, (char *)&v10); break; case -2: v10 = 0; v11 = 0; v12 = nullptr; std::string::__init(&v10, "C:GP", 4u); LabelGameObject::updateLabel((__int64)this, (char *)&v10); break; case -3: v10 = 0; v11 = 0; v12 = nullptr; std::string::__init(&v10, "C:AT", 4u); LabelGameObject::updateLabel((__int64)this, (char *)&v10); break; default: v3 = *((unsigned __int8 *)this + 1896); v10 = 0; v11 = 500; v12 = v13; if ( v3 ) fmt::BasicWriter::operator<<((size_t *)&v10, "T:", 0); else fmt::BasicWriter::operator<<((size_t *)&v10, "C:", 0); fmt::BasicWriter::FormatInt,char>>( (size_t *)&v10, *((_DWORD *)this + 420)); v4 = v10; if ( v11 < v10 + 1 ) fmt::internal::Array::grow((size_t *)&v10, v10 + 1); v12[v4] = 0; v8[0] = 0; v7 = v12; v8[1] = 0; v9 = nullptr; v5 = strlen(v12); std::string::__init(v8, v7, v5); LabelGameObject::updateLabel((__int64)this, (char *)v8); if ( (v8[0] & 1) != 0 ) operator delete(v9); if ( v12 != v13 && v12 ) operator delete[](v12); return _stack_chk_guard; } if ( (v10 & 1) != 0 ) operator delete(v12); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source