//
// sub_D0764 from 0xd0764 to 0xd07f8 (148 bytes)
//
// 1 xrefs:
// > sub_D306C @ 0xd32cc
//
// 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_D0764(int a1, int a2, int a3, int a4, int **a5, int a6)
{
int v8; // r5
int v10; // r11
float *v11; // r10
int v12; // r9
int v13; // r0
float *v14; // r1
float v15; // s2
float *v16; // r2
int v17; // r2
int v19; // [sp+0h] [bp-20h] BYREF
if ( *(__int16 *)(a1 + 78) >= 1 )
{
v8 = a3;
v10 = a6 + a3;
v11 = (float *)((char *)&v19 - ((4 * *(unsigned __int8 *)(a1 + 80) + 7) & 0xFFFFFFF8));
v12 = 0;
while ( v8 < v10 )
{
if ( sub_D064E(a1, a5, v11) )
return -1;
v13 = *(unsigned __int8 *)(a1 + 80);
v14 = v11;
while ( v13 )
{
--v13;
v15 = *v14++;
v16 = (float *)(*(_DWORD *)(a2 + 4 * v12) + 4 * v8);
*v16 = *v16 + v15;
v17 = v12 + 1;
if ( v12 + 1 == a4 )
++v8;
v12 = v17 - a4;
if ( v17 != a4 )
v12 = v17;
}
}
}
return 0;
}