__int64 __fastcall PsSetCreateThreadNotifyRoutineEx(int a1, KSPIN_LOCK a2){
unsigned int v3;
if( a1 )
{
if( a1 != 1 )
return 3221225485i64;
v3 = 2;
}
else
{
v3 = 1;
}
if( (unsigned int)MmVerifyCallbackFunctionCheckFlags((PVOID)a2) )
return PspSetCreateThreadNotifyRoutine(a2, v3);
else
return 3221225506i64;
}