//
// sub_BF63A4 from 0xbf63a4 to 0xbf641c (120 bytes)
//
// 1 xrefs:
// > jinit_color_converter @ 0xbf64d8
//
// 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_BF63A4(__int64 result, _QWORD *a2, __int64 a3, unsigned int a4, int a5)
{
int v5; // w11
unsigned int v6; // w7
unsigned int v7; // w4
__int64 v8; // x10
__int64 v9; // x8
char *i; // x5
char v11; // w6
v5 = *(_DWORD *)(result + 92);
v6 = *(_DWORD *)(result + 48);
if ( a5 > 0 )
{
v7 = a5 + a4;
do
{
if ( v5 > 0 )
{
v8 = 0;
do
{
result = 0;
v9 = *(_QWORD *)(*(_QWORD *)(a3 + 8 * v8) + 8LL * a4);
for ( i = (char *)(*a2 + v8); v6 > (unsigned int)result; ++result )
{
v11 = *i;
i += v5;
*(_BYTE *)(v9 + result) = v11;
}
++v8;
}
while ( v5 > (int)v8 );
}
++a4;
++a2;
}
while ( a4 != v7 );
}
return result;
}