In section Your first kernel debugging, the book runs the following command:
llvm-objdump -d kernel.elf
However, llvm-objdump is not installed and the book does not tell how to.
In MacOS, gobjdump should be used. It is installed as part of brew install binutils. Unfortunately, brew does not create a soft link of the binary inside the default binary path (/opt/homebrew/bin). You should run:
$ cd /opt/homebrew/bin
$ ls -l ../Cellar/binutils/<version>/bin/gobjdump
$ link ../Cellar/binutils/<version>/bin/gobjdump gobjdump
Thanks to Steve Lau