int register_savevm(DeviceState *dev,

                    const char *idstr,

                    int instance_id,

                    int version_id,

                    SaveStateHandler *save_state,

                    LoadStateHandler *load_state,

                    void *opaque)

{

    SaveVMHandlers *ops = g_malloc0(sizeof(SaveVMHandlers));

    ops->save_state = save_state;

    ops->load_state = load_state;

    return register_savevm_live(dev, idstr, instance_id, version_id,

                                ops, opaque);

}

int register_savevm(DeviceState *dev,

                    const char *idstr,

                    int instance_id,

                    int version_id,

                    SaveStateHandler *save_state,

                    LoadStateHandler *load_state,

                    void *opaque)

{

    SaveVMHandlers *ops = g_malloc0(sizeof(SaveVMHandlers));

    ops->save_state = save_state;

    ops->load_state = load_state;

    return register_savevm_live(dev, idstr, instance_id, version_id,

                                ops, opaque);

}

    SaveVMHandlers *ops = g_malloc0(sizeof(SaveVMHandlers));
int FUNC_0(DeviceState *VAR_0,

                    const char *VAR_1,

                    int VAR_2,

                    int VAR_3,

                    SaveStateHandler *VAR_4,

                    LoadStateHandler *VAR_5,

                    void *VAR_6)

{

    SaveVMHandlers *ops = g_malloc0(sizeof(SaveVMHandlers));

    ops->VAR_4 = VAR_4;

    ops->VAR_5 = VAR_5;

    return register_savevm_live(VAR_0, VAR_1, VAR_2, VAR_3,

                                ops, VAR_6);

}

int FUNC_0(DeviceState *VAR_0,
const char *VAR_1,
int VAR_2,
int VAR_3,
SaveStateHandler *VAR_4,
LoadStateHandler *VAR_5,
void *VAR_6)
{ SaveVMHandlers *ops = g_malloc0(sizeof(SaveVMHandlers)); ops->VAR_4 = VAR_4; ops->VAR_5 = VAR_5; return register_savevm_live(VAR_0, VAR_1, VAR_2, VAR_3,
ops, VAR_6); }