def reformat_reglist(m):
    start = int(m.group(1))
    format = m.group(2)
    amount = int(m.group(3))

    items = []
    for i in range(amount):
        items.append("v{}{}".format((start + i) % 32, format))

    return "{{{}}}".format(", ".join(items))