Select some larger part of the disassembled binary, e.g:
Then in bar, press Search -> For Matching Instruction -> Exclude Operands, as the mnemonic typically don't change, the operands can change every software recompilation, so we want exclude them from searching to have more generic signature.
In this case Ghidra generated pattern in bitwise mode:
011111.. ........ .....000 01010000 101100.. ........ ........ ........ 100010.. ........ ........ ........ 011111.. ........ .....001 11010110 000111.. ........ ........ ........ 010101.. ........ ........ .......0 011111.. ........ .....000 01010000 101100.. ........ ........ ........ 100010.. ........ ........ ........ 011111.. ........ .....001 11010110 000111.. ........ ........ ........ 010101.. ........ ........ .......0 011111.. ........ .....000 01010000
Select full pattern and copy it, then in second Ghidra window where you have disassembled e.g. 3S software, Press "S" and paste the pattern then search it.
You should get only one result and it should be exactly same code as previous.
Then do all the rest as ASR Disable example.