def METHOD_NAME(Lmax,m,s,ds=None,dm=None):
    n    = Lmax + 1 - max(abs(m),abs(s))
    a, b = abs(m+s), abs(m-s)
    if ds == dm == None:
        return n,a,b
    if ds == None: ds = 0
    if dm == None: dm = 0
    m += dm
    s += ds
    dn    = Lmax + 1 - max(abs(m),abs(s)) - n
    da,db = abs(m+s) - a, abs(m-s) - b
    return n,a,b,dn,da,db