//
// LabelGameObject::updatePreviewLabel from 0x501104 to 0x501224 (288 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::resetGroupCounters @ 0x59c528
// > GJBaseGameLayer::resetGroupCounters @ 0x59c596
// > SetItemIDLayer::updateEditorLabel @ 0x623658
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:22 +0000
//
void __fastcall LabelGameObject::updatePreviewLabel(LabelGameObject *this)
{
int v1; // r2
int v3; // r1
const char *v4; // r8
size_t v5; // r0
int v6[3]; // [sp+8h] [bp-210h] BYREF
int v7; // [sp+14h] [bp-204h] BYREF
int v8; // [sp+18h] [bp-200h]
char *v9; // [sp+1Ch] [bp-1FCh]
char v10; // [sp+20h] [bp-1F8h] BYREF
v1 = *((_DWORD *)this + 420);
v7 = 0;
switch ( v1 )
{
case -1:
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "C:GT", 4u);
LabelGameObject::updateLabel((int)this, (int)&v7);
LABEL_7:
std::string::~string((int)&v7);
return;
case -2:
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "C:GP", 4u);
LabelGameObject::updateLabel((int)this, (int)&v7);
goto LABEL_7;
case -3:
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "C:AT", 4u);
LabelGameObject::updateLabel((int)this, (int)&v7);
goto LABEL_7;
}
v3 = *((unsigned __int8 *)this + 1684);
v8 = 500;
v9 = &v10;
if ( v3 )
fmt::BasicWriter::operator<<((unsigned int *)&v7, "T:", 0);
else
fmt::BasicWriter::operator<<((unsigned int *)&v7, "C:", 0);
fmt::BasicWriter::operator<<((unsigned int *)&v7, *((_DWORD *)this + 375));
v4 = (const char *)fmt::BasicWriter::c_str(&v7);
memset(v6, 0, sizeof(v6));
v5 = strlen(v4);
std::string::__init(v6, v4, v5);
LabelGameObject::updateLabel((int)this, (int)v6);
std::string::~string((int)v6);
fmt::internal::Array::free((int)&v7);
}