def stack_register?(reg)
      %w[esp ebp rsp rbp sp x29].include?(reg)
    end
def stack_register?(reg)
      %w[esp ebp rsp rbp sp x29].include?(reg)
    end
Checks if the register is a stack-related pointer.
 @param [String] reg
   Register's name.
 @return [Boolean]