btm.c decoding