// // getUTF8StringLength from 0xd8cfa4 to 0xd8d050 (172 bytes) // // 2 xrefs: // > cocos2d::getCharacterCountInUTF8String @ 0xd8dadc // > @ 0xdbfb8 // // 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:16 +0000 // __int64 __fastcall getUTF8StringLength(const char *a1) { const char *v1; // x19 unsigned int v2; // w20 signed __int64 v3; // x0 const char *v4; // x21 int v5; // w1 __int64 v6; // x2 char *v7; // x0 v1 = a1; v2 = 0; v3 = strlen(a1); if ( v3 ) { v4 = &v1[v3]; if ( &v1[v3] == v1 ) return 0; v5 = byte_11AC5C0[*(unsigned __int8 *)v1] + 1; v6 = v5; if ( v5 <= v3 ) { v2 = 0; do { v7 = (char *)v1; v1 += v6; ++v2; if ( !(unsigned __int8)sub_D8C8A4(v7, v5) ) break; if ( v4 == v1 ) return v2; v5 = byte_11AC5C0[*(unsigned __int8 *)v1] + 1; v6 = v5; } while ( v5 <= v4 - v1 ); return 0; } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source