PiSwUnassociateDeviceObject

VOID __stdcall PiSwUnassociateDeviceObject(DEVICE_OBJECT *DeviceObject){
  INT64 *v1; 
  void *v2; 
  v1 = (INT64 *)*((_QWORD *)DeviceObject + 8);
  v2 = (void *)*v1;
  if( *v1 )
  {
    PiSwRemovePdoAssociation(*v1, (INT64)DeviceObject);
    PiSwDeviceDereference(v2);
    *v1 = 0i64;
  }
}

Referenced by:

PiSwDestroyDeviceObject
PiSwProcessRemove