I want to write a blogpost / record a screencast about macOS opensource components. I was going to decompile those opensource components and I am not sure if it would be legal. MacOS software license explicitly forbids any OS decompilation, but also mentions that Open Source Component licenses override that limitation. MacOS components like xnu or dyld are licensed under Apple Public Software License, which is open-source license without any restriction for decompilation. Is it legal to decompile macOS executables, whose source code is already available at opensource.apple.com?
Software License Agreement For macOS Big Sur states that:
N. No Reverse Engineering. You may not (…) decompile, reverse engineer, disassemble (…) the Apple Software (…) (except as and only to the extent any foregoing restriction is prohibited by applicable law or by licensing terms governing use of Open-Sourced Components that may be included with the Apple Software).
Apple Public Software License in turn states that:
1.7 "Original Code" means (…) (b) the object code compiled from such Source Code and originally made available by Apple under this License.
2.1 (…) You may use, reproduce, display, perform, internally distribute within Your organization, and Externally Deploy verbatim, unmodified copies of the Original Code, for commercial or non-commercial purposes