bool __fastcall PnpIsBeingRemovedSafely(_DWORD *a1, int a2){
int v3;
int v4;
v3 = a2 - 1;
if( v3 && v3 != 1 || (a1[140] & 0x200) != 0 )
return 1;
v4 = a1[75];
if( (unsigned int)(v4 - 782) <= 1 )
v4 = a1[76];
return v4 == 777 || v4 <= 774 || v4 >= 780;
}