//
// sub_C74A48 from 0xc74a48 to 0xc74b3c (244 bytes)
//
// 1 xrefs:
// > sub_C76D40 @ 0xc76f04
//
// 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_C74A48(_BYTE *result)
{
int v1; // w1
int v2; // w3
int v3; // w2
int v4; // w11
int v5; // w4
int v6; // w5
int v7; // w15
int v8; // w6
int v9; // w16
char v10; // w10
char v11; // w9
char v12; // w8
int v13; // w7
v1 = (unsigned __int8)*(result - 1);
v2 = (unsigned __int8)result[31];
v3 = (unsigned __int8)*(result - 33);
v4 = (unsigned __int8)result[63];
v5 = (unsigned __int8)*(result - 32);
v6 = (unsigned __int8)*(result - 31);
v7 = v3 + 2 * v5;
v8 = (unsigned __int8)result[95] + v4;
v9 = v5 + 2 * v6;
v10 = (unsigned __int64)(unsigned int)(v1 + v3 + 1) >> 1;
v11 = (unsigned __int64)(unsigned int)(v2 + v1 + 1) >> 1;
v12 = (unsigned __int64)(unsigned int)(v4 + v2 + 1) >> 1;
LOBYTE(v5) = (unsigned __int64)(unsigned int)(v1 + v3 + v3 + v5 + 2) >> 2;
LOBYTE(v3) = (unsigned __int64)(unsigned int)(v2 + v1 + v1 + v3 + 2) >> 2;
LOBYTE(v1) = (unsigned __int64)(unsigned int)(v4 + v2 + v2 + v1 + 2) >> 2;
v13 = (v9 + (unsigned __int8)*(result - 30) + 2) >> 2;
result[34] = v10;
*result = v10;
result[66] = v11;
result[32] = v11;
result[98] = v12;
result[64] = v12;
result[96] = (v8 + 1) >> 1;
result[3] = v13;
result[2] = (v7 + v6 + 2) >> 2;
result[35] = v5;
result[1] = v5;
result[67] = v3;
result[33] = v3;
result[99] = v1;
result[65] = v1;
result[97] = (v8 + v4 + v2 + 2) >> 2;
return result;
}