// // cocos2d::cc_utf16_vec_from_utf16_str from 0x7f5380 to 0x7f5452 (210 bytes) // // 1 xrefs: // > cocos2d::CCLabelBMFont::updateLabel @ 0x7d3eda // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:08 +0000 // cocos2d *__fastcall cocos2d::cc_utf16_vec_from_utf16_str(cocos2d *this, cocos2d *a2) { int v4; // r5 int v5; // r0 int v6; // r9 _WORD *v7; // r3 int v8; // r3 int v9; // r2 unsigned int v10; // r1 const void *v11; // r1 signed int v12; // r2 char *v13; // r0 _WORD *v14; // r2 char *v15; // r0 int v16; // r3 int v17; // r2 int v18; // r1 char *v20; // [sp+0h] [bp+0h] BYREF char *v21; // [sp+4h] [bp+4h] _WORD *v22; // [sp+8h] [bp+8h] int v23; // [sp+Ch] [bp+Ch] v4 = 0; v5 = cocos2d::cc_wcslen(a2, (const unsigned __int16 *)a2); *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v6 = v5; while ( v4 < v6 ) { v7 = *((_WORD **)this + 1); if ( v7 == *((_WORD **)this + 2) ) { v8 = (int)v7 - *(_DWORD *)this; v9 = v8 >> 1; if ( (unsigned int)(v8 >> 1) > 0x3FFFFFFE ) { v10 = 0x7FFFFFFF; } else { v10 = v9 + 1; if ( v9 + 1 < (unsigned int)v8 ) v10 = v8; } std::__split_buffer::__split_buffer(&v20, v10, v9, (int)this + 8); if ( v22 ) *v22 = *((_WORD *)a2 + v4); v11 = *(const void **)this; v12 = *((_DWORD *)this + 1) - *(_DWORD *)this; v13 = &v21[-v12]; ++v22; v21 -= v12; if ( v12 > 1 ) memcpy(v13, v11, v12); v14 = v22; v15 = *(char **)this; *(_DWORD *)this = v21; v16 = *((_DWORD *)this + 1); *((_DWORD *)this + 1) = v14; v17 = *((_DWORD *)this + 2); v18 = v23; v21 = v15; v23 = v17; *((_DWORD *)this + 2) = v18; v20 = v15; v22 = (_WORD *)(v16 - 2 * ((unsigned int)(v16 - (_DWORD)v15) >> 1)); if ( v15 ) operator delete(v15); } else { if ( v7 ) *v7 = *((_WORD *)a2 + v4); *((_DWORD *)this + 1) += 2; } ++v4; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source