//
// sub_1404C6670 from 0x1404c6670 to 0x1404c66ab (59 bytes)
//
// 2 xrefs:
// > sub_1404C66B0 @ 0x1404c6a48
// > sub_1404C66B0 @ 0x1404c6a6a
//
// 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_1404C6670(_QWORD *a1, int a2, int a3)
{
int v3; // r8d
__int64 v4; // rdx
__int64 v5; // rax
v3 = a3 - a2;
v4 = 8LL * a2;
if ( v3 < 0 )
v5 = *(_QWORD *)(a1[3] + 24LL * -v3);
else
v5 = *(_QWORD *)(*a1 + 24LL * v3);
return v4 + v5;
}