(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _iperf
      body: 
        (BraceGroup
          children: [
            (C {<local>} {<cur>} {<prev>} {<words>} {<cword>} {<split>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<_init_completion>} {<-s>})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [
                    {<-h>}
                    {<--help>}
                    {<-v>}
                    {<--version>}
                    {<-i>}
                    {<--interval>}
                    {<-l>}
                    {<--len>}
                    {<-p>}
                    {<--port>}
                    {<-w>}
                    {<--window>}
                    {<-M>}
                    {<--mss>}
                    {<-b>}
                    {<--bandwidth>}
                    {<-n>}
                    {<--num>}
                    {<-t>}
                    {<--time>}
                    {<-L>}
                    {<--listenport>}
                    {<-P>}
                    {<--parallel>}
                    {<-T>}
                    {<--ttl>}
                    {<-Z>}
                    {<--linux-congestion>}
                  ]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)]
                  spids: [41 100 106 -1]
                )
                (case_arm
                  pat_list: [{<-f>} {<--format>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} {(SQ <'k m K M'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [115]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [109 112 142 -1]
                )
                (case_arm
                  pat_list: [{<-o>} {<--output>} {<-F>} {<--fileinput>}]
                  action: [(C {<_filedir>}) (command.ControlFlow token:<Id.ControlFlow_Return return>)]
                  spids: [145 152 161 -1]
                )
                (case_arm
                  pat_list: [{<-B>} {<--bind>}]
                  action: [
                    (C {<_available_interfaces>} {<-a>})
                    (C {<_ip_addresses>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [164 167 181 -1]
                )
                (case_arm
                  pat_list: [{<-c>} {<--client>}]
                  action: [
                    (C {<_known_hosts_real>} {(DQ ($ Id.VSub_DollarName '$cur'))})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [184 187 200 -1]
                )
                (case_arm
                  pat_list: [{<-x>} {<--reportexclude>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} {(SQ <'C D M S V'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [209]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [203 206 236 -1]
                )
                (case_arm
                  pat_list: [{<-y>} {<--reportstyle>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} {(SQ <C>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [245]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [239 242 272 -1]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {($ Id.VSub_DollarName '$split')})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (C {<local>} {<i>} {<Id.Lit_VarLike 'filter='> <cat>})
            (command.ForEach
              iter_name: i
              iter_words: [
                {
                  (braced_var_sub
                    token: <Id.VSub_Name words>
                    bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                  )
                }
              ]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {($ Id.VSub_DollarName '$i')}
                      arms: [
                        (case_arm
                          pat_list: [{<-s>} {<--server>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:filter)
                                  op: assign_op.Equal
                                  rhs: {(SQ <'sed -e /^Client.specific/,/^$/d'>)}
                                  spids: [329]
                                )
                              ]
                            )
                          ]
                          spids: [323 326 335 -1]
                        )
                        (case_arm
                          pat_list: [{<-c>} {<--client>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:filter)
                                  op: assign_op.Equal
                                  rhs: {(SQ <'sed -e /^Server.specific/,/^$/d'>)}
                                  spids: [344]
                                )
                              ]
                            )
                          ]
                          spids: [338 341 350 -1]
                        )
                      ]
                    )
                  ]
                )
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.Binary
                      op_id: Id.BoolBinary_GlobNEqual
                      left: {($ Id.VSub_DollarName '$filter')}
                      right: {<cat>}
                    )
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:filter)
                      op: assign_op.PlusEqual
                      rhs: {(SQ <' -e /--client/d -e /--server/d'>)}
                      spids: [371]
                    )
                  ]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:COMPREPLY)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (sh_array_literal
                        left: <Id.Op_LParen _>
                        words: [
                          {
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (C {<compgen>} {<-W>} 
                                  {(SQ <'$( "$1" --help 2>&1 | $filter | _parse_help - )'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                )
                            )
                          }
                        ]
                      )
                    }
                  spids: [378]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.Binary
                      op_id: Id.BoolBinary_GlobDEqual
                      left: {($ Id.VSub_DollarName '$COMPREPLY')}
                      right: {<Id.Lit_Other '*'> <Id.BoolBinary_GlobEqual '='>}
                    )
                )
                (C {<compopt>} {<-o>} {<nospace>})
              ]
            )
          ]
        )
    )
    (C {<complete>} {<-F>} {<_iperf>} {<iperf>})
  ]
)