//
// sub_6F64AC from 0x6f64ac to 0x6f6538 (140 bytes)
//
// 3 xrefs:
// > TIFFFdOpen @ 0x6f66d4
// > TIFFFdOpen @ 0x6f66d8
// > ??> @ 0x6f6758
//
// 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_6F64AC(int a1, int a2, __off_t a3, int a4, int whence)
{
if ( a4 == a3 >> 31 )
return lseek(a1, a3, whence);
*(_DWORD *)_errno() = 22;
return -1;
}