//
// sub_702AE0 from 0x702ae0 to 0x702b5e (126 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
//
_BYTE *__fastcall sub_702AE0(_BYTE *result)
{
int v1; // r2
int v2; // r3
int v3; // r1
int v4; // r5
int v5; // r6
int v6; // r2
int v7; // r4
int v8; // r6
int v9; // r3
char v10; // r7
v1 = (unsigned __int8)result[31];
v2 = (unsigned __int8)result[63];
v3 = (unsigned __int8)result[95];
v4 = (unsigned __int8)*(result - 1) + v1;
v5 = v4 + v1;
v6 = v1 + v2;
v7 = v6 + v2;
v8 = v5 + v2;
v9 = v2 + v3;
LOBYTE(v7) = (unsigned int)(v7 + v3 + 2) >> 2;
v10 = (unsigned int)(v9 + 2 * v3 + 2) >> 2;
LOBYTE(v6) = (unsigned int)(v6 + 1) >> 1;
LOBYTE(v9) = (unsigned int)(v9 + 1) >> 1;
*result = (v4 + 1) >> 1;
result[1] = (v8 + 2) >> 2;
result[33] = v7;
result[3] = v7;
result[65] = v10;
result[35] = v10;
result[32] = v6;
result[2] = v6;
result[99] = v3;
result[98] = v3;
result[97] = v3;
result[96] = v3;
result[66] = v3;
result[67] = v3;
result[64] = v9;
result[34] = v9;
return result;
}