// // cocos2d::cc_utf16_vec_from_utf16_str from 0xd8e638 to 0xd8e6d4 (156 bytes) // // 2 xrefs: // > cocos2d::CCLabelBMFont::updateLabel @ 0xd57278 // > @ 0x9c028 // // 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:08:17 +0000 // void **__usercall cocos2d::cc_utf16_vec_from_utf16_str@( void **__return_ptr a1@, cocos2d *this@, const unsigned __int16 *a3@) { cocos2d *v4; // x19 int v5; // w0 __int64 v6; // x2 _WORD *v7; // x1 cocos2d *v8; // x21 bool v9; // zf v4 = this; v5 = cocos2d::cc_wcslen(this, a3); *a1 = nullptr; a1[1] = nullptr; a1[2] = nullptr; if ( v5 > 0 ) { v6 = 0; v7 = nullptr; v8 = (cocos2d *)((char *)v4 + 2 * (unsigned int)(v5 - 1)); while ( 1 ) { if ( v7 == (_WORD *)v6 ) { std::vector::__push_back_slow_path(a1, v4); } else { if ( v7 ) { *v7 = *(_WORD *)v4; v7 = a1[1]; } a1[1] = v7 + 1; } v9 = v4 == v8; v4 = (cocos2d *)((char *)v4 + 2); if ( v9 ) break; v7 = a1[1]; v6 = (__int64)a1[2]; } } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source