void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert)

{

    sd->readonly_cb = readonly;

    sd->inserted_cb = insert;

    qemu_set_irq(readonly, bdrv_is_read_only(sd->bdrv));

    qemu_set_irq(insert, bdrv_is_inserted(sd->bdrv));

}

void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert)

{

    sd->readonly_cb = readonly;

    sd->inserted_cb = insert;

    qemu_set_irq(readonly, bdrv_is_read_only(sd->bdrv));

    qemu_set_irq(insert, bdrv_is_inserted(sd->bdrv));

}

    qemu_set_irq(readonly, bdrv_is_read_only(sd->bdrv));     qemu_set_irq(insert, bdrv_is_inserted(sd->bdrv));
void FUNC_0(SDState *VAR_0, qemu_irq VAR_1, qemu_irq VAR_2)

{

    VAR_0->readonly_cb = VAR_1;

    VAR_0->inserted_cb = VAR_2;

    qemu_set_irq(VAR_1, bdrv_is_read_only(VAR_0->bdrv));

    qemu_set_irq(VAR_2, bdrv_is_inserted(VAR_0->bdrv));

}

void FUNC_0(SDState *VAR_0, qemu_irq VAR_1, qemu_irq VAR_2)
{ VAR_0->readonly_cb = VAR_1; VAR_0->inserted_cb = VAR_2; qemu_set_irq(VAR_1, bdrv_is_read_only(VAR_0->bdrv)); qemu_set_irq(VAR_2, bdrv_is_inserted(VAR_0->bdrv)); }