//
// LabelGameObject::updateLabel from 0x100389074 to 0x1003890c4 (80 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::refreshCounterLabels @ 0x1001fc8ac
// > GJBaseGameLayer::resetGroupCounters @ 0x1001fc9d4
// > GJBaseGameLayer::resetGroupCounters @ 0x1001fca4c
// > GJBaseGameLayer::updateSpecialLabels @ 0x100200f1c
// > GJBaseGameLayer::updateSpecialLabels @ 0x100200fe0
// > GJBaseGameLayer::updatePlatformerTime @ 0x100201308
//
// 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
//
__int64 __fastcall LabelGameObject::updateLabel(__int64 result, __int64 *a2)
{
__int64 v2; // x19
if ( (*(_BYTE *)(result + 1904) & 1) == 0 )
{
v2 = result;
result = *(_QWORD *)(result + 1840);
if ( result )
{
*(_DWORD *)(result + 512) = *(_DWORD *)(v2 + 1900);
if ( *((char *)a2 + 23) < 0 )
a2 = (__int64 *)*a2;
result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)result + 912LL))(result, a2);
}
*(_BYTE *)(v2 + 1848) = 0;
}
return result;
}