//
// sub_C86634 from 0xc86634 to 0xc8667c (72 bytes)
//
// 1 xrefs:
// > sub_C89A88 @ 0xc89b2c
//
// 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
//
double __fastcall sub_C86634(__int64 a1, __int64 a2, int a3)
{
double result; // d0
int *v4; // x0
int *v5; // x1
int v6; // w2
int v7; // w5
int v8; // w6
int v9; // t1
int v10; // w4
int v11; // t1
result = 0.0;
if ( a3 > 4 )
{
v4 = (int *)(a1 + 16);
v5 = (int *)(a2 + 16);
v6 = a3 - 2;
v7 = 2;
do
{
v9 = *v5++;
v8 = v9;
v10 = v7 >> 1;
v11 = *v4++;
++v7;
result = result + (double)(v10 * (v8 + v11));
}
while ( v7 != v6 );
}
return result;
}