INT64 __fastcall PnpFindBestConfiguration(INT64 a1, UINT64 a2, INT64 **a3){
unsigned int v4;
unsigned int i;
INT64 result;
v4 = a2;
for( i = 0; i < 2; ++i )
{
result = PnpFindBestConfigurationWorker(a1, v4, a3, i);
if( (int)result >= 0 )
break;
}
return result;
}