//
// LabelGameObject::removeLabel from 0x89a038 to 0x89a114 (220 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateLevelFont @ 0x793d88
// > LabelGameObject::createLabel @ 0x89a144
// > ??> @ 0xc55a8
//
// 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:11 +0000
//
__int64 __fastcall LabelGameObject::removeLabel(LabelGameObject *this)
{
__int64 v2; // x0
const char *v3; // x0
size_t v4; // x0
char *v6; // [xsp+38h] [xbp+38h]
__int64 v7[2]; // [xsp+40h] [xbp+40h] BYREF
void *v8; // [xsp+50h] [xbp+50h]
v2 = *((_QWORD *)this + 230);
if ( v2 )
{
v3 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 944LL))(v2);
v7[0] = 0;
v6 = (char *)v3;
v7[1] = 0;
v8 = nullptr;
v4 = strlen(v3);
std::string::__init(v7, v6, v4);
LabelGameObject::queueUpdateLabel((__int64)this, (__int64)v7);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 230) + 536LL))(*((_QWORD *)this + 230));
*((_QWORD *)this + 230) = 0;
}
return _stack_chk_guard;
}