MiDeleteDeferredCloneDescriptors

RTL_BALANCED_NODE *__fastcall MiDeleteDeferredCloneDescriptors(INT64 a1){
  RTL_BALANCED_NODE *v2; 
  PSLIST_ENTRY v3; 
  unsigned __int64 *v4; 
  __int64 *v5; 
  v2 = 0i64;
  v3 = RtlpInterlockedFlushSList((PSLIST_HEADER)(*(_QWORD *)(a1 + 1680) + 368i64));
  if( v3 )
  {
    v4 = (unsigned __int64 *)(a1 + 1264);
    do
    {
      v5 = (__int64 *)&v3[-5];
      v3 = v3->Next;
      RtlAvlRemoveNode(v4, v5);
      *v5 = (__int64)v2;
      v2 = (RTL_BALANCED_NODE *)v5;
    }
    while( v3 );
  }
  return v2;
}

Referenced by:

MiDeleteCloneZombies
MiUnlockWorkingSetExclusive