(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _brctl
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[13])
                  op: Equal
                  spids: [13]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[15])
                  op: Equal
                  spids: [15]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[17])
                  op: Equal
                  spids: [17]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[19])
                  op: Equal
                  spids: [19]
                )
              ]
              spids: [11]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:command spids:[32])
                  op: Equal
                  rhs: 
                    {
                      (word_part.BracedVarSub
                        token: <VSub_Name words>
                        bracket_op: 
                          (bracket_op.ArrayIndex
                            expr: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                          )
                        spids: [33 38]
                      )
                    }
                  spids: [32]
                )
              ]
              spids: [30]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$cword')}
              arms: [
                (case_arm
                  pat_list: [{(1)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[53])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (DQ ('addbr delbr addif delif setageing\n') 
                                                  (
'                setbridgeprio setfd sethello setmaxage setpathcost setportprio\n'
                                                  ) ('                show showmacs showstp stp')
                                                )
                                              } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [56 74]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [53]
                        )
                      ]
                      spids: [53]
                    )
                  ]
                  spids: [49 50 79 16777215]
                )
                (case_arm
                  pat_list: [{(2)}]
                  action: [
                    (command.Case
                      to_match: {($ VSub_DollarName '$command')}
                      arms: [
                        (case_arm
                          pat_list: [{(show)}]
                          spids: [93 94 97 16777215]
                        )
                        (case_arm
                          pat_list: [{(Lit_Other '*')}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[104])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArrayLiteralPart
                                        words: [
                                          {
                                            (word_part.CommandSubPart
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {
                                                        (DQ 
                                                          (word_part.CommandSubPart
                                                            command_list: 
                                                              (command.CommandList
                                                                children: [
                                                                  (command.Pipeline
                                                                    children: [
                                                                      (C {($ VSub_Number '$1')} 
                                                                        {(show)}
                                                                      )
                                                                      (C {(awk)} 
                                                                        {(SQ <'NR>1 {print $1}'>)}
                                                                      )
                                                                    ]
                                                                    negated: F
                                                                  )
                                                                ]
                                                              )
                                                            left_token: <Left_CommandSub '$('>
                                                            spids: [114 129]
                                                          )
                                                        )
                                                      } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [107 138]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [104]
                                )
                              ]
                              spids: [104]
                            )
                          ]
                          spids: [100 101 16777215 143]
                        )
                      ]
                      spids: [86 90 143]
                    )
                  ]
                  spids: [82 83 146 16777215]
                )
                (case_arm
                  pat_list: [{(3)}]
                  action: [
                    (command.Case
                      to_match: {($ VSub_DollarName '$command')}
                      arms: [
                        (case_arm
                          pat_list: [{(addif)} {(delif)}]
                          action: [(C {(_configured_interfaces)})]
                          spids: [160 163 169 16777215]
                        )
                        (case_arm
                          pat_list: [{(stp)}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[176])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArrayLiteralPart
                                        words: [
                                          {
                                            (word_part.CommandSubPart
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} {(SQ <'on off'>)} {(--)} 
                                                      {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [179 195]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [176]
                                )
                              ]
                              spids: [176]
                            )
                          ]
                          spids: [172 173 200 16777215]
                        )
                      ]
                      spids: [153 157 203]
                    )
                  ]
                  spids: [149 150 206 16777215]
                )
              ]
              spids: [42 46 209]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (C {(complete)} {(-F)} {(_brctl)} {(-o)} {(default)} {(brctl)})
  ]
)