//
// cocos2d::cc_utf16_vec_from_utf16_str from 0x1001ad22c to 0x1001ad29c (112 bytes)
//
// 1 xrefs:
// > cocos2d::CCLabelBMFont::updateLabel @ 0x1002fc4cc
//
// 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
//
std::vector *__fastcall cocos2d::cc_utf16_vec_from_utf16_str(
std::vector *__return_ptr retstr,
const unsigned __int16 *a2)
{
const unsigned __int16 *v3; // x20
__int64 v4; // x21
if ( *a2 )
{
v3 = a2;
v4 = 0;
while ( a2[++v4] )
;
retstr->__begin_ = nullptr;
retstr->__end_ = nullptr;
retstr->__end_cap_.__value_ = nullptr;
do
{
a2 = (const unsigned __int16 *)sub_1001AD2B8(retstr, v3++);
--v4;
}
while ( v4 );
}
else
{
retstr->__begin_ = nullptr;
retstr->__end_ = nullptr;
retstr->__end_cap_.__value_ = nullptr;
}
return (std::vector *)a2;
}