//
// sub_E3E74 from 0xe3e74 to 0xe3ec0 (76 bytes)
//
// 1 xrefs:
// > sub_78090 @ 0x780b4
//
// 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
//
unsigned __int8 *__fastcall sub_E3E74(__int64 a1, int a2)
{
int v4; // w8
unsigned __int8 *result; // x0
v4 = sub_E3BB0(a1);
result = (unsigned __int8 *)(a1 + v4 - 1);
if ( !v4 )
return nullptr;
while ( *result != a2 )
{
--v4;
--result;
if ( !v4 )
return nullptr;
}
return result;
}