//
// gzoffset64 from 0xcc8bdc to 0xcc8c64 (136 bytes)
//
// 2 xrefs:
// > gzoffset @ 0xcc8c64
// > ??> @ 0x9f2e8
//
// 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
//
__off_t __fastcall gzoffset64(_DWORD *a1)
{
int v1; // w1
__off_t result; // x0
if ( !a1 )
return -1;
v1 = a1[6];
if ( v1 != 31153 && v1 != 7247 )
return -1;
result = lseek(a1[7], 0, 1);
if ( result == -1 )
return -1;
if ( a1[6] == 7247 )
result -= (unsigned int)a1[32];
return result;
}