//
// cocos2d::CCLabelBMFont::setString from 0xd56000 to 0xd56090 (144 bytes)
//
// 3 xrefs:
// > ??> @ 0xa4890
// > ??> @ 0x14152b8
// > ??> @ 0x1518728
//
// This function is hookable on this platform (idp: arm, 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 13:07:43 +0000
//
void __fastcall cocos2d::CCLabelBMFont::setString(cocos2d::CCLabelBMFont *this, char *a2, int *a3)
{
char *v3; // x19
unsigned int v5; // w21
void *v6; // x19
v3 = a2;
v5 = (unsigned __int8)a3;
if ( !a2 )
v3 = &byte_11B8890;
if ( (_BYTE)a3 )
std::string::assign((__int64 *)this + 52, v3);
v6 = (void *)cocos2d::cc_utf8_to_utf16((cocos2d *)v3, nullptr, a3);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void *, _QWORD))(*(_QWORD *)this + 1104LL))(this, v6, v5);
if ( v6 )
operator delete[](v6);
}