//
// sub_C83CA8 from 0xc83ca8 to 0xc83cfc (84 bytes)
//
// 1 xrefs:
// > sub_C85C88 @ 0xc85ddc
//
// 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_C83CA8(__int64 result, __int64 a2, __int64 a3, int a4, int a5, int a6)
{
__int64 v6; // x8
__int64 v7; // x6
if ( a4 < a5 )
{
v6 = 4 * ((unsigned int)(a6 - 1) + 1LL);
do
{
v7 = 0;
if ( a6 > 0 )
{
do
{
*(_DWORD *)(a3 + 4 * v7) = *(_DWORD *)(a2 + 4LL * (unsigned __int8)BYTE1(*(_DWORD *)(result + 4 * v7)));
++v7;
}
while ( a6 > (int)v7 );
a3 += v6;
result += v6;
}
++a4;
}
while ( a4 != a5 );
}
return result;
}