static int raw_write_scrubbed_bootsect(BlockDriverState *bs,

                                       const uint8_t *buf)

{

    uint8_t bootsect[512];



    /* scrub the dangerous signature */

    memcpy(bootsect, buf, 512);

    memset(bootsect, 0, 4);



    return bdrv_write(bs->file, 0, bootsect, 1);

}

static int raw_write_scrubbed_bootsect(BlockDriverState *bs,

                                       const uint8_t *buf)

{

    uint8_t bootsect[512];



    

    memcpy(bootsect, buf, 512);

    memset(bootsect, 0, 4);



    return bdrv_write(bs->file, 0, bootsect, 1);

}

static int raw_write_scrubbed_bootsect(BlockDriverState *bs,                                        const uint8_t *buf)     uint8_t bootsect[512];     memcpy(bootsect, buf, 512);     memset(bootsect, 0, 4);     return bdrv_write(bs->file, 0, bootsect, 1);
static int FUNC_0(BlockDriverState *VAR_0,

                                       const uint8_t *VAR_1)

{

    uint8_t bootsect[512];



    

    memcpy(bootsect, VAR_1, 512);

    memset(bootsect, 0, 4);



    return bdrv_write(VAR_0->file, 0, bootsect, 1);

}

static int FUNC_0(BlockDriverState *VAR_0,
const uint8_t *VAR_1)
{ uint8_t bootsect[512]; memcpy(bootsect, VAR_1, 512); memset(bootsect, 0, 4); return bdrv_write(VAR_0->file, 0, bootsect, 1); }