//
// LabelGameObject::updateLabel from 0x4e8c24 to 0x4e8c5a (54 bytes)
//
// 12 xrefs:
// > LabelGameObject::updateLabel @ 0x4eb716
// > LabelGameObject::updateLabelIfDirty @ 0x4ec7c6
// > LabelGameObject::updatePreviewLabel @ 0x50113e
// > LabelGameObject::updatePreviewLabel @ 0x50115c
// > LabelGameObject::updatePreviewLabel @ 0x50117a
// > LabelGameObject::updatePreviewLabel @ 0x5011e0
// > GJBaseGameLayer::resetGroupCounters @ 0x59c51a
// > GJBaseGameLayer::resetGroupCounters @ 0x59c588
// > GJBaseGameLayer::updatePlatformerTime @ 0x5b57a2
// > GJBaseGameLayer::updateSpecialLabels @ 0x5b5964
// > GJBaseGameLayer::updateSpecialLabels @ 0x5b59c4
// > GJBaseGameLayer::refreshCounterLabels @ 0x5be512
//
// 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:07 +0000
//
int __fastcall LabelGameObject::updateLabel(int result, int a2)
{
int v2; // r4
int v3; // r3
int v4; // r0
int v5; // r1
v2 = result;
if ( !*(_BYTE *)(result + 1692) )
{
v3 = *(_DWORD *)(result + 1648);
if ( v3 )
{
*(_DWORD *)(v3 + 376) = *(_DWORD *)(result + 1688);
v4 = *(_DWORD *)(result + 1648);
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(_DWORD *)(a2 + 8);
else
v5 = a2 + 1;
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)v4 + 464))(v4, v5);
}
*(_BYTE *)(v2 + 1652) = 0;
}
return result;
}