//
// sub_702938 from 0x702938 to 0x702a10 (216 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_702938(_BYTE *result)
{
int v1; // r10
int v2; // r1
int v3; // r3
int v4; // r5
int v5; // r8
int v6; // r4
int v7; // r6
int v8; // r12
int v9; // lr
int v10; // r7
int v11; // r2
int v12; // r10
int v13; // r11
int v14; // r4
int v15; // r8
int v16; // r6
int v17; // r1
v1 = (unsigned __int8)*(result - 1);
v2 = (unsigned __int8)*(result - 33);
v3 = (unsigned __int8)*(result - 30);
v4 = (unsigned __int8)*(result - 31);
v5 = (unsigned __int8)*(result - 32);
v6 = 2 * v2 + v1;
v7 = (unsigned __int8)*(result - 29);
v8 = v5 + v4;
v9 = v3 + v7;
v10 = v2 + v5;
v11 = 2 * (unsigned __int8)result[31] + (unsigned __int8)result[63] + v1;
v12 = v2 + v5 + v5;
v13 = v5 + v4 + v4;
v14 = v6 + v5;
v15 = v11 + 2;
v16 = v7 + v4 + v3 + v3 + 2;
v17 = v2 + 2 * (unsigned __int8)*(result - 1) + (unsigned __int8)result[31] + 2;
LOBYTE(v11) = (unsigned int)(v4 + v3 + 1) >> 1;
LOBYTE(v3) = (unsigned int)(v3 + v13 + 2) >> 2;
LOBYTE(v8) = (unsigned int)(v8 + 1) >> 1;
LOBYTE(v4) = (unsigned int)(v4 + v12 + 2) >> 2;
result[67] = v11;
result[2] = v11;
LOBYTE(v11) = (unsigned int)(v10 + 1) >> 1;
result[99] = v3;
result[34] = v3;
LOBYTE(v3) = (unsigned int)(v14 + 2) >> 2;
result[3] = (v9 + 1) >> 1;
result[35] = v16 >> 2;
result[66] = v8;
result[1] = v8;
result[98] = v4;
result[33] = v4;
result[65] = v11;
*result = v11;
result[97] = v3;
result[32] = v3;
result[64] = v17 >> 2;
result[96] = v15 >> 2;
return result;
}