//
// sub_E3E74 from 0xe3e74 to 0xe3ec0 (76 bytes)
//
// 1 xrefs:
// > sub_78090 @ 0x780b4
//
// 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
//
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;
}