//
// sub_E3EC0 from 0xe3ec0 to 0xe3f34 (116 bytes)
//
// 5 xrefs:
// > sub_E0F84 @ 0xe20f0
// > sub_E0F84 @ 0xe2130
// > sub_E0F84 @ 0xe21b8
// > sub_E376C @ 0xe3820
// > sub_E376C @ 0xe3888
//
// 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
//
char *__fastcall sub_E3EC0(char *a1, const void *a2)
{
int v4; // w0
int v5; // w21
int i; // w22
v4 = sub_E3BB0((__int64)a2);
if ( v4 )
{
v5 = v4;
for ( i = sub_E3BB0((__int64)a1); i >= v5; --i )
{
if ( !memcmp(a1, a2, v5) )
return a1;
++a1;
}
return nullptr;
}
return a1;
}