//
// cocos2d::CCLabelBMFont::setString_1 from 0x1002fbdf0 to 0x1002fbe78 (136 bytes)
//
// 2 xrefs:
// > ??> @ 0x10076cdc8
// > ??> @ 0x1007e9e80
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCLabelBMFont::setString_1(cocos2d::CCLabelBMFont *a1, const char *a2, bool a3)
{
_BOOL8 v3; // x19
const char *v5; // x21
unsigned __int16 *v6; // x21
v3 = a3;
if ( a2 )
v5 = a2;
else
v5 = "";
if ( a3 )
std::string::assign((std::string *)&a1->m_sInitialStringUTF8, v5);
v6 = cocos2d::cc_utf8_to_utf16(v5, nullptr);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int16 *, _BOOL8))a1->setString_1)(a1, v6, v3);
if ( v6 )
operator delete[](v6);
}