BOOL __stdcall IopIsRootEnumeratedDeviceObjectActive(INT64 a1){
_DWORD *v1;
__int64 v2;
BOOL result;
v1 = *(_DWORD **)(a1 + 64);
result = 0;
if( !v1 || (*v1 & 1) == 0 )
{
v2 = *(_QWORD *)(*(_QWORD *)(a1 + 312) + 40i64);
if( !v2 || (*(_DWORD *)(v2 + 396) & 0x10000) == 0 )
return 1;
}
return result;
}