Amo order or pre session order order

Which order to sell gets executed 1st? Amo or pre session order

It depends on price/time priority, also in pre open stop loss orders/IOC validity or disclosed quantity orders are not allowed. Check this to know how pre open works.