__int64 __fastcall PnpProcessCustomDeviceEvent(__int64 *a1){
__int64 v1;
_DEVICE_OBJECT *v2;
__int64 v3;
v1 = *a1;
v2 = *(_DEVICE_OBJECT **)(*a1 + 152);
v3 = *(_QWORD *)(*a1 + 160);
PiDcHandleCustomDeviceEvent(*a1);
PiUEventNotifyUserMode(v1);
PnpNotifyTargetDeviceChange((VOID *)(v3 + 4), v2, v3, 0i64);
return 0i64;
}