INT64 __fastcall SmKmStoreHelperCheckWaitCommand(INT64 a1, INT64 a2){
int v2;
INT64 result;
v2 = *(_DWORD *)(a1 + 56);
result = 0i64;
if( v2 )
{
if( (_DWORD)a2 || (v2 & 1) != 0 )
return SmKmStoreHelperWaitForCommand(a1, 0i64, 0i64, 0i64);
else
return 3221225646i64;
}
return result;
}