static inline int writer_print_string(WriterContext *wctx,

                                      const char *key, const char *val, int opt)

{

    const struct section *section = wctx->section[wctx->level];

    int ret = 0;



    if (opt && !(wctx->writer->flags & WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS))

        return 0;



    if (section->show_all_entries || av_dict_get(section->entries_to_show, key, NULL, 0)) {

        wctx->writer->print_string(wctx, key, val);

        wctx->nb_item[wctx->level]++;

    }



    return ret;

}

static inline int writer_print_string(WriterContext *wctx,

                                      const char *key, const char *val, int opt)

{

    const struct section *section = wctx->section[wctx->level];

    int ret = 0;



    if (opt && !(wctx->writer->flags & WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS))

        return 0;



    if (section->show_all_entries || av_dict_get(section->entries_to_show, key, NULL, 0)) {

        wctx->writer->print_string(wctx, key, val);

        wctx->nb_item[wctx->level]++;

    }



    return ret;

}

static inline int FUNC_0(WriterContext *VAR_0,

                                      const char *VAR_1, const char *VAR_2, int VAR_3)

{

    const struct VAR_4 *VAR_4 = VAR_0->VAR_4[VAR_0->level];

    int VAR_5 = 0;



    if (VAR_3 && !(VAR_0->writer->flags & WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS))

        return 0;



    if (VAR_4->show_all_entries || av_dict_get(VAR_4->entries_to_show, VAR_1, NULL, 0)) {

        VAR_0->writer->print_string(VAR_0, VAR_1, VAR_2);

        VAR_0->nb_item[VAR_0->level]++;

    }



    return VAR_5;

}

static inline int FUNC_0(WriterContext *VAR_0,
const char *VAR_1, const char *VAR_2, int VAR_3)
{ const struct VAR_4 *VAR_4 = VAR_0->VAR_4[VAR_0->level]; int VAR_5 = 0; if (VAR_3 && !(VAR_0->writer->flags & WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS))
return 0; if (VAR_4->show_all_entries || av_dict_get(VAR_4->entries_to_show, VAR_1, NULL, 0)) { VAR_0->writer->print_string(VAR_0, VAR_1, VAR_2); VAR_0->nb_item[VAR_0->level]++; } return VAR_5; }