A draft is created, and then the company's executives, their legal, the accountants, investment bankers, and investment banker's legal all get in a room and go page by page through the document for several days. The legal team stays up late making the edits each night. Then it gets submitted to the SEC for review, and you get comments from them that have to be addressed. You submit the revised document with responses to their comments and keep doing that until the SEC has no comments.
- Palantir: https://www.sec.gov/Archives/edgar/data/1321655/000119312520...
- Cloudflare: https://www.sec.gov/Archives/edgar/data/1477333/000119312519...
- Zoom: https://www.sec.gov/Archives/edgar/data/1585521/000119312519...
[1] https://www.sec.gov/Archives/edgar/data/1809122/000110465920...