Retirement tax questions

IRA loans are forbidden by law.  You took a distribution and then rolled it back.