INT64 __fastcall PpmCheckIdleVeto(INT64 a1){
INT64 result;
INT64 v2;
__int64 v3;
bool v4;
result = 0i64;
if( *(_DWORD *)a1 )
{
if( *(int *)a1 >= 0 )
{
if( *(_QWORD *)(a1 + 32) )
{
v2 = a1 + 8;
v3 = *(_QWORD *)(a1 + 8);
v4 = v3 == v2;
result = 0x80000000i64;
if( !v4 )
return *(unsigned int *)(v3 + 16);
}
else
{
return 0x80000000i64;
}
}
else
{
return 2147483661i64;
}
}
return result;
}