Substituted tetrahydrothienopyridines corresponding to formula (1) in which A1 through A3 and R1 through R12 have defined meanings, pharmaceutical compositions comprising such compounds, a process for preparing such compounds and the use of such compounds in treatment or inhibition of conditions mediated by the KCNQ 2/3 K+ channel, e.g., pain.