//
// sub_64BE2C from 0x64be2c to 0x64be68 (60 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_64BE2C(int a1, char *file, _DWORD *a3, int oflag)
{
int v5; // r0
int v6; // r4
int result; // r0
_DWORD v8[27]; // [sp+0h] [bp-6Ch] BYREF
v5 = open(file, oflag, 436);
v6 = v5;
if ( v5 < 0 )
return -1;
if ( fstat(v5, (struct stat *)v8) < 0 )
{
close(v6);
return -1;
}
else
{
result = v6;
*a3 = v8[12];
}
return result;
}