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

{

    int32_t *ptr = qdev_get_prop_ptr(dev, prop);

    char *end;



    *ptr = strtol(str, &end, 10);

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

        return -EINVAL;

    }



    return 0;

}

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

{

    int32_t *ptr = qdev_get_prop_ptr(dev, prop);

    char *end;



    *ptr = strtol(str, &end, 10);

    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; static int parse_int32(DeviceState *dev, Property *prop, const char *str)     int32_t *ptr = qdev_get_prop_ptr(dev, prop);     char *end;     *ptr = strtol(str, &end, 10);     if ((*end != '\0') || (end == str)) {         return -EINVAL;     return 0;     int32_t *ptr = qdev_get_prop_ptr(dev, prop);     char *end;     if ((*end != '\0') || (end == str)) {         return -EINVAL;     return 0;         return -EINVAL;     return 0;
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)

{

    int32_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);

    char *VAR_3;



    *ptr = strtol(VAR_2, &VAR_3, 10);

    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)
{ int32_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1); char *VAR_3; *ptr = strtol(VAR_2, &VAR_3, 10); if ((*VAR_3 != '\0') || (VAR_3 == VAR_2)) { return -EINVAL; } return 0; }