What is max frequency for tone()

The reference does not mention it, and I don't have scope at hand, so:

Does anyone know what is the maximum frequency that tone() can output? I'd expect it to be hardware/clock dependent...

65535 Hz. The parameter is an unsigned int.