R600: Move intrinsic lowering to separate functions