CHAR __fastcall HvpAllocateMap(INT64 a1, INT64 a2, UINT64 a3, UINT64 a4){
unsigned int v4;
unsigned int v5;
INT64 v8;
INT64 v9;
__int64 v10;
v4 = a4;
v5 = a3;
if( (unsigned int)a4 >= 0x400 )
return 0;
while( v5 <= v4 )
{
v8 = (*(__int64(__fastcall **)(__int64, _QWORD, __int64))(a1 + 24))(12288i64, 0i64, 959597891i64);
v9 = v8;
if( !v8 )
return 0;
memset(v8, 0i64);
v10 = v5++;
*(_QWORD *)(a2 + 8 * v10) = v9;
}
return 1;
}