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

{

    qemu_irq old_irq = *(qemu_irq *)opaque;

    qemu_set_irq(old_irq, level);



    if (irq_levels[n] != level) {

        CharDriverState *chr = qtest_chr;

        irq_levels[n] = level;

        qtest_send_prefix(chr);

        qtest_send(chr, "IRQ %s %d\n",

                   level ? "raise" : "lower", n);

    }

}

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

{

    qemu_irq old_irq = *(qemu_irq *)opaque;

    qemu_set_irq(old_irq, level);



    if (irq_levels[n] != level) {

        CharDriverState *chr = qtest_chr;

        irq_levels[n] = level;

        qtest_send_prefix(chr);

        qtest_send(chr, "IRQ %s %d\n",

                   level ? "raise" : "lower", n);

    }

}

        qtest_send(chr, "IRQ %s %d\n",                    level ? "raise" : "lower", n);
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)

{

    qemu_irq old_irq = *(qemu_irq *)VAR_0;

    qemu_set_irq(old_irq, VAR_2);



    if (irq_levels[VAR_1] != VAR_2) {

        CharDriverState *chr = qtest_chr;

        irq_levels[VAR_1] = VAR_2;

        qtest_send_prefix(chr);

        qtest_send(chr, "IRQ %s %d\VAR_1",

                   VAR_2 ? "raise" : "lower", VAR_1);

    }

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)
{ qemu_irq old_irq = *(qemu_irq *)VAR_0; qemu_set_irq(old_irq, VAR_2); if (irq_levels[VAR_1] != VAR_2) { CharDriverState *chr = qtest_chr; irq_levels[VAR_1] = VAR_2; qtest_send_prefix(chr); qtest_send(chr, "IRQ %s %d\VAR_1",
VAR_2 ? "raise" : "lower", VAR_1); } }