static int get_int32_le(QEMUFile *f, void *pv, size_t size)

{

    int32_t *cur = pv;

    int32_t loaded;

    qemu_get_sbe32s(f, &loaded);



    if (loaded >= 0 && loaded <= *cur) {

        *cur = loaded;

        return 0;

    }

    return -EINVAL;

}

static int get_int32_le(QEMUFile *f, void *pv, size_t size)

{

    int32_t *cur = pv;

    int32_t loaded;

    qemu_get_sbe32s(f, &loaded);



    if (loaded >= 0 && loaded <= *cur) {

        *cur = loaded;

        return 0;

    }

    return -EINVAL;

}

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)

{

    int32_t *cur = VAR_1;

    int32_t loaded;

    qemu_get_sbe32s(VAR_0, &loaded);



    if (loaded >= 0 && loaded <= *cur) {

        *cur = loaded;

        return 0;

    }

    return -EINVAL;

}

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{ int32_t *cur = VAR_1; int32_t loaded; qemu_get_sbe32s(VAR_0, &loaded); if (loaded >= 0 && loaded <= *cur) { *cur = loaded; return 0; } return -EINVAL; }