static USBDevice *usb_bt_init(USBBus *bus, const char *cmdline)

{

    USBDevice *dev;

    struct USBBtState *s;

    HCIInfo *hci;

    const char *name = "usb-bt-dongle";



    if (*cmdline) {

        hci = hci_init(cmdline);

    } else {

        hci = bt_new_hci(qemu_find_bt_vlan(0));

    }

    if (!hci)

        return NULL;



    dev = usb_create(bus, name);

    s = DO_UPCAST(struct USBBtState, dev, dev);

    s->hci = hci;

    if (qdev_init(&dev->qdev) < 0) {

        error_report("Failed to initialize USB device '%s'", name);

        return NULL;

    }



    return dev;

}

static USBDevice *usb_bt_init(USBBus *bus, const char *cmdline)

{

    USBDevice *dev;

    struct USBBtState *s;

    HCIInfo *hci;

    const char *name = "usb-bt-dongle";



    if (*cmdline) {

        hci = hci_init(cmdline);

    } else {

        hci = bt_new_hci(qemu_find_bt_vlan(0));

    }

    if (!hci)

        return NULL;



    dev = usb_create(bus, name);

    s = DO_UPCAST(struct USBBtState, dev, dev);

    s->hci = hci;

    if (qdev_init(&dev->qdev) < 0) {

        error_report("Failed to initialize USB device '%s'", name);

        return NULL;

    }



    return dev;

}

    if (qdev_init(&dev->qdev) < 0) {         error_report("Failed to initialize USB device '%s'", name);         return NULL;         return NULL;
static USBDevice *FUNC_0(USBBus *bus, const char *cmdline)

{

    USBDevice *dev;

    struct USBBtState *VAR_0;

    HCIInfo *hci;

    const char *VAR_1 = "usb-bt-dongle";



    if (*cmdline) {

        hci = hci_init(cmdline);

    } else {

        hci = bt_new_hci(qemu_find_bt_vlan(0));

    }

    if (!hci)

        return NULL;



    dev = usb_create(bus, VAR_1);

    VAR_0 = DO_UPCAST(struct USBBtState, dev, dev);

    VAR_0->hci = hci;

    if (qdev_init(&dev->qdev) < 0) {

        error_report("Failed to initialize USB device '%VAR_0'", VAR_1);

        return NULL;

    }



    return dev;

}

static USBDevice *FUNC_0(USBBus *bus, const char *cmdline)
{ USBDevice *dev; struct USBBtState *VAR_0; HCIInfo *hci; const char *VAR_1 = "usb-bt-dongle"; if (*cmdline) { hci = hci_init(cmdline); } else { hci = bt_new_hci(qemu_find_bt_vlan(0)); } if (!hci)
return NULL; dev = usb_create(bus, VAR_1); VAR_0 = DO_UPCAST(struct USBBtState, dev, dev); VAR_0->hci = hci; if (qdev_init(&dev->qdev) < 0) { error_report("Failed to initialize USB device '%VAR_0'", VAR_1); return NULL; } return dev; }