from typing import List


def _inv_shift_rows(s: List[List[bytes]]) -> List[List[bytes]]:
    """
    Performs the inverted shift rows transformation as described in the standard
    :param s: the state matrix
    :return: the new state matrix with shifted rows
    """
    s[0][1], s[1][1], s[2][1], s[3][1] = s[3][1], s[0][1], s[1][1], s[2][1]
    s[0][2], s[1][2], s[2][2], s[3][2] = s[2][2], s[3][2], s[0][2], s[1][2]
    s[0][3], s[1][3], s[2][3], s[3][3] = s[1][3], s[2][3], s[3][3], s[0][3]
    return s