int usb_device_attach(USBDevice *dev)

{

    USBBus *bus = usb_bus_from_device(dev);



    if (bus->nfree == 1 && dev->port_path == NULL) {

        /* Create a new hub and chain it on

           (unless a physical port location is specified). */

        usb_create_simple(bus, "usb-hub");

    }

    return do_attach(dev);

}

int usb_device_attach(USBDevice *dev)

{

    USBBus *bus = usb_bus_from_device(dev);



    if (bus->nfree == 1 && dev->port_path == NULL) {

        



        usb_create_simple(bus, "usb-hub");

    }

    return do_attach(dev);

}

int FUNC_0(USBDevice *VAR_0)

{

    USBBus *bus = usb_bus_from_device(VAR_0);



    if (bus->nfree == 1 && VAR_0->port_path == NULL) {

        



        usb_create_simple(bus, "usb-hub");

    }

    return do_attach(VAR_0);

}

int FUNC_0(USBDevice *VAR_0)
{ USBBus *bus = usb_bus_from_device(VAR_0); if (bus->nfree == 1 && VAR_0->port_path == NULL) { usb_create_simple(bus, "usb-hub"); } return do_attach(VAR_0); }