//
// sub_D06EA from 0xd06ea to 0xd0764 (122 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
//
int __fastcall sub_D06EA(int a1, int a2, int **a3, int a4)
{
float *v8; // r5
int v9; // r4
int v10; // r1
float *v11; // r0
float *v12; // r2
float v13; // s0
int v15; // [sp+0h] [bp-20h] BYREF
if ( *(__int16 *)(a1 + 78) >= 1 )
{
v8 = (float *)((char *)&v15 - ((4 * *(unsigned __int8 *)(a1 + 80) + 7) & 0xFFFFFFF8));
v9 = 0;
while ( v9 < a4 )
{
if ( sub_D064E(a1, a3, v8) )
return -1;
v10 = *(unsigned __int8 *)(a1 + 80);
v11 = (float *)(a2 + 4 * v9);
v12 = v8;
while ( v10 )
{
v13 = *v12++;
--v10;
++v9;
*v11 = *v11 + v13;
++v11;
}
}
}
return 0;
}