Take as much as you want.

Literal

Want-[as-much-as-だけ] take.

~だけ following 欲しい gives 'as much as you want / to the extent you want.' The だけ here means 'as much as / to the extent,' a sense distinct from the 'only' sense. The meaning differs based on what だけ attaches to.