//
// sub_18009F9B0 from 0x18009f9b0 to 0x18009f9fd (77 bytes)
//
// 2 xrefs:
// > sub_18009F880 @ 0x18009f8b3
// > ??> @ 0x1801b7704
//
// 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_18009F9B0(__int64 a1, FILE *a2, __int64 a3, int a4)
{
int v5; // r9d
int v7; // r8d
if ( a4 )
{
v5 = a4 - 1;
if ( v5 )
{
if ( v5 != 1 )
return 0xFFFFFFFFLL;
v7 = 2;
}
else
{
v7 = 1;
}
}
else
{
v7 = 0;
}
return (unsigned int)-(fseeki64(a2, a3, v7) != 0);
}