def parse_ha_filename_file(ha_filename_path):
    """Return a parsed ha_filenames file as a dict."""
    name_map = {}
    with open(ha_filename_path) as hfp:
        hfp.readline()
        hfp.readline()
        for line in hfp:
            line = line.strip()
            if not line:
                continue
            tkns = line.split('\t')
            try:
                slname, trip_name = tkns[2], tkns[3]
            except IndexError:
                continue
            if len(tkns) >= 6:
                description_name = tkns[5].split()[0]
                name_map[description_name] = slname
            name_map[slname] = slname
            name_map[trip_name] = slname
    return name_map
