//
// sub_E3BC4 from 0xe3bc4 to 0xe3c48 (132 bytes)
//
// 1 xrefs:
// > sub_9E3A4 @ 0x9e3f4
//
// 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
//
__int64 __fastcall sub_E3BC4(char *a1)
{
int i; // w8
char v2; // w9
for ( i = 0; ; --i )
{
v2 = *a1;
if ( !*a1 )
return (unsigned int)((i - 1) >> 31);
if ( !i )
break;
if ( (v2 & 0xC0) != 0x80 )
return 0;
LABEL_14:
++a1;
}
if ( (*a1 & 0x80) == 0 )
{
i = 1;
goto LABEL_14;
}
if ( (v2 & 0xE0) == 0xC0 )
{
i = 2;
goto LABEL_14;
}
if ( (v2 & 0xF0) == 0xE0 )
{
i = 3;
goto LABEL_14;
}
if ( (v2 & 0xF8) == 0xF0 )
{
i = 4;
goto LABEL_14;
}
return 0;
}