//
// sub_F31C4 from 0xf31c4 to 0xf327c (184 bytes)
//
// 1 xrefs:
// > sub_F33BC @ 0xf343c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:15:06 +0000
//
__int64 __fastcall sub_F31C4(__int64 result)
{
__int64 v1; // x10
unsigned int v2; // w8
int v3; // w12
__int64 i; // x11
int v5; // w12
if ( result )
{
v1 = 0;
v2 = 0;
*(_BYTE *)(*(_QWORD *)result + 22LL) = 0;
*(_BYTE *)(*(_QWORD *)result + 23LL) = 0;
*(_BYTE *)(*(_QWORD *)result + 24LL) = 0;
*(_BYTE *)(*(_QWORD *)result + 25LL) = 0;
while ( v1 < *(int *)(result + 8) )
{
v3 = *(unsigned __int8 *)(*(_QWORD *)result + v1++);
v2 = dword_4EBEC[v3 ^ HIBYTE(v2)] ^ (v2 << 8);
}
for ( i = 0; i < *(int *)(result + 24); ++i )
{
v5 = *(unsigned __int8 *)(*(_QWORD *)(result + 16) + i);
v2 = dword_4EBEC[v5 ^ HIBYTE(v2)] ^ (v2 << 8);
}
*(_DWORD *)(*(_QWORD *)result + 22LL) = v2;
}
return result;
}