//
// LabelGameObject::updateLabelIfDirty from 0x1001a21d0 to 0x1001a2281 (177 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::updateQueuedLabels @ 0x10012bd35
// > GJBaseGameLayer::updateQueuedLabels @ 0x10012bd85
// > GJBaseGameLayer::update @ 0x100130ac5
// > GJBaseGameLayer::update @ 0x100130b15
//
// 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::updateLabelIfDirty(__int64 a1)
{
_DWORD *v2; // rdi
char *v3; // rsi
__int128 v4; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( *(_BYTE *)(a1 + 1848) == 1 )
{
if ( (*(_BYTE *)(a1 + 1856) & 1) != 0 )
{
sub_10001AD30(&v4, *(const void **)(a1 + 1872), *(_QWORD *)(a1 + 1864));
if ( *(_BYTE *)(a1 + 1904) )
goto LABEL_12;
}
else
{
__p = *(void **)(a1 + 1872);
v4 = *(_OWORD *)(a1 + 1856);
if ( *(_BYTE *)(a1 + 1904) )
{
LABEL_12:
if ( (v4 & 1) != 0 )
operator delete(__p);
return;
}
}
v2 = *(_DWORD **)(a1 + 1840);
if ( v2 )
{
v2[128] = *(_DWORD *)(a1 + 1900);
if ( (v4 & 1) != 0 )
v3 = (char *)__p;
else
v3 = (char *)&v4 + 1;
(*(void (__fastcall **)(_DWORD *, char *))(*(_QWORD *)v2 + 928LL))(v2, v3);
}
*(_BYTE *)(a1 + 1848) = 0;
goto LABEL_12;
}
}