NTSTATUS __stdcall HvlGetLpIndexFromProcessorIndex(UINT64 a1){
size_t v1;
int v2;
UINT64 *v4;
v1 = 0;
v2 = a1;
if( byte_140C123B0 )
return a1;
v4 = &HvlpLogicalProcessorRegions;
if( !HvlpLogicalProcessorCount )
return -1;
while( *((_DWORD *)v4 + 6) != v2 )
{
++v1;
v4 += 15;
if( v1 >= HvlpLogicalProcessorCount )
return -1;
}
return *((_DWORD *)v4 + 1);
}