Many of the Macintosh toolbox traps use the Pascal calling convention, documented in the pdf Mac OS Runtime Architectures from Apple, in chapter 11.
Some of the traps don't use this calling convention. These tend to be documented in Inside Mac (see my list of Apple Developer Documentation, and search for the word "download"). The documentation for such traps have a section labeled "ASSEMBLY-LANGUAGE INFORMATION".
Some of the traps don't use this calling convention. These tend to be documented in Inside Mac (see my list of Apple Developer Documentation, and search for the word "download"). The documentation for such traps have a section labeled "ASSEMBLY-LANGUAGE INFORMATION".