static void qdev_print(Monitor *mon, DeviceState *dev, int indent)

{

    BusState *child;

    qdev_printf("dev: %s, id \"%s\"\n", dev->info->name,

                dev->id ? dev->id : "");

    indent += 2;

    if (dev->num_gpio_in) {

        qdev_printf("gpio-in %d\n", dev->num_gpio_in);

    }

    if (dev->num_gpio_out) {

        qdev_printf("gpio-out %d\n", dev->num_gpio_out);

    }

    qdev_print_props(mon, dev, dev->info->props, "dev", indent);

    qdev_print_props(mon, dev, dev->parent_bus->info->props, "bus", indent);

    if (dev->parent_bus->info->print_dev)

        dev->parent_bus->info->print_dev(mon, dev, indent);

    LIST_FOREACH(child, &dev->child_bus, sibling) {

        qbus_print(mon, child, indent);

    }

}

static void qdev_print(Monitor *mon, DeviceState *dev, int indent)

{

    BusState *child;

    qdev_printf("dev: %s, id \"%s\"\n", dev->info->name,

                dev->id ? dev->id : "");

    indent += 2;

    if (dev->num_gpio_in) {

        qdev_printf("gpio-in %d\n", dev->num_gpio_in);

    }

    if (dev->num_gpio_out) {

        qdev_printf("gpio-out %d\n", dev->num_gpio_out);

    }

    qdev_print_props(mon, dev, dev->info->props, "dev", indent);

    qdev_print_props(mon, dev, dev->parent_bus->info->props, "bus", indent);

    if (dev->parent_bus->info->print_dev)

        dev->parent_bus->info->print_dev(mon, dev, indent);

    LIST_FOREACH(child, &dev->child_bus, sibling) {

        qbus_print(mon, child, indent);

    }

}

static void FUNC_0(Monitor *VAR_0, DeviceState *VAR_1, int VAR_2)

{

    BusState *child;

    qdev_printf("VAR_1: %s, id \"%s\"\n", VAR_1->info->name,

                VAR_1->id ? VAR_1->id : "");

    VAR_2 += 2;

    if (VAR_1->num_gpio_in) {

        qdev_printf("gpio-in %d\n", VAR_1->num_gpio_in);

    }

    if (VAR_1->num_gpio_out) {

        qdev_printf("gpio-out %d\n", VAR_1->num_gpio_out);

    }

    qdev_print_props(VAR_0, VAR_1, VAR_1->info->props, "VAR_1", VAR_2);

    qdev_print_props(VAR_0, VAR_1, VAR_1->parent_bus->info->props, "bus", VAR_2);

    if (VAR_1->parent_bus->info->print_dev)

        VAR_1->parent_bus->info->print_dev(VAR_0, VAR_1, VAR_2);

    LIST_FOREACH(child, &VAR_1->child_bus, sibling) {

        qbus_print(VAR_0, child, VAR_2);

    }

}

static void FUNC_0(Monitor *VAR_0, DeviceState *VAR_1, int VAR_2)
{ BusState *child; qdev_printf("VAR_1: %s, id \"%s\"\n", VAR_1->info->name,
VAR_1->id ? VAR_1->id : ""); VAR_2 += 2; if (VAR_1->num_gpio_in) { qdev_printf("gpio-in %d\n", VAR_1->num_gpio_in); } if (VAR_1->num_gpio_out) { qdev_printf("gpio-out %d\n", VAR_1->num_gpio_out); } qdev_print_props(VAR_0, VAR_1, VAR_1->info->props, "VAR_1", VAR_2); qdev_print_props(VAR_0, VAR_1, VAR_1->parent_bus->info->props, "bus", VAR_2); if (VAR_1->parent_bus->info->print_dev)
VAR_1->parent_bus->info->print_dev(VAR_0, VAR_1, VAR_2); LIST_FOREACH(child, &VAR_1->child_bus, sibling) { qbus_print(VAR_0, child, VAR_2); } }