(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:tid)
          op: assign_op.Equal
          rhs: {(DQ <'cipher speed'>)}
          spids: [7]
        )
      ]
    )
    (command.ShFunction
      name: getbytes
      body: 
        (BraceGroup
          children: [
            (C {<sed>} {<-n>} {<-e>} {(SQ <'/transferred/s/.*secs (\\(.* bytes.sec\\).*/\\1/p'>)} {<-e>} 
              {(SQ <'/copied/s/.*s, \\(.* MB.s\\).*/\\1/p'>)}
            )
          ]
        )
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:tries)
          op: assign_op.Equal
          rhs: {(DQ <'1 2'>)}
          spids: [42]
        )
      ]
    )
    (command.ForEach
      iter_name: c
      iter_words: [
        {
          (command_sub
            left_token: <Id.Left_Backtick '`'>
            child: (C {(${ Id.VSub_Name SSH)} {<-Q>} {<cipher>})
          )
        }
      ]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.Sentence
              child: 
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:n)
                      op: assign_op.Equal
                      rhs: {<0>}
                      spids: [69]
                    )
                  ]
                )
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence
              child: 
                (command.ForEach
                  iter_name: m
                  iter_words: [
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: (C {(${ Id.VSub_Name SSH)} {<-Q>} {<mac>})
                      )
                    }
                  ]
                  do_arg_iter: F
                  body: 
                    (command.DoGroup
                      children: [
                        (C {<trace>} 
                          {
                            (DQ <'proto 2 cipher '> ($ Id.VSub_DollarName '$c') <' mac '> 
                              ($ Id.VSub_DollarName '$m')
                            )
                          }
                        )
                        (command.ForEach
                          iter_name: x
                          iter_words: [{($ Id.VSub_DollarName '$tries')}]
                          do_arg_iter: F
                          body: 
                            (command.DoGroup
                              children: [
                                (C {<printf>} {(DQ <'%-60s'>)} 
                                  {
                                    (DQ ($ Id.VSub_DollarName '$c') <'/'> ($ Id.VSub_DollarName '$m') 
                                      <':'>
                                    )
                                  }
                                )
                                (command.Pipeline
                                  children: [
                                    (command.Subshell
                                      child: 
                                        (command.Simple
                                          words: [
                                            {(${ Id.VSub_Name SSH)}
                                            {<-o>}
                                            {(SQ <'compression no'>)}
                                            {<-F>}
                                            {($ Id.VSub_DollarName '$OBJ') <'/ssh_proxy'>}
                                            {<-2>}
                                            {<-m>}
                                            {($ Id.VSub_DollarName '$m')}
                                            {<-c>}
                                            {($ Id.VSub_DollarName '$c')}
                                            {<somehost>}
                                            {<exec>}
                                            {<sh>}
                                            {<-c>}
                                            {
                                              (word_part.EscapedLiteral
                                                token: <Id.Lit_EscapedChar '\\\''>
                                              ) (DQ <'dd of=/dev/null obs=32k'>) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>)
                                            }
                                          ]
                                          redirects: [
                                            (redir
                                              op: <Id.Redir_Less '<'>
                                              loc: (redir_loc.Fd fd:0)
                                              arg: {(${ Id.VSub_Name DATA)}
                                            )
                                          ]
                                          do_fork: T
                                        )
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_GreatAnd '2>&'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<1>}
                                        )
                                      ]
                                    )
                                    (C {<getbytes>})
                                  ]
                                  negated: F
                                )
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (command.Sentence
                                              child: 
                                                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '$?')} 
                                                  {<-ne>} {<0>} {<Id.Lit_RBracket ']'>}
                                                )
                                              terminator: <Id.Op_Semi _>
                                            )
                                          ]
                                        )
                                      action: [
                                        (C {<fail>} 
                                          {
                                            (DQ <'ssh -2 failed with mac '> 
                                              ($ Id.VSub_DollarName '$m') <' cipher '> ($ Id.VSub_DollarName '$c')
                                            )
                                          }
                                        )
                                      ]
                                      spids: [195 208]
                                    )
                                  ]
                                )
                              ]
                            )
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.Pipeline
                                          children: [
                                            (C {(${ Id.VSub_Name SSH)} {<-Q>} {<cipher-auth>})
                                            (command.Simple
                                              words: [
                                                {<grep>}
                                                {
                                                  (DQ <'^'> (${ Id.VSub_Name c) 
                                                    (word_part.EscapedLiteral
                                                      token: <Id.Lit_EscapedChar '\\$'>
                                                    )
                                                  )
                                                }
                                              ]
                                              redirects: [
                                                (redir
                                                  op: <Id.Redir_Great '>'>
                                                  loc: (redir_loc.Fd fd:1)
                                                  arg: {<'/dev/null'>}
                                                )
                                                (redir
                                                  op: <Id.Redir_GreatAnd '2>&'>
                                                  loc: (redir_loc.Fd fd:2)
                                                  arg: {<1>}
                                                )
                                              ]
                                              do_fork: T
                                            )
                                          ]
                                          negated: F
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                              spids: [231 261]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:n)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_Backtick '`'>
                                    child: 
                                      (C {<expr>} {($ Id.VSub_DollarName '$n')} {<Id.Lit_Other '+'>} 
                                        {<1>}
                                      )
                                  )
                                }
                              spids: [270]
                            )
                          ]
                        )
                      ]
                    )
                )
              terminator: <Id.Op_Semi _>
            )
          ]
        )
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(command.Sentence child:(C {<ssh_version>} {<1>}) terminator:<Id.Op_Semi _>)]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:ciphers)
                  op: assign_op.Equal
                  rhs: {(DQ <'3des blowfish'>)}
                  spids: [299]
                )
              ]
            )
          ]
          spids: [289 296]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:ciphers)
              op: assign_op.Equal
              rhs: {(DQ )}
              spids: [307]
            )
          ]
        )
      ]
    )
    (command.ForEach
      iter_name: c
      iter_words: [{($ Id.VSub_DollarName '$ciphers')}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (C {<trace>} {(DQ <'proto 1 cipher '> ($ Id.VSub_DollarName '$c'))})
            (command.ForEach
              iter_name: x
              iter_words: [{($ Id.VSub_DollarName '$tries')}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (C {<printf>} {(DQ <'%-60s'>)} {(DQ ($ Id.VSub_DollarName '$c') <':'>)})
                    (command.Pipeline
                      children: [
                        (command.Subshell
                          child: 
                            (command.Simple
                              words: [
                                {(${ Id.VSub_Name SSH)}
                                {<-o>}
                                {(SQ <'compression no'>)}
                                {<-F>}
                                {($ Id.VSub_DollarName '$OBJ') <'/ssh_proxy'>}
                                {<-1>}
                                {<-c>}
                                {($ Id.VSub_DollarName '$c')}
                                {<somehost>}
                                {<exec>}
                                {<sh>}
                                {<-c>}
                                {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>) 
                                  (DQ <'dd of=/dev/null obs=32k'>) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>)
                                }
                              ]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Less '<'>
                                  loc: (redir_loc.Fd fd:0)
                                  arg: {(${ Id.VSub_Name DATA)}
                                )
                              ]
                              do_fork: T
                            )
                          redirects: [
                            (redir
                              op: <Id.Redir_GreatAnd '2>&'>
                              loc: (redir_loc.Fd fd:2)
                              arg: {<1>}
                            )
                          ]
                        )
                        (C {<getbytes>})
                      ]
                      negated: F
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '$?')} {<-ne>} {<0>} 
                                      {<Id.Lit_RBracket ']'>}
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<fail>} 
                              {(DQ <'ssh -1 failed with cipher '> ($ Id.VSub_DollarName '$c'))}
                            )
                          ]
                          spids: [416 429]
                        )
                      ]
                    )
                  ]
                )
            )
          ]
        )
    )
  ]
)