(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _wvdial
      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:<Id.ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [{<--config>}]
                  action: [
                    (C {<_filedir>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [41 42 53 -1]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {($ Id.VSub_DollarName '$split')})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (C {<local>} {<config>} {<i>} 
              {<Id.Lit_VarLike 'IFS='> 
                (single_quoted
                  left: <Id.Left_SingleQuoteC "$'">
                  tokens: [<Id.Char_OneChar '\\n'>]
                )
              }
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$cur')}
              arms: [
                (case_arm
                  pat_list: [{<-> <Id.Lit_Star '*'>}]
                  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 '$('>
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {<compgen>} {<-W>} {(SQ <'$( _parse_help "$1" )'>)} {<-->} 
                                              {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [93]
                        )
                      ]
                    )
                    (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>})
                      ]
                    )
                  ]
                  spids: [88 90 137 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:config)
                          op: assign_op.Equal
                          rhs: 
                            {(DQ </etc/wvdial.conf>) 
                              (single_quoted
                                left: <Id.Left_SingleQuoteC "$'">
                                tokens: [<Id.Char_OneChar '\\n'>]
                              ) (DQ ($ Id.VSub_DollarName '$HOME') </.wvdialrc>)
                            }
                          spids: [148]
                        )
                      ]
                    )
                    (command.ForExpr
                      init: 
                        (arith_expr.BinaryAssign
                          op_id: Id.Arith_Equal
                          left: (sh_lhs_expr.Name name:i)
                          right: (arith_expr.ArithWord w:{<Id.Lit_Digits 1>})
                        )
                      cond: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Less
                          left: (arith_expr.VarRef token:<Id.Lit_ArithVarLike i>)
                          right: (arith_expr.VarRef token:<Id.Lit_ArithVarLike cword>)
                        )
                      update: 
                        (arith_expr.UnaryAssign
                          op_id: Id.Node_PostDPlus
                          child: (sh_lhs_expr.Name name:i)
                        )
                      body: 
                        (command.DoGroup
                          children: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.Binary
                                              op_id: Id.BoolBinary_GlobDEqual
                                              left: 
                                                {
                                                  (DQ 
                                                    (braced_var_sub
                                                      token: <Id.VSub_Name words>
                                                      bracket_op: 
                                                        (bracket_op.ArrayIndex
                                                          expr: 
                                                            (arith_expr.VarRef
                                                              token: <Id.Lit_ArithVarLike i>
                                                            )
                                                        )
                                                    )
                                                  )
                                                }
                                              right: {(DQ <--config>)}
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: (sh_lhs_expr.Name name:config)
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (braced_var_sub
                                                token: <Id.VSub_Name words>
                                                bracket_op: 
                                                  (bracket_op.ArrayIndex
                                                    expr: 
                                                      (arith_expr.Binary
                                                        op_id: Id.Arith_Plus
                                                        left: 
                                                          (arith_expr.VarRef
                                                            token: <Id.Lit_ArithVarLike i>
                                                          )
                                                        right: 
                                                          (arith_expr.ArithWord
                                                            w: {<Id.Lit_Digits 1>}
                                                          )
                                                      )
                                                  )
                                              )
                                            }
                                          spids: [216]
                                        )
                                      ]
                                    )
                                    (command.ControlFlow
                                      token: <Id.ControlFlow_Break break>
                                    )
                                  ]
                                  spids: [191 213]
                                )
                              ]
                            )
                          ]
                        )
                    )
                    (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 '$('>
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (command.Pipeline
                                              children: [
                                                (command.Simple
                                                  words: [
                                                    {<sed>}
                                                    {<-ne>}
                                                    {
                                                      (DQ <'s|^'> <Id.Lit_Other '\\'> <'[Dialer '> 
                                                        <Id.Lit_Other '\\'> <'('> ($ Id.VSub_DollarName '$cur') <'.*'> <Id.Lit_Other '\\'> <')'> <Id.Lit_Other '\\'> <']'> 
                                                        <Id.Lit_Other '$'> <'|'> <Id.Lit_Other '\\'> <'1|p'>
                                                      )
                                                    }
                                                    {($ Id.VSub_DollarName '$config')}
                                                  ]
                                                  redirects: [
                                                    (redir.Redir
                                                      op: <Id.Redir_Great '2>'>
                                                      fd: 2
                                                      arg_word: {</dev/null>}
                                                    )
                                                  ]
                                                )
                                                (C {<command>} {<grep>} {<-v>} {(SQ <'^Defaults$'>)})
                                              ]
                                              negated: F
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [244]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (braced_var_sub
                                token: <Id.VSub_Name COMPREPLY>
                                suffix_op: 
                                  (suffix_op.PatSub
                                    pat: {<' '>}
                                    replace: 
                                      {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) 
                                        <' '>
                                      }
                                    replace_mode: Id.Lit_Slash
                                  )
                              )
                            }
                          spids: [297]
                        )
                      ]
                    )
                  ]
                  spids: [140 141 309 -1]
                )
              ]
            )
          ]
        )
    )
    (C {<complete>} {<-F>} {<_wvdial>} {<wvdial>})
  ]
)