//
// sub_90606C from 0x90606c to 0x9060f8 (140 bytes)
//
// 3 xrefs:
// > TIFFFdOpen @ 0x906294
// > TIFFFdOpen @ 0x906298
// > ??> @ 0x906318
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:18 +0000
//
__int64 __fastcall sub_90606C(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;
}