//
// sub_912384 from 0x912384 to 0x912442 (190 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:28 +0000
//
_BYTE *__fastcall sub_912384(_BYTE *result)
{
int v1; // r10
int v2; // r3
int v3; // r1
int v4; // r9
int v5; // r8
int v6; // r6
int v7; // r5
unsigned int v8; // lr
char v9; // r2
char v10; // r4
v1 = (unsigned __int8)result[31];
v2 = (unsigned __int8)*(result - 1);
v3 = (unsigned __int8)*(result - 31);
v4 = (unsigned __int8)*(result - 33);
v5 = (unsigned __int8)*(result - 32);
v6 = 2 * v5 + v3;
v7 = 2 * (unsigned __int8)*(result - 30) + (unsigned __int8)*(result - 29) + v3 + 2;
v8 = 2 * v1 + v2 + (unsigned __int8)result[63] + 2;
LOBYTE(v2) = (unsigned int)(v2 + 2 * v4 + v5 + 2) >> 2;
LOBYTE(v3) = (2 * (unsigned int)(unsigned __int8)*(result - 1) + v4 + v1 + 2) >> 2;
v9 = (unsigned int)(v6 + v4 + 2) >> 2;
LOBYTE(v8) = v8 >> 2;
v10 = (2 * (unsigned __int8)*(result - 31) + (unsigned int)(unsigned __int8)*(result - 30) + v5 + 2) >> 2;
result[96] = ((unsigned __int8)result[95] + 2 * (unsigned __int8)result[63] + v1 + 2) >> 2;
result[64] = v8;
result[97] = v8;
result[32] = v3;
result[65] = v3;
result[98] = v3;
*result = v2;
result[33] = v2;
result[66] = v2;
result[99] = v2;
result[1] = v9;
result[34] = v9;
result[67] = v9;
result[2] = v10;
result[35] = v10;
result[3] = v7 >> 2;
return result;
}