static int vmstate_n_elems(void *opaque, VMStateField *field)

{

    int n_elems = 1;



    if (field->flags & VMS_ARRAY) {

        n_elems = field->num;

    } else if (field->flags & VMS_VARRAY_INT32) {

        n_elems = *(int32_t *)(opaque+field->num_offset);

    } else if (field->flags & VMS_VARRAY_UINT32) {

        n_elems = *(uint32_t *)(opaque+field->num_offset);

    } else if (field->flags & VMS_VARRAY_UINT16) {

        n_elems = *(uint16_t *)(opaque+field->num_offset);

    } else if (field->flags & VMS_VARRAY_UINT8) {

        n_elems = *(uint8_t *)(opaque+field->num_offset);

    }



    return n_elems;

}

static int vmstate_n_elems(void *opaque, VMStateField *field)

{

    int n_elems = 1;



    if (field->flags & VMS_ARRAY) {

        n_elems = field->num;

    } else if (field->flags & VMS_VARRAY_INT32) {

        n_elems = *(int32_t *)(opaque+field->num_offset);

    } else if (field->flags & VMS_VARRAY_UINT32) {

        n_elems = *(uint32_t *)(opaque+field->num_offset);

    } else if (field->flags & VMS_VARRAY_UINT16) {

        n_elems = *(uint16_t *)(opaque+field->num_offset);

    } else if (field->flags & VMS_VARRAY_UINT8) {

        n_elems = *(uint8_t *)(opaque+field->num_offset);

    }



    return n_elems;

}

static int FUNC_0(void *VAR_0, VMStateField *VAR_1)

{

    int VAR_2 = 1;



    if (VAR_1->flags & VMS_ARRAY) {

        VAR_2 = VAR_1->num;

    } else if (VAR_1->flags & VMS_VARRAY_INT32) {

        VAR_2 = *(int32_t *)(VAR_0+VAR_1->num_offset);

    } else if (VAR_1->flags & VMS_VARRAY_UINT32) {

        VAR_2 = *(uint32_t *)(VAR_0+VAR_1->num_offset);

    } else if (VAR_1->flags & VMS_VARRAY_UINT16) {

        VAR_2 = *(uint16_t *)(VAR_0+VAR_1->num_offset);

    } else if (VAR_1->flags & VMS_VARRAY_UINT8) {

        VAR_2 = *(uint8_t *)(VAR_0+VAR_1->num_offset);

    }



    return VAR_2;

}

static int FUNC_0(void *VAR_0, VMStateField *VAR_1)
{ int VAR_2 = 1; if (VAR_1->flags & VMS_ARRAY) { VAR_2 = VAR_1->num; } else if (VAR_1->flags & VMS_VARRAY_INT32) { VAR_2 = *(int32_t *)(VAR_0+VAR_1->num_offset); } else if (VAR_1->flags & VMS_VARRAY_UINT32) { VAR_2 = *(uint32_t *)(VAR_0+VAR_1->num_offset); } else if (VAR_1->flags & VMS_VARRAY_UINT16) { VAR_2 = *(uint16_t *)(VAR_0+VAR_1->num_offset); } else if (VAR_1->flags & VMS_VARRAY_UINT8) { VAR_2 = *(uint8_t *)(VAR_0+VAR_1->num_offset); } return VAR_2; }