//
// sub_1001589A0 from 0x1001589a0 to 0x1001589c8 (40 bytes)
//
// 1 xrefs:
// > sub_1001588D0 @ 0x1001588ff
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:25:05 +0000
//
__int64 __fastcall sub_1001589A0(__int64 a1, FILE *a2, __int64 a3, unsigned int a4)
{
__int64 result; // rax
result = -1;
if ( a4 <= 2 )
return -(__int64)(fseek(a2, a3, a4) != 0);
return result;
}