def dump_one_deparser(deparser_name, deparser_id, p4_start_state, hlir):
    deparser_dict = OrderedDict()
    deparser_dict["name"] = deparser_name
    deparser_dict["id"] = deparser_id
    deparser_id = deparser_id

    header_topo_sorting = produce_parser_topo_sorting(hlir, p4_start_state)
    deparser_order = [hdr.name for hdr in header_topo_sorting]
    deparser_dict["order"] = deparser_order
    dump_one_deparser.header_set.update(set(header_topo_sorting))

    return deparser_dict