//
// sub_E2AD38 from 0xe2ad38 to 0xe2ae00 (200 bytes)
//
// 4 xrefs:
// > sub_E24BB0 @ 0xe24ee0
// > sub_E24BB0 @ 0xe24f20
// > sub_E24FEC @ 0xe2527c
// > sub_E24FEC @ 0xe254b4
//
// 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 13:09:51 +0000
//
__int64 __fastcall sub_E2AD38(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, const char **a6, size_t *a7)
{
char *v10; // x20
__int64 result; // x0
size_t v12; // x0
unsigned int v13; // w19
if ( a3 )
{
if ( a4 != 80 && a4 )
{
LABEL_4:
v10 = sub_E05A38(aUserS_2);
goto LABEL_5;
}
v10 = sub_E05A38(aUserS_3);
}
else
{
if ( a4 != 80 && a4 )
goto LABEL_4;
v10 = sub_E05A38(aUserS_1, a2, a5);
}
LABEL_5:
result = 27;
if ( v10 )
{
v12 = strlen(v10);
v13 = sub_DE724C(a1, v10, v12, a6, a7);
off_154A3C8(v10);
return v13;
}
return result;
}