//
// sub_14010F710 from 0x14010f710 to 0x14010f762 (82 bytes)
//
// 1 xrefs:
// > ??> @ 0x14072f528
//
// 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_14010F710(__int64 a1, unsigned int a2)
{
unsigned __int64 v2; // r8
v2 = **(_QWORD **)(a1 + 56);
if ( !v2
|| v2 <= **(_QWORD **)(a1 + 24)
|| a2 != -1 && (_BYTE)a2 != *(_BYTE *)(v2 - 1) && (*(_BYTE *)(a1 + 112) & 2) != 0 )
{
return 0xFFFFFFFFLL;
}
++**(_DWORD **)(a1 + 80);
--**(_QWORD **)(a1 + 56);
if ( a2 == -1 )
return 0;
else
***(_BYTE ***)(a1 + 56) = a2;
return a2;
}