opts_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp)

{

    OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v);

    const QemuOpt *opt;

    int64_t val;

    char *endptr;



    opt = lookup_scalar(ov, name, errp);

    if (!opt) {

        return;

    }



    val = strtosz_suffix(opt->str ? opt->str : "", &endptr,

                         STRTOSZ_DEFSUFFIX_B);

    if (val != -1 && *endptr == '\0') {

        *obj = val;

        processed(ov, name);

        return;

    }

    error_set(errp, QERR_INVALID_PARAMETER_VALUE, opt->name,

              "a size value representible as a non-negative int64");

}

opts_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp)

{

    OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v);

    const QemuOpt *opt;

    int64_t val;

    char *endptr;



    opt = lookup_scalar(ov, name, errp);

    if (!opt) {

        return;

    }



    val = strtosz_suffix(opt->str ? opt->str : "", &endptr,

                         STRTOSZ_DEFSUFFIX_B);

    if (val != -1 && *endptr == '\0') {

        *obj = val;

        processed(ov, name);

        return;

    }

    error_set(errp, QERR_INVALID_PARAMETER_VALUE, opt->name,

              "a size value representible as a non-negative int64");

}

    if (val != -1 && *endptr == '\0') {         *obj = val;         processed(ov, name);     error_set(errp, QERR_INVALID_PARAMETER_VALUE, opt->name,               "a size value representible as a non-negative int64");
FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3)

{

    OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0);

    const QemuOpt *VAR_4;

    int64_t val;

    char *VAR_5;



    VAR_4 = lookup_scalar(ov, VAR_2, VAR_3);

    if (!VAR_4) {

        return;

    }



    val = strtosz_suffix(VAR_4->str ? VAR_4->str : "", &VAR_5,

                         STRTOSZ_DEFSUFFIX_B);

    if (val != -1 && *VAR_5 == '\0') {

        *VAR_1 = val;

        processed(ov, VAR_2);

        return;

    }

    error_set(VAR_3, QERR_INVALID_PARAMETER_VALUE, VAR_4->VAR_2,

              "a size value representible as a non-negative int64");

}

FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3)
{ OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0); const QemuOpt *VAR_4; int64_t val; char *VAR_5; VAR_4 = lookup_scalar(ov, VAR_2, VAR_3); if (!VAR_4) { return; } val = strtosz_suffix(VAR_4->str ? VAR_4->str : "", &VAR_5,
STRTOSZ_DEFSUFFIX_B); if (val != -1 && *VAR_5 == '\0') { *VAR_1 = val; processed(ov, VAR_2); return; } error_set(VAR_3, QERR_INVALID_PARAMETER_VALUE, VAR_4->VAR_2,
"a size value representible as a non-negative int64"); }