//
// LabelGameObject::removeLabel from 0x100388bac to 0x100388c30 (132 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateLevelFont @ 0x1003620d4
// > LabelGameObject::createLabel @ 0x100388b08
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LabelGameObject::removeLabel(LabelGameObject *a1)
{
cocos2d::CCLabelBMFont *m_label; // x0
char *v3; // x0
std::string __str; // [xsp+8h] [xbp-28h] BYREF
m_label = a1->m_label;
if ( m_label )
{
v3 = (char *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))m_label->getString)(m_label);
sub_100009900(&__str, v3);
if ( !a1->m_updateLabel )
{
std::string::operator=((std::string *)&a1->m_labelString, &__str);
a1->m_labelDirty = 1;
}
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_label->removeMeAndCleanup)(a1->m_label);
a1->m_label = nullptr;
}
}