//
// sub_CEC394 from 0xcec394 to 0xcec3ec (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x121d630
//
// 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
//
__int64 __fastcall sub_CEC394(__int64 a1, __int64 a2, int a3)
{
int v4; // w2
int v6; // w0
__int64 v7; // x1
v4 = 0;
if ( a3 )
{
if ( a3 == 1 )
v4 = 1;
else
v4 = 2;
}
v6 = fseek(*(FILE **)(a1 + 64), a2, v4);
v7 = -1;
if ( !v6 )
return ftell(*(FILE **)(a1 + 64));
return v7;
}