Green’s Dictionary of Slang

cum v.

[often found, e.g. in written pornography, as an alternative to come v.1 ; the sp. enhances the sexual aspect of the otherwise common word]

[1950s+] to achieve orgasm.