static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev)

{

    UHCIAsync *curr, *n;



    QTAILQ_FOREACH_SAFE(curr, &s->async_pending, next, n) {

        if (curr->packet.owner == NULL ||

            curr->packet.owner->dev != dev) {

            continue;

        }

        uhci_async_unlink(s, curr);

        uhci_async_cancel(s, curr);

    }

}

static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev)

{

    UHCIAsync *curr, *n;



    QTAILQ_FOREACH_SAFE(curr, &s->async_pending, next, n) {

        if (curr->packet.owner == NULL ||

            curr->packet.owner->dev != dev) {

            continue;

        }

        uhci_async_unlink(s, curr);

        uhci_async_cancel(s, curr);

    }

}

        if (curr->packet.owner == NULL ||             curr->packet.owner->dev != dev) {
static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1)

{

    UHCIAsync *curr, *n;



    QTAILQ_FOREACH_SAFE(curr, &VAR_0->async_pending, next, n) {

        if (curr->packet.owner == NULL ||

            curr->packet.owner->VAR_1 != VAR_1) {

            continue;

        }

        uhci_async_unlink(VAR_0, curr);

        uhci_async_cancel(VAR_0, curr);

    }

}

static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1)
{ UHCIAsync *curr, *n; QTAILQ_FOREACH_SAFE(curr, &VAR_0->async_pending, next, n) { if (curr->packet.owner == NULL ||
curr->packet.owner->VAR_1 != VAR_1) { continue; } uhci_async_unlink(VAR_0, curr); uhci_async_cancel(VAR_0, curr); } }