Rewriting decompfunc prototype for readability