int __fastcall BitmapGetColorsUsed(unsigned int n3, int n26, int a3)
{
int result; // eax
result = 0;
if ( n3 <= 3 )
{
if ( n26 > 9 )
{
LOBYTE(result) = n26 > 26;
++result;
}
return *(_DWORD *)(a3 + 4 * (result + 3 * n3) + 128);
}
return result;
}