Add support for ASM foreign files (.s) in TH (#16180)