For the test case I'm using one from Ghidra's test suite, which is available here
It was compiled on my macOS machine with the following command:
$ clang -o decomp -O1 -g decomp.c -Wall -Wshadow -Wextra -std=c17 -arch arm64e
Some metadata:
~/public-src/ghidra/Ghidra/Test/TestResources/src/cpp/decomp(master*) » file decomp
decomp: Mach-O 64-bit executable arm64e
~/public-src/ghidra/Ghidra/Test/TestResources/src/cpp/decomp(master*) » ll -l decomp
-rwxr-xr-x 1 ryan staff 34K Feb 1 13:22 decomp
I didn't fix up either decompilation, this is the default settings.