static void bmdma_irq(void *opaque, int n, int level)

{

    BMDMAState *bm = opaque;



    if (!level) {

        /* pass through lower */

        qemu_set_irq(bm->irq, level);

        return;

    }



    if (bm) {

        bm->status |= BM_STATUS_INT;

    }



    /* trigger the real irq */

    qemu_set_irq(bm->irq, level);

}

static void bmdma_irq(void *opaque, int n, int level)

{

    BMDMAState *bm = opaque;



    if (!level) {

        

        qemu_set_irq(bm->irq, level);

        return;

    }



    if (bm) {

        bm->status |= BM_STATUS_INT;

    }



    

    qemu_set_irq(bm->irq, level);

}

    if (bm) {         bm->status |= BM_STATUS_INT;
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)

{

    BMDMAState *bm = VAR_0;



    if (!VAR_2) {

        

        qemu_set_irq(bm->irq, VAR_2);

        return;

    }



    if (bm) {

        bm->status |= BM_STATUS_INT;

    }



    

    qemu_set_irq(bm->irq, VAR_2);

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)
{ BMDMAState *bm = VAR_0; if (!VAR_2) { qemu_set_irq(bm->irq, VAR_2); return; } if (bm) { bm->status |= BM_STATUS_INT; } qemu_set_irq(bm->irq, VAR_2); }