fixup: add missing #undef
Extract LBA to C/H/S calculations (and vice versa) into separate functions.