Recently https://github.com/llvm/llvm-project/pull/120991 broke a couple of tests. Also `macho-merged-funcs-dwarf.yaml` was already flaky due to some non-determinism issues. Fixing the previous code to not break tests and modifying `macho-merged-funcs-dwarf.yaml` to fix the non-determinism (which will be resolved later).