regfio: Update code near recent changes to match README.Coding