okay so i did the same thing and was able to fix this.... it is a long tedious task that takes time and will wipe your phone so remove the sd card.
lets get started. my phone was stuck at the att logo. i tried to use kies but it failed everytime and eventually my phone stuck at the emergency...