//
// sub_700F44 from 0x700f44 to 0x700fbe (122 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned __int8 *__fastcall sub_700F44(unsigned __int8 *result, int a2, int a3, int a4, int a5)
{
int v5; // lr
unsigned __int8 *v6; // r4
int v7; // r7
unsigned __int8 *v8; // r7
int i; // r8
int v10; // r3
int v11; // r3
unsigned int v12; // r9
unsigned int v13; // r6
unsigned int v14; // r3
v5 = a4 - 1;
if ( a4 > 0 )
{
do
{
v6 = result + 1;
v7 = 0;
if ( !a2 )
{
v6 = result;
v7 = 3;
}
if ( a3 > 0 )
{
v8 = &result[v7];
for ( i = 0; i != a3; ++i )
{
v10 = v8[4 * i];
if ( v10 != 255 )
{
v11 = 32897 * v10;
v12 = *v6 * v11;
v13 = v6[1] * v11;
v14 = v6[2] * v11;
*v6 = v12 >> 23;
v6[1] = v13 >> 23;
v6[2] = v14 >> 23;
}
v6 += 4;
}
}
--v5;
result += a5;
}
while ( v5 != -1 );
}
return result;
}