//
// sub_1006686D0 from 0x1006686d0 to 0x1006686ea (26 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall sub_1006686D0(__int64 a1, unsigned int a2)
{
__int64 v2; // rax
__int64 v3; // rcx
__int64 result; // rax
v2 = (unsigned int)(*(_DWORD *)a1 - 1);
*(_DWORD *)a1 = v2;
v3 = *(_QWORD *)(a1 + 16);
result = *(_QWORD *)(v3 + 8 * v2);
*(_QWORD *)(v3 + 8LL * a2) = result;
return result;
}