//
// sub_C93A0 from 0xc93a0 to 0xc9410 (112 bytes)
//
// 1 xrefs:
// > sub_C94D8 @ 0xc9520
//
// 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 11:41:54 +0000
//
_DWORD *__fastcall sub_C93A0(_DWORD *result)
{
unsigned int v1; // r1
int v2; // r4
int v3; // r5
int i; // r4
int v5; // r5
if ( result )
{
v1 = 0;
v2 = 0;
*(_BYTE *)(*result + 22) = 0;
*(_BYTE *)(*result + 23) = 0;
*(_BYTE *)(*result + 24) = 0;
*(_BYTE *)(*result + 25) = 0;
while ( v2 < result[1] )
{
v3 = *(unsigned __int8 *)(*result + v2++);
v1 = dword_41808[v3 ^ HIBYTE(v1)] ^ (v1 << 8);
}
for ( i = 0; i < result[3]; ++i )
{
v5 = *(unsigned __int8 *)(result[2] + i);
v1 = dword_41808[v5 ^ HIBYTE(v1)] ^ (v1 << 8);
}
*(_WORD *)(*result + 22) = v1;
*(_BYTE *)(*result + 24) = BYTE2(v1);
result = (_DWORD *)*result;
*((_BYTE *)result + 25) = HIBYTE(v1);
}
return result;
}