split code in another function, for easier testing
additional testing for i386
only test final result, as other arches
also test unknown fields
wrap long lines
drop unused variable
clearer variable names