The function takes a numerical value x as input, and then multiplies it by a constant factor. The constant factor appears to be 144 for the value of x = 2, and -16 for the value of x = -128. The function then outputs the result of this multiplication modulo 16.

