static void put_bitmap(QEMUFile *f, void *pv, size_t size)

{

    unsigned long *bmp = pv;

    int i, idx = 0;

    for (i = 0; i < BITS_TO_U64S(size); i++) {

        uint64_t w = bmp[idx++];

        if (sizeof(unsigned long) == 4 && idx < BITS_TO_LONGS(size)) {

            w |= ((uint64_t)bmp[idx++]) << 32;

        }

        qemu_put_be64(f, w);

    }

}

static void put_bitmap(QEMUFile *f, void *pv, size_t size)

{

    unsigned long *bmp = pv;

    int i, idx = 0;

    for (i = 0; i < BITS_TO_U64S(size); i++) {

        uint64_t w = bmp[idx++];

        if (sizeof(unsigned long) == 4 && idx < BITS_TO_LONGS(size)) {

            w |= ((uint64_t)bmp[idx++]) << 32;

        }

        qemu_put_be64(f, w);

    }

}

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

{

    unsigned long *VAR_3 = VAR_1;

    int VAR_4, VAR_5 = 0;

    for (VAR_4 = 0; VAR_4 < BITS_TO_U64S(VAR_2); VAR_4++) {

        uint64_t w = VAR_3[VAR_5++];

        if (sizeof(unsigned long) == 4 && VAR_5 < BITS_TO_LONGS(VAR_2)) {

            w |= ((uint64_t)VAR_3[VAR_5++]) << 32;

        }

        qemu_put_be64(VAR_0, w);

    }

}

static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{ unsigned long *VAR_3 = VAR_1; int VAR_4, VAR_5 = 0; for (VAR_4 = 0; VAR_4 < BITS_TO_U64S(VAR_2); VAR_4++) { uint64_t w = VAR_3[VAR_5++]; if (sizeof(unsigned long) == 4 && VAR_5 < BITS_TO_LONGS(VAR_2)) { w |= ((uint64_t)VAR_3[VAR_5++]) << 32; } qemu_put_be64(VAR_0, w); } }