Duplicated line. I guess this should be `offset2 < count`?