Older MacBooks are Intel, and newer MacBooks claim to have an emulation layer faster than native x86. If nothing else, it's the machine the author had, and it's some data point.
They said it was an ARM MacBook
I wrote the snippets in x86 asm because I assumed that more people are familiar with it than ARM. Also I ran them on an x86 processor as well.