//
// sub_E01A0C from 0xe01a0c to 0xe01a9c (144 bytes)
//
// 2 xrefs:
// > sub_DF8AB4 @ 0xdf8c18
// > sub_DF8AB4 @ 0xdf8f50
//
// 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:32 +0000
//
void *__fastcall sub_E01A0C(int a1, char *a2, int a3, _DWORD *a4)
{
void *v4; // x19
int v6; // w0
void *p; // [xsp+20h] [xbp+20h] BYREF
unsigned __int64 v9; // [xsp+28h] [xbp+28h] BYREF
v4 = nullptr;
p = nullptr;
if ( a3 < 0 || (unsigned int)sub_E01818(a1, a2, a3, &p, &v9, 0) )
return v4;
if ( !a4 )
return p;
if ( v9 <= 0x7FFFFFFF )
{
v6 = sub_E21C40();
v4 = p;
*a4 = v6;
return v4;
}
off_154A3C8(p);
return nullptr;
}