// // cocos2d::cc_utf8_trim_ws from 0x1800953b0 to 0x180095478 (200 bytes) // // 7 xrefs: // > cocos2d::CCLabelBMFont::updateLabel @ 0x18004ce9b // > cocos2d::CCLabelBMFont::updateLabel @ 0x18004d057 // > cocos2d::CCLabelBMFont::updateLabel @ 0x18004d0ce // > @ 0x18013e3b0 // > @ 0x18013e408 // > @ 0x1801438a8 // > @ 0x1801b67e0 // // 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 // void __fastcall cocos2d::cc_utf8_trim_ws(__int64 *a1, unsigned __int16 a2) { __int64 v2; // r15 __int64 v4; // r14 __int64 v5; // rbp int v6; // esi unsigned __int16 v7; // dx int v8; // ebx unsigned __int16 *v9; // rdi char *v10; // rbx char *v11; // rdx size_t v12; // r15 v2 = a1[1]; v4 = *a1; v5 = (v2 - *a1) >> 1; if ( (int)v5 > 0 ) { v6 = v5 - 1; if ( cocos2d::isspace_unicode((cocos2d *)*(unsigned __int16 *)(v4 + 2LL * ((int)v5 - 1)), a2) ) { v8 = v5 - 2; if ( (int)v5 - 2 >= 0 ) { v9 = (unsigned __int16 *)(v4 + 2LL * v8); do { if ( !cocos2d::isspace_unicode((cocos2d *)*v9, v7) ) break; --v9; v6 = v8--; } while ( v8 >= 0 ); } if ( v6 < (int)v5 && v6 >= 0 ) { v10 = (char *)(v4 + 2LL * v6); v11 = (char *)(v4 + 2LL * (int)v5); if ( v10 != v11 ) { v12 = v2 - (_QWORD)v11; memmove((void *)(v4 + 2LL * v6), v11, v12); a1[1] = (__int64)&v10[v12]; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source