// // EmoteSprite::charIndexForByte from 0x3f3662 to 0x3f36b6 (84 bytes) // // 4 xrefs: // > MultilineBitmapFont::initWithFont @ 0x3d64d8 // > MultilineBitmapFont::initWithFont @ 0x3d6602 // > MultilineBitmapFont::initWithFont @ 0x3d6610 // > EmoteSprite::attachToLabel @ 0x3f455c // // 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 11:47:15 +0000 // int __fastcall EmoteSprite::charIndexForByte(unsigned __int8 *a1, int a2) { int v2; // r3 int v3; // r2 int v4; // r4 int v5; // r4 int v6; // r5 int v7; // r2 unsigned __int8 *v8; // r7 unsigned __int8 v9; // r7 int v10; // r3 v2 = *a1; if ( (v2 & 1) != 0 ) v3 = *((_DWORD *)a1 + 1); else v3 = v2 >> 1; if ( a2 < v3 ) { v5 = a2; } else { if ( (v2 & 1) != 0 ) v4 = *((_DWORD *)a1 + 1); else v4 = v2 >> 1; v5 = v4 - 1; } v6 = 0; v7 = 0; while ( v6 <= v5 ) { if ( (v2 & 1) != 0 ) v8 = *((unsigned __int8 **)a1 + 2); else v8 = a1 + 1; v9 = v8[v6++]; if ( (v9 & 0xC0) != 0x80 ) ++v7; } if ( (v2 & 1) != 0 ) v10 = *((_DWORD *)a1 + 1); else v10 = v2 >> 1; if ( a2 >= v10 ) return v7; else return v7 - 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source