They patrol borders , analyze U.S. intelligence , respond to emergencies and guard against terrorism , among other tasks .