//
// LabelGameObject::removeLabel from 0x4f5f24 to 0x4f5f9a (118 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateLevelFont @ 0x466e1c
// > LabelGameObject::createLabel @ 0x4f5fba
//
// 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:17 +0000
//
int __fastcall LabelGameObject::removeLabel(LabelGameObject *this)
{
int result; // r0
const char *v3; // r0
const char *v4; // r7
size_t v5; // r0
int v6[3]; // [sp+0h] [bp-14h] BYREF
result = *((_DWORD *)this + 412);
if ( result )
{
v3 = (const char *)(*(int (__fastcall **)(int))(*(_DWORD *)result + 472))(result);
memset(v6, 0, sizeof(v6));
v4 = v3;
v5 = strlen(v3);
std::string::__init(v6, v4, v5);
LabelGameObject::queueUpdateLabel((unsigned __int8 *)this, (unsigned __int8 *)v6);
std::string::~string((int)v6);
result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 412) + 268))(*((_DWORD *)this + 412));
*((_DWORD *)this + 412) = 0;
}
return result;
}