//
// sub_9EF68 from 0x9ef68 to 0x9efc8 (96 bytes)
//
// 1 xrefs:
// > sub_9F954 @ 0x9fb48
//
// 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:14:28 +0000
//
__int64 __fastcall sub_9EF68(__int64 a1)
{
unsigned int v1; // w11
__int64 v2; // x8
int v3; // w10
int v4; // w9
v1 = *(unsigned __int8 *)(a1 + 249);
v2 = *(_QWORD *)(a1 + 8);
if ( (v1 & 0xF) == 0 )
*(_DWORD *)(v2 + 68) += v1 >> 4;
v3 = *(_DWORD *)(v2 + 68);
if ( (v1 & 0xF0) == 0 )
{
v3 -= v1 & 0xF;
*(_DWORD *)(v2 + 68) = v3;
}
if ( v3 > 64 )
{
v4 = 64;
LABEL_9:
*(_DWORD *)(v2 + 68) = v4;
goto LABEL_10;
}
if ( v3 < 0 )
{
v4 = 0;
goto LABEL_9;
}
LABEL_10:
*(_BYTE *)(v2 + 60) |= 2u;
return 0;
}