//
// sub_C7555C from 0xc7555c to 0xc7562c (208 bytes)
//
// 2 xrefs:
// > sub_C7562C @ 0xc7565c
// > sub_C76D40 @ 0xc76e78
//
// 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_C7555C(unsigned __int8 *result, int a2, int a3)
{
int v3; // w2
int v4; // w6
int v5; // w7
int v6; // w5
__int64 v7; // x3
int v8; // w4
int v9; // w5
v3 = 2 * a3 + 1;
v4 = 16;
do
{
while ( 1 )
{
v5 = *(result - 1);
v6 = *result;
v7 = *(result - 2) - result[1];
if ( v3 >= byte_F54BCF[v7] + 4 * byte_F54BCF[v5 - v6] )
break;
--v4;
result += a2;
if ( !v4 )
return result;
}
--v4;
v8 = 3 * (v6 - v5) + byte_F546CC[v7];
v9 = v6 - byte_F54250[(v8 + 4) >> 3];
*(result - 1) = byte_F53FDF[v5 + byte_F54250[(v8 + 3) >> 3]];
*result = byte_F53FDF[v9];
result += a2;
}
while ( v4 );
return result;
}