static void usb_hub_handle_attach(USBDevice *dev)

{

    USBHubState *s = DO_UPCAST(USBHubState, dev, dev);

    int i;



    for (i = 0; i < NUM_PORTS; i++) {

        usb_port_location(&s->ports[i].port, dev->port, i+1);

    }

}

static void usb_hub_handle_attach(USBDevice *dev)

{

    USBHubState *s = DO_UPCAST(USBHubState, dev, dev);

    int i;



    for (i = 0; i < NUM_PORTS; i++) {

        usb_port_location(&s->ports[i].port, dev->port, i+1);

    }

}

static void FUNC_0(USBDevice *VAR_0)

{

    USBHubState *s = DO_UPCAST(USBHubState, VAR_0, VAR_0);

    int VAR_1;



    for (VAR_1 = 0; VAR_1 < NUM_PORTS; VAR_1++) {

        usb_port_location(&s->ports[VAR_1].port, VAR_0->port, VAR_1+1);

    }

}

static void FUNC_0(USBDevice *VAR_0)
{ USBHubState *s = DO_UPCAST(USBHubState, VAR_0, VAR_0); int VAR_1; for (VAR_1 = 0; VAR_1 < NUM_PORTS; VAR_1++) { usb_port_location(&s->ports[VAR_1].port, VAR_0->port, VAR_1+1); } }