//
// cocos2d::CCLabelBMFont::setString from 0x18004e520 to 0x18004e5a4 (132 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800f2710
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbde8
//
// This function is hookable on this platform (idp: pc, 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 11:21:44 +0000
//
void __fastcall cocos2d::CCLabelBMFont::setString(void **this, char *a2, int *a3)
{
char *v3; // rbx
unsigned __int8 v4; // si
size_t v6; // rax
unsigned __int16 *v7; // rbx
v3 = (char *)Text;
v4 = (unsigned __int8)a3;
if ( a2 )
v3 = a2;
if ( (_BYTE)a3 )
{
v6 = strlen(v3);
sub_1800101E0(this + 53, v3, v6);
}
v7 = cocos2d::cc_utf8_to_utf16((cocos2d *)v3, nullptr, a3);
(*((void (__fastcall **)(void **, unsigned __int16 *, _QWORD))*this + 111))(this, v7, v4);
if ( v7 )
j_j_free_0(v7);
}