I arrived at the following piece of ARM assembly while debugging a Golang binary:
main.go:55 0x4a9300 3f1800f1 CMP $6, R1
main.go:60 0x4a9304 e1434139 MOVBU 80(RSP), R1
main.go:60 0x4a9308 210a00b4 CBZ R1, 81(PC)
main.go:60 0x4a930c a10a0054 BNE 85(PC)
What exactly is happening here? In particular, I'm confused of the flow as I'm not sure if BNE
refers to the the CMP
instruction.