//
// LabelGameObject::updateLabelIfDirty from 0x896bbc to 0x896c8c (208 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::updateQueuedLabels @ 0x9a8280
// > GJBaseGameLayer::updateQueuedLabels @ 0x9a82c8
// > ??> @ 0xe6a70
//
// 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:56:10 +0000
//
__int64 __fastcall LabelGameObject::updateLabelIfDirty(LabelGameObject *this)
{
char v2; // w0
__int64 v3; // x0
__int64 v4; // x1
__int64 v6; // [xsp+30h] [xbp+30h] BYREF
__int64 v7; // [xsp+38h] [xbp+38h]
void *v8; // [xsp+40h] [xbp+40h]
if ( *((_BYTE *)this + 1848) )
{
v2 = *((_BYTE *)this + 1856);
v6 = 0;
v7 = 0;
v8 = nullptr;
if ( (v2 & 1) != 0 )
{
std::string::__init(&v6, *((void **)this + 234), *((_QWORD *)this + 233));
}
else
{
v3 = *((_QWORD *)this + 232);
v4 = *((_QWORD *)this + 233);
v8 = *((void **)this + 234);
v6 = v3;
v7 = v4;
}
LabelGameObject::updateLabel((__int64)this, (char *)&v6);
if ( (v6 & 1) != 0 )
operator delete(v8);
}
return _stack_chk_guard;
}