static void dp8393x_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)

{

    uint16_t old_val = dp8393x_readw(opaque, addr & ~0x1);



    switch (addr & 3) {

    case 0:

        val = val | (old_val & 0xff00);

        break;

    case 1:

        val = (val << 8) | (old_val & 0x00ff);

        break;

    }

    dp8393x_writew(opaque, addr & ~0x1, val);

}

static void dp8393x_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)

{

    uint16_t old_val = dp8393x_readw(opaque, addr & ~0x1);



    switch (addr & 3) {

    case 0:

        val = val | (old_val & 0xff00);

        break;

    case 1:

        val = (val << 8) | (old_val & 0x00ff);

        break;

    }

    dp8393x_writew(opaque, addr & ~0x1, val);

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)

{

    uint16_t old_val = dp8393x_readw(VAR_0, VAR_1 & ~0x1);



    switch (VAR_1 & 3) {

    case 0:

        VAR_2 = VAR_2 | (old_val & 0xff00);

        break;

    case 1:

        VAR_2 = (VAR_2 << 8) | (old_val & 0x00ff);

        break;

    }

    dp8393x_writew(VAR_0, VAR_1 & ~0x1, VAR_2);

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)
{ uint16_t old_val = dp8393x_readw(VAR_0, VAR_1 & ~0x1); switch (VAR_1 & 3) { case 0:
VAR_2 = VAR_2 | (old_val & 0xff00); break; case 1:
VAR_2 = (VAR_2 << 8) | (old_val & 0x00ff); break; } dp8393x_writew(VAR_0, VAR_1 & ~0x1, VAR_2); }