Changing decoder.c to arm version