int qemu_opts_foreach(QemuOptsList *list, qemu_opts_loopfunc func,

                      void *opaque, Error **errp)

{

    Location loc;

    QemuOpts *opts;

    int rc;



    loc_push_none(&loc);

    QTAILQ_FOREACH(opts, &list->head, next) {

        loc_restore(&opts->loc);

        rc = func(opaque, opts, errp);

        if (rc) {

            return rc;

        }

        assert(!errp || !*errp);

    }

    loc_pop(&loc);

    return 0;

}

int qemu_opts_foreach(QemuOptsList *list, qemu_opts_loopfunc func,

                      void *opaque, Error **errp)

{

    Location loc;

    QemuOpts *opts;

    int rc;



    loc_push_none(&loc);

    QTAILQ_FOREACH(opts, &list->head, next) {

        loc_restore(&opts->loc);

        rc = func(opaque, opts, errp);

        if (rc) {

            return rc;

        }

        assert(!errp || !*errp);

    }

    loc_pop(&loc);

    return 0;

}

    int rc;             return rc;     return 0;
int FUNC_0(QemuOptsList *VAR_0, qemu_opts_loopfunc VAR_1,

                      void *VAR_2, Error **VAR_3)

{

    Location loc;

    QemuOpts *opts;

    int VAR_4;



    loc_push_none(&loc);

    QTAILQ_FOREACH(opts, &VAR_0->head, next) {

        loc_restore(&opts->loc);

        VAR_4 = VAR_1(VAR_2, opts, VAR_3);

        if (VAR_4) {

            return VAR_4;

        }

        assert(!VAR_3 || !*VAR_3);

    }

    loc_pop(&loc);

    return 0;

}

int FUNC_0(QemuOptsList *VAR_0, qemu_opts_loopfunc VAR_1,
void *VAR_2, Error **VAR_3)
{ Location loc; QemuOpts *opts; int VAR_4; loc_push_none(&loc); QTAILQ_FOREACH(opts, &VAR_0->head, next) { loc_restore(&opts->loc); VAR_4 = VAR_1(VAR_2, opts, VAR_3); if (VAR_4) { return VAR_4; } assert(!VAR_3 || !*VAR_3); } loc_pop(&loc); return 0; }