//
// sub_668A38 from 0x668a38 to 0x668a6e (54 bytes)
//
// 2 xrefs:
// > sub_668A70 @ 0x668c44
// > sub_668E20 @ 0x66911a
//
// 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_668A38(_DWORD *result)
{
_DWORD *v1; // r3
int v2; // r2
int v3; // r2
v1 = (_DWORD *)result[101];
if ( (int)result[73] <= 1 )
{
v2 = result[74];
if ( v1[2] >= (unsigned int)(result[72] - 1) )
v3 = *(_DWORD *)(v2 + 76);
else
v3 = *(_DWORD *)(v2 + 12);
v1[5] = v3;
v1[3] = 0;
v1[4] = 0;
}
else
{
v1[5] = 1;
v1[3] = 0;
v1[4] = 0;
}
return result;
}