static const IntelHDAReg *intel_hda_reg_find(IntelHDAState *d, target_phys_addr_t addr)

{

    const IntelHDAReg *reg;



    if (addr >= sizeof(regtab)/sizeof(regtab[0])) {

        goto noreg;

    }

    reg = regtab+addr;

    if (reg->name == NULL) {

        goto noreg;

    }

    return reg;



noreg:

    dprint(d, 1, "unknown register, addr 0x%x\n", (int) addr);

    return NULL;

}

static const IntelHDAReg *intel_hda_reg_find(IntelHDAState *d, target_phys_addr_t addr)

{

    const IntelHDAReg *reg;



    if (addr >= sizeof(regtab)/sizeof(regtab[0])) {

        goto noreg;

    }

    reg = regtab+addr;

    if (reg->name == NULL) {

        goto noreg;

    }

    return reg;



noreg:

    dprint(d, 1, "unknown register, addr 0x%x\n", (int) addr);

    return NULL;

}

static const IntelHDAReg *FUNC_0(IntelHDAState *d, target_phys_addr_t addr)

{

    const IntelHDAReg *VAR_0;



    if (addr >= sizeof(regtab)/sizeof(regtab[0])) {

        goto noreg;

    }

    VAR_0 = regtab+addr;

    if (VAR_0->name == NULL) {

        goto noreg;

    }

    return VAR_0;



noreg:

    dprint(d, 1, "unknown register, addr 0x%x\n", (int) addr);

    return NULL;

}

static const IntelHDAReg *FUNC_0(IntelHDAState *d, target_phys_addr_t addr)
{ const IntelHDAReg *VAR_0; if (addr >= sizeof(regtab)/sizeof(regtab[0])) { goto noreg; } VAR_0 = regtab+addr; if (VAR_0->name == NULL) { goto noreg; } return VAR_0; noreg:
dprint(d, 1, "unknown register, addr 0x%x\n", (int) addr); return NULL; }