Properly save registers that are used in the bsort function to the stack, then restore them when done. Also remove redundant log messages.