Honestly that’s one of the best potential uses for LLMs, translating code that was cleverly designed by brilliant humans into lower level languages.
I don’t trust LLM API design in the slightest, but they are decent at the brute force coding part, especially if you can replicate the testing suite.