Chaos-assisted depletion and quantum irreversibility of quasistatic protocols