def dec_table(cmds):
    """Make a decompilation table from a compilation table"""
    dec_pkcommands = {}
    for name, cmd in cmds.items():
        if 'hex' in cmd:
            dec_pkcommands[cmd['hex']] = name
    return dec_pkcommands
