//
// sub_F7F0D0 from 0xf7f0d0 to 0xf7f108 (56 bytes)
//
// 0 xrefs:
//
// 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 13:13:49 +0000
//
unsigned __int8 *__fastcall sub_F7F0D0(unsigned __int8 *result)
{
unsigned __int64 v1; // x8
__int64 v2; // x8
__int64 v3; // x9
__int64 v4; // x8
v1 = *result;
if ( (v1 & 1) != 0 )
{
v3 = *((_QWORD *)result + 2);
v4 = *((_QWORD *)result + 1) - 1LL;
*((_QWORD *)result + 1) = v4;
*(_DWORD *)(v3 + 4 * v4) = 0;
}
else
{
v2 = (v1 >> 1) - 1;
*result = 2 * v2;
*(_DWORD *)&result[4 * v2 + 4] = 0;
}
return result;
}