//
// sub_C93A0 from 0xc93a0 to 0xc9410 (112 bytes)
//
// 1 xrefs:
// > sub_C94D8 @ 0xc9520
//
// 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
//
_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;
}