//
// sub_C08A44 from 0xc08a44 to 0xc08abc (120 bytes)
//
// 1 xrefs:
// > jinit_color_deconverter @ 0xc090b0
//
// 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_C08A44(__int64 result, __int64 a2, unsigned int a3, _QWORD *a4, int a5)
{
int v5; // w11
unsigned int v6; // w7
unsigned int v7; // w4
__int64 v8; // x10
__int64 v9; // x8
_BYTE *i; // x5
char v11; // w6
v5 = *(_DWORD *)(result + 56);
v6 = *(_DWORD *)(result + 136);
if ( a5 > 0 )
{
v7 = a3 + a5;
do
{
if ( v5 > 0 )
{
v8 = 0;
do
{
result = 0;
v9 = *(_QWORD *)(*(_QWORD *)(a2 + 8 * v8) + 8LL * a3);
for ( i = (_BYTE *)(*a4 + v8); v6 > (unsigned int)result; i += v5 )
{
v11 = *(_BYTE *)(v9 + result++);
*i = v11;
}
++v8;
}
while ( v5 > (int)v8 );
}
++a3;
++a4;
}
while ( a3 != v7 );
}
return result;
}