Compiling asmFish on macOS I have been able to make a custom build of asmFish on Linux. However, I have been unable to do so on macOS. I've seen a Mac version of the FASM compiler on the Internet.  But when I tried using it for building it, it didn't generate a binary that could be run. 

I am running the latest macOS at time of writing. Any help appreciated.
asmFish is NOT the same engine as Stockfish, so the answer by Dave is wrong. The difference is that asmFish is written in x86 Assembly (~20% faster), while Stockfish in C++.
Here is an issue I opened to test basically the time fasmg did to compile asmFish. It was closed, however, because the latest fasmg version fails to compile asmFish. The latest working version is this one.
You can download the version you want, but this is not necessary. You just need to open a command line and clone the repository:
git clone -b master https://github.com/lantonov/asmFish.git

Then, run cd asmFish to enter the directory and make.bat to compile.
For what it's worth:

There are already MacOS binaries in the main repository. They are in the MacOS_binaries folder.

There is also an archive of the executables in the executables branch, which is rarely updated.

You can directly compile asmFish from MacOS from the command line just having the whole x86 folder and the fasmg file:
 fasmg &quot;x86\fish.asm&quot; &quot;asmFishX_type&quot; -e 1000 -i &quot;VERSION_OS='X'&quot; -i &quot;PEDANTIC = 1&quot; -i &quot;VERSION_POST = 'version'&quot;



Replace type and version with the version post you want (base, popcnt, bmi1 and bmi2)