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

{

    sd->readonly_cb = readonly;

    sd->inserted_cb = insert;

    qemu_set_irq(readonly, sd->bdrv ? bdrv_is_read_only(sd->bdrv) : 0);

    qemu_set_irq(insert, sd->bdrv ? bdrv_is_inserted(sd->bdrv) : 0);

}

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

{

    sd->readonly_cb = readonly;

    sd->inserted_cb = insert;

    qemu_set_irq(readonly, sd->bdrv ? bdrv_is_read_only(sd->bdrv) : 0);

    qemu_set_irq(insert, sd->bdrv ? bdrv_is_inserted(sd->bdrv) : 0);

}

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, VAR_0->bdrv ? bdrv_is_read_only(VAR_0->bdrv) : 0);

    qemu_set_irq(VAR_2, VAR_0->bdrv ? bdrv_is_inserted(VAR_0->bdrv) : 0);

}

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, VAR_0->bdrv ? bdrv_is_read_only(VAR_0->bdrv) : 0); qemu_set_irq(VAR_2, VAR_0->bdrv ? bdrv_is_inserted(VAR_0->bdrv) : 0); }