//
// sub_E3BC4 from 0xe3bc4 to 0xe3c48 (132 bytes)
//
// 1 xrefs:
// > sub_9E3A4 @ 0x9e3f4
//
// 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 12:14:58 +0000
//
__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;
}