static void qdev_prop_cpy(DeviceState *dev, Property *props, void *src)

{

    if (props->info->type == PROP_TYPE_BIT) {

        bool *defval = src;

        bit_prop_set(dev, props, *defval);

    } else {

        char *dst = qdev_get_prop_ptr(dev, props);

        memcpy(dst, src, props->info->size);

    }

}

static void qdev_prop_cpy(DeviceState *dev, Property *props, void *src)

{

    if (props->info->type == PROP_TYPE_BIT) {

        bool *defval = src;

        bit_prop_set(dev, props, *defval);

    } else {

        char *dst = qdev_get_prop_ptr(dev, props);

        memcpy(dst, src, props->info->size);

    }

}

static void FUNC_0(DeviceState *VAR_0, Property *VAR_1, void *VAR_2)

{

    if (VAR_1->info->type == PROP_TYPE_BIT) {

        bool *defval = VAR_2;

        bit_prop_set(VAR_0, VAR_1, *defval);

    } else {

        char *VAR_3 = qdev_get_prop_ptr(VAR_0, VAR_1);

        memcpy(VAR_3, VAR_2, VAR_1->info->size);

    }

}

static void FUNC_0(DeviceState *VAR_0, Property *VAR_1, void *VAR_2)
{ if (VAR_1->info->type == PROP_TYPE_BIT) { bool *defval = VAR_2; bit_prop_set(VAR_0, VAR_1, *defval); } else { char *VAR_3 = qdev_get_prop_ptr(VAR_0, VAR_1); memcpy(VAR_3, VAR_2, VAR_1->info->size); } }