//
// sub_6CD2E4 from 0x6cd2e4 to 0x6cd410 (300 bytes)
//
// 3 xrefs:
// > sub_6D5E60 @ 0x6d6194
// > sub_6D5E60 @ 0x6d6198
// > ??> @ 0x6d6514
//
// 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_6CD2E4(int result, _DWORD *a2, int a3, int a4, int a5, int a6, int a7, int a8, _WORD *a9)
{
int v11; // [sp+4h] [bp-20h]
int v13; // [sp+14h] [bp-10h]
int v14; // [sp+18h] [bp-Ch]
_WORD *v15; // [sp+1Ch] [bp-8h]
v13 = *(unsigned __int16 *)(result + 26);
v14 = *(_DWORD *)(result + 60);
while ( a6-- != 0 )
{
v15 = a9;
v11 = a5;
while ( v11-- != 0 )
{
*a2++ = **(_DWORD **)(v14 + 4 * HIBYTE(*v15));
a9 += v13;
v15 += v13;
}
a2 += a8;
a9 = (_WORD *)((char *)a9 + a7);
}
return result;
}