void qpci_io_writeq(QPCIDevice *dev, void *data, uint64_t value)

{

    uintptr_t addr = (uintptr_t)data;



    if (addr < QPCI_PIO_LIMIT) {

        dev->bus->pio_writeq(dev->bus, addr, value);

    } else {

        value = cpu_to_le64(value);

        dev->bus->memwrite(dev->bus, addr, &value, sizeof(value));

    }

}

void qpci_io_writeq(QPCIDevice *dev, void *data, uint64_t value)

{

    uintptr_t addr = (uintptr_t)data;



    if (addr < QPCI_PIO_LIMIT) {

        dev->bus->pio_writeq(dev->bus, addr, value);

    } else {

        value = cpu_to_le64(value);

        dev->bus->memwrite(dev->bus, addr, &value, sizeof(value));

    }

}

    uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         dev->bus->memwrite(dev->bus, addr, &value, sizeof(value));     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         dev->bus->memwrite(dev->bus, addr, &value, sizeof(value));     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         dev->bus->memwrite(dev->bus, addr, &value, sizeof(value)); void qpci_io_writeq(QPCIDevice *dev, void *data, uint64_t value)     uintptr_t addr = (uintptr_t)data;     if (addr < QPCI_PIO_LIMIT) {         dev->bus->pio_writeq(dev->bus, addr, value);         dev->bus->memwrite(dev->bus, addr, &value, sizeof(value));     uintptr_t addr = (uintptr_t)data;     uintptr_t addr = (uintptr_t)data;
void FUNC_0(QPCIDevice *VAR_0, void *VAR_1, uint64_t VAR_2)

{

    uintptr_t addr = (uintptr_t)VAR_1;



    if (addr < QPCI_PIO_LIMIT) {

        VAR_0->bus->pio_writeq(VAR_0->bus, addr, VAR_2);

    } else {

        VAR_2 = cpu_to_le64(VAR_2);

        VAR_0->bus->memwrite(VAR_0->bus, addr, &VAR_2, sizeof(VAR_2));

    }

}

void FUNC_0(QPCIDevice *VAR_0, void *VAR_1, uint64_t VAR_2)
{ uintptr_t addr = (uintptr_t)VAR_1; if (addr < QPCI_PIO_LIMIT) { VAR_0->bus->pio_writeq(VAR_0->bus, addr, VAR_2); } else { VAR_2 = cpu_to_le64(VAR_2); VAR_0->bus->memwrite(VAR_0->bus, addr, &VAR_2, sizeof(VAR_2)); } }