//
// sub_10071C300 from 0x10071c300 to 0x10071c376 (118 bytes)
//
// 0 xrefs:
//
// 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:36:11 +0000
//
__int64 __fastcall sub_10071C300(__int64 **a1)
{
__int64 *v1; // rcx
__int64 result; // rax
__int64 v3; // rsi
__int64 v4; // rdx
__int64 v5; // rdx
int v6; // edi
__int64 v7; // rdi
int v8; // edi
v1 = *a1;
result = -1;
if ( *a1 )
{
v3 = *v1;
v4 = *(_QWORD *)(*v1 & 0xFFFFFFFFFFFFFFE0LL);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 16);
if ( v5 )
{
result = *v1 & 7;
v6 = 156;
if ( _bittest(&v6, result) )
{
v7 = 3;
result = -1;
if ( (v3 & 8) != 0 )
return result;
return v1[v7] - v5;
}
v8 = 98;
if ( _bittest(&v8, result) )
{
v7 = 2;
result = -1;
if ( (v3 & 0x10) == 0 )
return v1[v7] - v5;
}
}
}
}
return result;
}