Import kotasm

Import / rename from
https://github.com/gwicke/TemplatePerf/commit/7b694f0eaf4f80cad45dcc49fcef74a041c8cbe2