//
// sub_C74610 from 0xc74610 to 0xc746e8 (216 bytes)
//
// 1 xrefs:
// > sub_C76D40 @ 0xc76ed4
//
// 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
//
_BYTE *__fastcall sub_C74610(_BYTE *result)
{
int v1; // w1
int v2; // w3
int v3; // w2
int v4; // w4
int v5; // w5
int v6; // w13
int v7; // w6
int v8; // w12
int v9; // w8
int v10; // w14
int v11; // w5
v1 = (unsigned __int8)*(result - 1);
v2 = (unsigned __int8)result[31];
v3 = (unsigned __int8)*(result - 33);
v4 = (unsigned __int8)*(result - 32);
v5 = (unsigned __int8)*(result - 31);
v6 = v1 + 2 * v2;
v7 = (unsigned __int8)result[63];
v8 = v3 + 2 * v1;
v9 = (unsigned __int8)*(result - 30);
v10 = v2 + 2 * v7;
LOBYTE(v1) = (unsigned __int64)(unsigned int)(v4 + 2 * v3 + v1 + 2) >> 2;
LOBYTE(v2) = (unsigned __int64)(unsigned int)(v8 + v2 + 2) >> 2;
LOBYTE(v3) = (unsigned __int64)(unsigned int)(v5 + 2 * v4 + v3 + 2) >> 2;
LOBYTE(v7) = (unsigned __int64)(unsigned int)(v6 + v7 + 2) >> 2;
LOBYTE(v4) = (unsigned __int64)(unsigned int)(v9 + 2 * v5 + v4 + 2) >> 2;
v11 = ((unsigned __int8)*(result - 29) + 2 * v9 + v5 + 2) >> 2;
result[96] = (v10 + (unsigned __int8)result[95] + 2) >> 2;
result[64] = v7;
result[97] = v7;
result[32] = v2;
result[65] = v2;
result[98] = v2;
*result = v1;
result[33] = v1;
result[66] = v1;
result[99] = v1;
result[1] = v3;
result[34] = v3;
result[67] = v3;
result[2] = v4;
result[35] = v4;
result[3] = v11;
return result;
}