The function appears to add 31 to the input value for x >= 0 and subtract 31 from the input value for x <= 0.

