HalpIommuFreeRemappingTableEntry

NTSTATUS __stdcall HalpIommuFreeRemappingTableEntry(UINT64 a1, UINT64 a2){
  INT64 *v2; 
  unsigned int v3; 
  unsigned int v4; 
  NTSTATUS v5; 
  INT64 *v6; 
  __int64(__fastcall *v7)(INT64, _QWORD, _QWORD); 

  v2 = (INT64 *)qword_140C49B50;
  v3 = a2;
  v4 = a1;
  v5 = 0;
  while( v2 != &qword_140C49B50 )
  {
    v6 = v2;
    v2 = (INT64 *)*v2;
    if( (v6[57] & 0x40) != 0 )
    {
      v7 = (__int64(__fastcall *)(INT64, _QWORD, _QWORD))v6[20];
      if( v7 )
      {
        v5 = v7(v6[2], v4, v3);
        if( v5 != -1073741594 )
          break;
      }
    }
  }
  return v5;
}

Referenced by:

HalpIrtFreeIndex