//
// LabelGameObject::updateLabel from 0x87a964 to 0x87a9bc (88 bytes)
//
// 13 xrefs:
// > LabelGameObject::updateLabel @ 0x87a9f8
// > LabelGameObject::updateLabelIfDirty @ 0x896c1c
// > LabelGameObject::updatePreviewLabel @ 0x8aa83c
// > LabelGameObject::updatePreviewLabel @ 0x8aa8d8
// > LabelGameObject::updatePreviewLabel @ 0x8aa918
// > LabelGameObject::updatePreviewLabel @ 0x8aa948
// > GJBaseGameLayer::resetGroupCounters @ 0x9aed78
// > GJBaseGameLayer::resetGroupCounters @ 0x9aee20
// > GJBaseGameLayer::updatePlatformerTime @ 0x9dcfbc
// > GJBaseGameLayer::updateSpecialLabels @ 0x9dd20c
// > GJBaseGameLayer::updateSpecialLabels @ 0x9dd2dc
// > GJBaseGameLayer::refreshCounterLabels @ 0x9ee74c
// > ??> @ 0xb3650
//
// 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:55:51 +0000
//
__int64 __fastcall LabelGameObject::updateLabel(__int64 result, char *a2)
{
__int64 v2; // x19
char *v4; // x1
char v5; // t1
if ( !*(_BYTE *)(result + 1904) )
{
v2 = result;
result = *(_QWORD *)(result + 1840);
if ( result )
{
*(_DWORD *)(result + 512) = *(_DWORD *)(v2 + 1900);
v5 = *a2;
v4 = a2 + 1;
if ( (v5 & 1) != 0 )
v4 = *((char **)a2 + 2);
result = (*(__int64 (__fastcall **)(_QWORD, char *, char *))(**(_QWORD **)(v2 + 1840) + 928LL))(
*(_QWORD *)(v2 + 1840),
v4,
a2);
}
*(_BYTE *)(v2 + 1848) = 0;
}
return result;
}