//
// LabelGameObject::updateLabel from 0x1001a20e0 to 0x1001a2138 (88 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::refreshCounterLabels @ 0x10012c024
// > GJBaseGameLayer::resetGroupCounters @ 0x10012c1aa
// > GJBaseGameLayer::resetGroupCounters @ 0x10012c294
// > GJBaseGameLayer::updateSpecialLabels @ 0x100133ff6
// > GJBaseGameLayer::updateSpecialLabels @ 0x100134206
// > GJBaseGameLayer::updatePlatformerTime @ 0x100134711
//
// 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:25:59 +0000
//
void __fastcall LabelGameObject::updateLabel(__int64 a1, __int64 a2)
{
__int64 v2; // rax
_DWORD *v3; // rdi
__int64 v4; // rbx
__int64 v5; // rsi
if ( !*(_BYTE *)(a1 + 1904) )
{
v2 = a1;
v3 = *(_DWORD **)(a1 + 1840);
if ( v3 )
{
v3[128] = *(_DWORD *)(v2 + 1900);
v4 = v2;
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(_QWORD *)(a2 + 16);
else
v5 = a2 + 1;
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v3 + 928LL))(v3, v5);
v2 = v4;
}
*(_BYTE *)(v2 + 1848) = 0;
}
}