//
// cocos2d::CCLabelBMFont::setString from 0x18004ca20 to 0x18004caa7 (135 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ec5f0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1b54
//
// 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 cocos2d::CCLabelBMFont::setString(cocos2d::CCLabelBMFont *this, CHAR *a2, int *a3)
{
CHAR *v3; // rbx
unsigned __int8 v4; // si
size_t v6; // r8
unsigned __int16 *v7; // rbx
v3 = (CHAR *)Buf2;
v4 = (unsigned __int8)a3;
if ( a2 )
v3 = a2;
if ( (_BYTE)a3 )
{
v6 = -1;
do
++v6;
while ( v3[v6] );
sub_180010050((void **)&this->m_sInitialStringUTF8, v3, v6);
}
v7 = cocos2d::cc_utf8_to_utf16((cocos2d *)v3, nullptr, a3);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int16 *, _QWORD))this->setString)(this, v7, v4);
if ( v7 )
j_j_free_0(v7);
}