In older macOS releases ending with Snow Leopard. You can use Apple's former build utility called Darwin Build to fetch releases of Apple sources here is a link to macOS Forge. You can still use Bash for Windows or the Git For Windows SDK. and step 6 & 7 on Windows.
- install darwinbuild
mkdir 9G55 && cd 9G55
sudo -s
darwinbuild -init 9G55
for X in $(darwinxref version '*' | cut -d '-' -f 1); do darwinbuild -fetch $X; done
mkdir AllSource
for X in Sources/*; do tar zxvf $X -C AllSource/; done
You can also boot Darwin 8.0 Panther on 2005 x86 hardware.