I can't guess the before or after settings but it's pretty well know if the SATA controller when changed from AHCI to IDE Emulation or back or to other will cause a boot loop.

Get back in to the BIOS and try "Defaults." If that doesn't work, look at drive controller options and set them to when it worked.