perf branch: Fix interpretation of branch records