//
// sub_702A10 from 0x702a10 to 0x702ae0 (208 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_702A10(_BYTE *result)
{
int v1; // r3
int v2; // r1
int v3; // r9
int v4; // r2
int v5; // r4
int v6; // r6
int v7; // r8
int v8; // r7
int v9; // r9
int v10; // r10
int v11; // r8
int v12; // r12
unsigned int v13; // lr
char v14; // r5
v1 = (unsigned __int8)*(result - 28);
v2 = (unsigned __int8)*(result - 27);
v3 = (unsigned __int8)*(result - 31);
v4 = (unsigned __int8)*(result - 30);
v5 = (unsigned __int8)*(result - 29);
v6 = (unsigned __int8)*(result - 32) + v3;
v7 = v6 + v3;
v8 = v4 + v5;
v9 = v3 + v4;
v10 = v4 + v5 + v5;
v11 = v7 + v4 + 2;
v12 = 2 * (unsigned __int8)*(result - 26) + v2 + (unsigned __int8)*(result - 25) + 2;
v13 = v5 + v1 + 1;
LOBYTE(v2) = (unsigned int)(v2 + v5 + v1 + v1 + 2) >> 2;
LOBYTE(v5) = (unsigned int)(v5 + v4 + v9 + 2) >> 2;
result[67] = ((unsigned __int8)*(result - 26) + 2 * (unsigned __int8)*(result - 27) + v1 + 2) >> 2;
v14 = v13 >> 1;
result[98] = v2;
result[35] = v2;
LOBYTE(v2) = (unsigned int)(v1 + v10 + 2) >> 2;
*result = (v6 + 1) >> 1;
LOBYTE(v4) = (unsigned int)(v9 + 1) >> 1;
result[32] = v11 >> 2;
LOBYTE(v1) = (unsigned int)(v8 + 1) >> 1;
result[99] = v12 >> 2;
result[66] = v14;
result[3] = v14;
result[96] = v5;
result[33] = v5;
result[97] = v2;
result[34] = v2;
result[64] = v4;
result[1] = v4;
result[65] = v1;
result[2] = v1;
return result;
}