def pop(queue, max_count):
    """Pop multiple items from queue."""
    result = []
    for _ in range(max_count):
        if len(queue) == 0:
            return result
        result.append(queue.pop())
    return result