//
// sub_77A18C from 0x77a18c to 0x77a1ba (46 bytes)
//
// 8 xrefs:
// > sub_76EC90 @ 0x76ecca
// > sub_76ED08 @ 0x76edb2
// > sub_76EFA8 @ 0x76f00e
// > sub_76F080 @ 0x76f0f8
// > sub_76F624 @ 0x76f65e
// > sub_76F69C @ 0x76f746
// > sub_76F930 @ 0x76f996
// > sub_76FA08 @ 0x76facc
//
// 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_77A18C(int a1, __int64 offset, int whence)
{
bool v4; // cf
v4 = (unsigned __int64)(offset + 0x80000000LL) >> 32 != 0;
if ( (unsigned __int64)(offset + 0x80000000LL) >> 32 == 1 )
v4 = 1;
if ( v4 )
return -1;
else
return lseek(*(__int16 *)(*(_DWORD *)a1 + 14), offset, whence);
}