//
// gzoffset64 from 0x740a84 to 0x740ac6 (66 bytes)
//
// 1 xrefs:
// > gzoffset @ 0x740ac8
//
// 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; // r1
bool v2; // zf
__off_t v3; // r1
__off_t result; // r0
if ( !a1 )
return -1;
v1 = a1[3];
v2 = v1 == 31153;
if ( v1 != 31153 )
v2 = v1 == 7247;
v3 = !v2;
if ( !v2 )
return -1;
result = lseek(a1[4], v3, 1);
if ( result == -1 )
return -1;
if ( a1[3] == 7247 )
result -= a1[22];
return result;
}