I have gotten iphone 3gs, but it was stuck in the boot loop. I got it into recovery mode at the moment. My goal is to unlock this iphone or at least restore it to to current ios version. I have no idea which ios version or firmware or baseband this phone is running. Can someone provide step by step instructions for me to restore and hopefully unlock this iphone without bricking it? Thank You.