//
// sub_14010F6B0 from 0x14010f6b0 to 0x14010f70c (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x14072f538
//
// 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:26:49 +0000
//
__int64 __fastcall sub_14010F6B0(__int64 a1)
{
unsigned __int8 **v1; // r10
unsigned __int8 *v2; // rdx
int *v3; // r9
unsigned __int64 v5; // r8
unsigned __int64 v6; // rax
v1 = *(unsigned __int8 ***)(a1 + 56);
v2 = *v1;
if ( !*v1 )
return 0xFFFFFFFFLL;
v3 = *(int **)(a1 + 80);
if ( v2 < &v2[*v3] )
return *v2;
v5 = **(_QWORD **)(a1 + 64);
if ( !v5 || (*(_BYTE *)(a1 + 112) & 4) != 0 )
return 0xFFFFFFFFLL;
v6 = *(_QWORD *)(a1 + 104);
if ( v6 < v5 )
v6 = **(_QWORD **)(a1 + 64);
if ( v6 <= (unsigned __int64)v2 )
return 0xFFFFFFFFLL;
*(_QWORD *)(a1 + 104) = v6;
*v3 = v6 - *(_DWORD *)v1;
return ***(unsigned __int8 ***)(a1 + 56);
}