NANO + potentiometers PWM output not right

I used two potentiometers to control the PWM frequency and duty cycle, but the output not as expected, need help, thanks

int potApin = A1;    // potA for adjuest the frequency of PWM, select the input pin for the potentiometer
int potBpin = A2;  // potB for adjuest the duty cycle of PWM,
int potA_val_read = 0;       // variable to store the value coming from the sensor
int potB_val_read = 0;

int potA_val_map = 0;       // variable to store the value coming from the sensor
int potB_val_map = 0;

int potA_val_out = 0;
int potB_val_out = 0;

void setup()
{
  // Configure Timer 1 for PWM @ 25 kHz.
  TCCR1A = 0;           // undo the configuration done by...
  TCCR1B = 0;           // ...the Arduino core librar
  TCNT1  = 0;           // reset timer
  TCCR1A = _BV(COM1A1)  // non-inverted PWM on ch. A
           | _BV(COM1B1)  // same on ch; B
           | _BV(WGM11);  // mode 10: ph. correct PWM, TOP = ICR1
  TCCR1B = _BV(WGM13)   // ditto
           | _BV(CS10);   // prescaler = 1
 
  Serial.begin(9600);  // Debugging only
  Serial.println("setup"); //Prints "Setup" to the serial monitor

  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
}

void loop()
{

  potA_val_read = analogRead(potApin);    // read the value from the sensor
  potB_val_read = analogRead(potBpin);    // read the value from the sensor

  potA_val_out = map (potA_val_read, 0, 1023, 0, 600);
  potB_val_out = map (potB_val_read, 0, 1023, 0, 250);

  if (analogRead(potA_val_out) < 100) ICR1 = 10000; // 100Hz - Default value to 100Hz for A0 = 0V
  if (analogRead(potA_val_out) < 200 && analogRead(potA_val_out) > 100) ICR1 = 5000; // 200Hz
  if (analogRead(potA_val_out) < 300 && analogRead(potA_val_out) > 200) ICR1 = 2500; // 400Hz

  Serial.println("potA_val_out="); //Prints "Setup" to the serial monitor
  Serial.println(potA_val_out);

  if (analogRead(potA_val_out) < 400 && analogRead(potA_val_out) > 300) ICR1 = 1000; // 1000Hz
  if (analogRead(potA_val_out) < 500 && analogRead(potA_val_out) > 400) ICR1 = 500; // 2000Hz
  if (analogRead(potA_val_out) < 600 && analogRead(potA_val_out) > 500) ICR1 = 333; // 3000Hz

  analogWrite(9, potB_val_out);

  Serial.println("potB_val_out="); //Prints "Setup" to the serial monitor
  Serial.println(potB_val_out);
}

Hum... wonder if that variable name implies it’s a PIN number...analogRead([color=red]potA_val_out[/color])?... especially when I see elsewhere

int potApin = A1;    // potA for adjuest the frequency of PWM, select the input pin for the potentiometer
int potBpin = A2;  // potB for adjuest the duty cycle of PWM
...
  potA_val_read = analogRead(potApin);    // read the value from the sensor
  potB_val_read = analogRead(potBpin);    // read the value from the sensor

...

=> read the doc for analogRead()