(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _iperf
      body: 
        (command.BraceGroup
          children: [
            (C {(local)} {(cur)} {(prev)} {(words)} {(cword)} {(split)})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {(_init_completion)} {(-s)})
                (command.ControlFlow
                  token: (Token id:Id.ControlFlow_Return val:return span_id:30)
                )
              ]
            )
            (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: (Token id:Id.ControlFlow_Return val:return span_id:103)
                    )
                  ]
                  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: (Token id:Id.Op_LParen val:'(' span_id:116)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:118)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {(SQ (Token id:Id.Lit_Chars val:'k m K M' span_id:125))} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [115]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:139)
                    )
                  ]
                  spids: [109 112 142 -1]
                )
                (case_arm
                  pat_list: [{(-o)} {(--output)} {(-F)} {(--fileinput)}]
                  action: [
                    (C {(_filedir)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:158)
                    )
                  ]
                  spids: [145 152 161 -1]
                )
                (case_arm
                  pat_list: [{(-B)} {(--bind)}]
                  action: [
                    (C {(_available_interfaces)} {(-a)})
                    (C {(_ip_addresses)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:178)
                    )
                  ]
                  spids: [164 167 181 -1]
                )
                (case_arm
                  pat_list: [{(-c)} {(--client)}]
                  action: [
                    (C {(_known_hosts_real)} {(DQ ($ Id.VSub_DollarName '$cur'))})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:197)
                    )
                  ]
                  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: (Token id:Id.Op_LParen val:'(' span_id:210)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:212)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (SQ 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 'C D M S V'
                                                    span_id: 219
                                                  )
                                                )
                                              } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [209]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:233)
                    )
                  ]
                  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: (Token id:Id.Op_LParen val:'(' span_id:246)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:248)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {(SQ (Token id:Id.Lit_Chars val:C span_id:255))} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [245]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:269)
                    )
                  ]
                  spids: [239 242 272 -1]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {($ Id.VSub_DollarName '$split')})
                (command.ControlFlow
                  token: (Token id:Id.ControlFlow_Return val:return span_id:283)
                )
              ]
            )
            (C {(local)} {(i)} {(Id.Lit_VarLike 'filter=') (cat)})
            (command.ForEach
              iter_name: i
              iter_words: [
                {
                  (braced_var_sub
                    token: (Token id:Id.VSub_Name val:words span_id:306)
                    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 
                                        (Token
                                          id: Id.Lit_Chars
                                          val: 'sed -e /^Client.specific/,/^$/d'
                                          span_id: 331
                                        )
                                      )
                                    }
                                  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 
                                        (Token
                                          id: Id.Lit_Chars
                                          val: 'sed -e /^Server.specific/,/^$/d'
                                          span_id: 346
                                        )
                                      )
                                    }
                                  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 
                            (Token
                              id: Id.Lit_Chars
                              val: ' -e /--client/d -e /--server/d'
                              span_id: 373
                            )
                          )
                        }
                      spids: [371]
                    )
                  ]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:COMPREPLY)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (sh_array_literal
                        left: (Token id:Id.Op_LParen val:'(' span_id:379)
                        words: [
                          {
                            (command_sub
                              left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:381)
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} 
                                      {
                                        (SQ 
                                          (Token
                                            id: Id.Lit_Chars
                                            val: '$( "$1" --help 2>&1 | $filter | _parse_help - )'
                                            span_id: 390
                                          )
                                        )
                                      } {(--)} {(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)})
  ]
)