//
// gzoffset64 from 0x950644 to 0x950686 (66 bytes)
//
// 1 xrefs:
// > gzoffset @ 0x950688
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:05:23 +0000
//
__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;
}