(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _tshark
      body: 
        (BraceGroup
          children: [
            (C {<local>} {<cur>} {<prev>} {<words>} {<cword>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<_init_completion>} {<-n>} {<Id.Lit_Colon ':'>})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [
                    {<-f>}
                    {<-s>}
                    {<-B>}
                    {<-D>}
                    {<-L>}
                    {<-c>}
                    {<-R>}
                    {<-N>}
                    {<-d>}
                    {<-C>}
                    {<-e>}
                    {<-E>}
                    {<-z>}
                    {<-h>}
                    {<-v>}
                    {<-o>}
                    {<-K>}
                  ]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)]
                  spids: [41 74 80 -1]
                )
                (case_arm
                  pat_list: [{<-i>}]
                  action: [
                    (C {<_available_interfaces>} {<-a>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [83 84 95 -1]
                )
                (case_arm
                  pat_list: [{<-y>}]
                  action: [
                    (C {<local>} {<opts>} {<i>})
                    (command.ForExpr
                      init: 
                        (arith_expr.BinaryAssign
                          op_id: Id.Arith_Equal
                          left: <Id.Lit_ArithVarLike i>
                          right: 
                            (arith_expr.Binary
                              op_id: Id.Arith_Minus
                              left: 
                                {
                                  (braced_var_sub
                                    token: <Id.VSub_Name words>
                                    prefix_op: (Id.VSub_Pound)
                                    bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                  )
                                }
                              right: {<Id.Lit_Digits 1>}
                            )
                        )
                      cond: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Great
                          left: <Id.Lit_ArithVarLike i>
                          right: {<Id.Lit_Digits 0>}
                        )
                      update: 
                        (arith_expr.UnaryAssign
                          op_id: Id.Node_PostDMinus
                          child: <Id.Lit_ArithVarLike i>
                        )
                      body: 
                        (command.DoGroup
                          children: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobDEqual
                                                  left: 
                                                    {
                                                      (braced_var_sub
                                                        token: <Id.VSub_Name words>
                                                        bracket_op: 
                                                          (bracket_op.ArrayIndex
                                                            expr: <Id.Lit_ArithVarLike i>
                                                          )
                                                      )
                                                    }
                                                  right: {<-i>}
                                                )
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: (sh_lhs_expr.Name name:opts)
                                          op: assign_op.PlusEqual
                                          rhs: 
                                            {
                                              (DQ <'-i '> 
                                                (braced_var_sub
                                                  token: <Id.VSub_Name words>
                                                  bracket_op: 
                                                    (bracket_op.ArrayIndex
                                                      expr: 
                                                        (arith_expr.Binary
                                                          op_id: Id.Arith_Plus
                                                          left: <Id.Lit_ArithVarLike i>
                                                          right: {<Id.Lit_Digits 1>}
                                                        )
                                                    )
                                                )
                                              )
                                            }
                                          spids: [164]
                                        )
                                      ]
                                    )
                                    (command.ControlFlow
                                      token: <Id.ControlFlow_Break break>
                                    )
                                  ]
                                  spids: [143 161]
                                )
                              ]
                            )
                          ]
                        )
                    )
                    (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>} 
                                          {
                                            (DQ 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.Pipeline
                                                    children: [
                                                      (command.Simple
                                                        words: [
                                                          {(DQ ($ Id.VSub_Number '$1'))}
                                                          {($ Id.VSub_DollarName '$opts')}
                                                          {<-L>}
                                                        ]
                                                        redirects: [
                                                          (redir
                                                            op: <Id.Redir_GreatAnd '2>&'>
                                                            loc: (redir_loc.Fd fd:2)
                                                            arg: {<1>}
                                                          )
                                                        ]
                                                        do_fork: T
                                                      )
                                                      (C {<awk>} {(SQ <'/^  / { print $1 }'>)})
                                                    ]
                                                    negated: F
                                                  )
                                              )
                                            )
                                          } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [187]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [98 99 237 -1]
                )
                (case_arm
                  pat_list: [{<-a>} {<-b>}]
                  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 <'duration: filesize: files:'>)} 
                                          {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [246]
                        )
                      ]
                    )
                    (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.Lit_Colon ':'>}
                            )
                        )
                        (C {<compopt>} {<-o>} {<nospace>})
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [240 243 295 -1]
                )
                (case_arm
                  pat_list: [{<-r>}]
                  action: [
                    (C {<_filedir>} {<pcap>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [298 299 310 -1]
                )
                (case_arm
                  pat_list: [{<-H>}]
                  action: [(C {<_filedir>}) (command.ControlFlow token:<Id.ControlFlow_Return return>)]
                  spids: [313 314 323 -1]
                )
                (case_arm
                  pat_list: [{<-w>}]
                  action: [
                    (C {<_filedir>})
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.Binary
                              op_id: Id.BoolBinary_GlobDEqual
                              left: {($ Id.VSub_DollarName '$cur')}
                              right: {(word_part.ExtGlob op:<Id.ExtGlob_At '@('> arms:[{} {<->}])}
                            )
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:COMPREPLY)
                              op: assign_op.PlusEqual
                              rhs: {(sh_array_literal left:<Id.Op_LParen _> words:[{<->}])}
                              spids: [348]
                            )
                          ]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [326 327 359 -1]
                )
                (case_arm
                  pat_list: [{<-F>}]
                  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>} 
                                          {
                                            (DQ 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.Pipeline
                                                    children: [
                                                      (command.Simple
                                                        words: [{(DQ ($ Id.VSub_Number '$1'))} {<-F>}]
                                                        redirects: [
                                                          (redir
                                                            op: <Id.Redir_GreatAnd '2>&'>
                                                            loc: (redir_loc.Fd fd:2)
                                                            arg: {<1>}
                                                          )
                                                        ]
                                                        do_fork: T
                                                      )
                                                      (C {<awk>} {(SQ <'/^  / { print $1 }'>)})
                                                    ]
                                                    negated: F
                                                  )
                                              )
                                            )
                                          } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [366]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [362 363 414 -1]
                )
                (case_arm
                  pat_list: [{<-O>}]
                  action: [
                    (command.Sentence
                      child: (C {<local>} {<Id.Lit_VarLike 'prefix='>})
                      terminator: <Id.Op_Semi _>
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.Binary
                              op_id: Id.BoolBinary_GlobDEqual
                              left: {($ Id.VSub_DollarName '$cur')}
                              right: {<Id.Lit_Other '*'> <Id.Lit_Other ','> <Id.Lit_Other '*'>}
                            )
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:prefix)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (DQ 
                                    (braced_var_sub
                                      token: <Id.VSub_Name cur>
                                      suffix_op: 
                                        (suffix_op.Unary
                                          tok: <Id.VOp1_Percent '%'>
                                          arg_word: {<','> <Id.Lit_Other '*'>}
                                        )
                                    ) <','>
                                  )
                                }
                              spids: [440]
                            )
                          ]
                        )
                      ]
                    )
                    (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>} {<-P>} {(DQ ($ Id.VSub_DollarName '$prefix'))} 
                                          {<-W>} 
                                          {
                                            (DQ 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.Pipeline
                                                    children: [
                                                      (command.Simple
                                                        words: [
                                                          {(DQ ($ Id.VSub_Number '$1'))}
                                                          {<-G>}
                                                          {<protocols>}
                                                        ]
                                                        redirects: [
                                                          (redir
                                                            op: <Id.Redir_GreatAnd '2>&'>
                                                            loc: (redir_loc.Fd fd:2)
                                                            arg: {<1>}
                                                          )
                                                        ]
                                                        do_fork: T
                                                      )
                                                      (C {<cut>} {<-f>} {<3>})
                                                    ]
                                                    negated: F
                                                  )
                                              )
                                            )
                                          } {<-->} 
                                          {
                                            (DQ 
                                              (braced_var_sub
                                                token: <Id.VSub_Name cur>
                                                suffix_op: 
                                                  (suffix_op.Unary
                                                    tok: <Id.VOp1_DPound '##'>
                                                    arg_word: {<Id.Lit_Other '*'> <','>}
                                                  )
                                              )
                                            )
                                          }
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [452]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [417 418 515 -1]
                )
                (case_arm
                  pat_list: [{<-T>}]
                  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 <'ps text pdml psml fields'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [526]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [518 519 553 -1]
                )
                (case_arm
                  pat_list: [{<-t>}]
                  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 <'ad a r d dd e'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [564]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [556 557 591 -1]
                )
                (case_arm
                  pat_list: [{<-u>}]
                  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 <'s hms'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [602]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [594 595 629 -1]
                )
                (case_arm
                  pat_list: [{<-W>}]
                  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 <n>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [636]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [632 633 663 -1]
                )
                (case_arm
                  pat_list: [{<-X>}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {($ Id.VSub_DollarName '$cur')}
                                          right: {<lua_script> <Id.Lit_Colon ':'> <Id.Lit_Other '*'>}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:cur)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (braced_var_sub
                                        token: <Id.VSub_Name cur>
                                        suffix_op: 
                                          (suffix_op.Unary
                                            tok: <Id.VOp1_Pound '#'>
                                            arg_word: {<Id.Lit_Other '*'> <':'>}
                                          )
                                      )
                                    }
                                  spids: [688]
                                )
                              ]
                            )
                            (C {<_filedir>} {<lua>})
                          ]
                          spids: [670 685]
                        )
                      ]
                      else_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 <'lua_script:'>)} {<-->} 
                                              {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [705]
                            )
                          ]
                        )
                        (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.Lit_Colon ':'>}
                                )
                            )
                            (C {<compopt>} {<-o>} {<nospace>})
                          ]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [666 667 755 -1]
                )
                (case_arm
                  pat_list: [{<-G>}]
                  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>} 
                                          {
                                            (DQ 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.Pipeline
                                                    children: [
                                                      (C {(DQ ($ Id.VSub_Number '$1'))} {<-G>} 
                                                        {<Id.Lit_QMark '?'>}
                                                      )
                                                      (C {<awk>} 
                                                        {
                                                          (SQ <'/^[ \\t]*-G / \\\n'> 
                                                            <
'                     { sub("^[[]","",$2); sub("[]]$","",$2); print $2 }'
                                                            >
                                                          )
                                                        }
                                                      )
                                                    ]
                                                    negated: F
                                                  )
                                              )
                                            )
                                          } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [762]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [758 759 812 -1]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                                  right: {<-> <Id.Lit_Other '*'>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  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 <'$( _parse_help "$1" -h )'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [840]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [821 837]
                )
              ]
            )
          ]
        )
    )
    (C {<complete>} {<-F>} {<_tshark>} {<tshark>})
  ]
)