//
// sub_1800A36E0 from 0x1800a36e0 to 0x1800a372d (77 bytes)
//
// 2 xrefs:
// > sub_1800A35B0 @ 0x1800a35e3
// > ??> @ 0x1801c19a4
//
// 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 11:22:14 +0000
//
__int64 __fastcall sub_1800A36E0(__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);
}