be16toh
#define elf16toh(x) be16toh(x)
input = be16toh(input);
local.def = be16toh(basicp->def);
local.def = be16toh(diagp->def);
local.bsdes = be16toh((flags >> 16 & 0xffff));
local.dsdes = be16toh((flags & 0xffff));
if (be16toh(basic->def) != 1) /* No basic set entry, must be first */
*bsdes = be16toh(te->bsdes);
*dsdes = be16toh(te->dsdes);