static int parse_uint64(DeviceState *dev, Property *prop, const char *str)

{

    uint64_t *ptr = qdev_get_prop_ptr(dev, prop);

    char *end;



    /* accept both hex and decimal */

    *ptr = strtoull(str, &end, 0);

    if ((*end != '\0') || (end == str)) {

        return -EINVAL;

    }



    return 0;

}

static int parse_uint64(DeviceState *dev, Property *prop, const char *str)

{

    uint64_t *ptr = qdev_get_prop_ptr(dev, prop);

    char *end;



    

    *ptr = strtoull(str, &end, 0);

    if ((*end != '\0') || (end == str)) {

        return -EINVAL;

    }



    return 0;

}

        return -EINVAL;     return 0;     char *end;     if ((*end != '\0') || (end == str)) {         return -EINVAL;     return 0;     char *end;     if ((*end != '\0') || (end == str)) {         return -EINVAL;     return 0;     char *end;     if ((*end != '\0') || (end == str)) {         return -EINVAL;     return 0;     char *end;     if ((*end != '\0') || (end == str)) {         return -EINVAL;     return 0; static int parse_uint64(DeviceState *dev, Property *prop, const char *str)     uint64_t *ptr = qdev_get_prop_ptr(dev, prop);     char *end;     *ptr = strtoull(str, &end, 0);     if ((*end != '\0') || (end == str)) {         return -EINVAL;     return 0;     uint64_t *ptr = qdev_get_prop_ptr(dev, prop);         return -EINVAL;     return 0;
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)

{

    uint64_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);

    char *VAR_3;



    

    *ptr = strtoull(VAR_2, &VAR_3, 0);

    if ((*VAR_3 != '\0') || (VAR_3 == VAR_2)) {

        return -EINVAL;

    }



    return 0;

}

static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)
{ uint64_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1); char *VAR_3; *ptr = strtoull(VAR_2, &VAR_3, 0); if ((*VAR_3 != '\0') || (VAR_3 == VAR_2)) { return -EINVAL; } return 0; }