//
// sub_E387E0 from 0xe387e0 to 0xe38844 (100 bytes)
//
// 1 xrefs:
// > lws_plat_init @ 0xe38f18
//
// 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:59 +0000
//
__int64 __fastcall sub_E387E0(int a1, char *file, _QWORD *a3, int oflag)
{
int v5; // w0
unsigned int v6; // w19
__int64 result; // x0
_BYTE v8[48]; // [xsp+20h] [xbp+20h] BYREF
__int64 v9; // [xsp+50h] [xbp+50h]
v5 = open(file, oflag, 436);
v6 = v5;
if ( v5 < 0 )
return 0xFFFFFFFFLL;
if ( fstat(v5, (struct stat *)v8) < 0 )
{
close(v6);
return 0xFFFFFFFFLL;
}
else
{
result = v6;
*a3 = v9;
}
return result;
}