(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _info
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair lhs:(lhs_expr.LhsName name:cur) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:prev) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:words) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:cword) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:split) op:Equal)
              ]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)} {(-s)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_expand)})
                (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_DollarName '$cur'))}
                              right: 
                                {
                                  (word_part.ExtGlobPart
                                    op: <ExtGlob_At '@('>
                                    arms: [{(Lit_Other '*') (/)} {('[.~]')}]
                                  ) (Lit_Other '*')
                                }
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(_filedir)})
                    (command.ControlFlow
                      token: <ControlFlow_Return return>
                      arg_word: {(0)}
                    )
                  ]
                )
              ]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [
                    {(-k)}
                    {(--apropos)}
                    {(--index-search)}
                    {(-n)}
                    {(--node)}
                    {(-h)}
                    {(--help)}
                    {(-v)}
                    {(--version)}
                  ]
                  action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                )
                (case_arm
                  pat_list: [{(-d)}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: 
                                        {
                                          (word_part.BracedVarSub
                                            token: <VSub_Number 1>
                                            suffix_op: 
                                              (suffix_op.StringUnary
                                                op_id: VOp1_DPound
                                                arg_word: {('*') (Lit_Slash /)}
                                              )
                                          )
                                        }
                                      right: {(info)}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(_filedir)} {(-d)})
                            (command.ControlFlow
                              token: <ControlFlow_Return return>
                            )
                          ]
                        )
                      ]
                    )
                  ]
                )
                (case_arm
                  pat_list: [{(--directory)}]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [
                    {(--dribble)}
                    {(-f)}
                    {(--file)}
                    {(-o)}
                    {(--output)}
                    {(--restore)}
                    {(-r)}
                    {(--raw-filename)}
                    {(--rcfile)}
                  ]
                  action: [(C {(_filedir)}) (command.ControlFlow token:<ControlFlow_Return return>)]
                )
              ]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (C {($ VSub_DollarName '$split')})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_DollarName '$cur')}
                              right: {(-) (Lit_Other '*')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY)
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" )'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (command.AndOr
                      ops: [Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_DollarName '$COMPREPLY')}
                              right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                            )
                        )
                        (C {(compopt)} {(-o)} {(nospace)})
                      ]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
              ]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair lhs:(lhs_expr.LhsName name:i) op:Equal)
                (assign_pair
                  lhs: (lhs_expr.LhsName name:infopath)
                  op: Equal
                  rhs: {(/usr/share/info)}
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_DollarName '$INFOPATH')}
                              right: {(Lit_Other '*') (Lit_Other ':')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:infopath)
                          op: Equal
                          rhs: {(${ VSub_Name INFOPATH) (${ VSub_Name infopath)}
                        )
                      ]
                    )
                  ]
                )
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.WordTest
                              w: 
                                {
                                  (word_part.BracedVarSub
                                    token: <VSub_Name INFOPATH>
                                    suffix_op: 
                                      (suffix_op.StringUnary
                                        op_id: VTest_ColonPlus
                                        arg_word: {(set)}
                                      )
                                  )
                                }
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:infopath)
                          op: Equal
                          rhs: {($ VSub_DollarName '$INFOPATH')}
                        )
                      ]
                    )
                  ]
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:infopath)
                  op: Equal
                  rhs: {($ VSub_DollarName '$infopath') (Lit_Other ':')}
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolUnary
                              op_id: BoolUnary_n
                              child: {($ VSub_DollarName '$cur')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:infopath)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (word_part.BracedVarSub
                                  token: <VSub_Name infopath>
                                  suffix_op: 
                                    (suffix_op.PatSub
                                      pat: {(':')}
                                      replace: {(Lit_Slash /) ($ VSub_DollarName '$cur') ('* ')}
                                      replace_mode: Lit_Slash
                                    )
                                )
                              )
                            }
                        )
                      ]
                    )
                  ]
                )
              ]
              else_action: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:infopath)
                      op: Equal
                      rhs: 
                        {
                          (DQ 
                            (word_part.BracedVarSub
                              token: <VSub_Name infopath>
                              suffix_op: 
                                (suffix_op.PatSub
                                  pat: {(':')}
                                  replace: {(Lit_Slash /) (' ')}
                                  replace_mode: Lit_Slash
                                )
                            )
                          )
                        }
                    )
                  ]
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (command.SimpleCommand
                                      words: [
                                        {(eval)}
                                        {(command)}
                                        {(ls)}
                                        {(DQ ($ VSub_DollarName '$infopath'))}
                                      ]
                                      redirects: [
                                        (redir.Redir
                                          op: <Redir_Great '2>'>
                                          fd: 2
                                          arg_word: {(/dev/null)}
                                        )
                                      ]
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                            )
                          }
                        ]
                      )
                    }
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.BracedVarSub
                              token: <VSub_Name COMPREPLY>
                              bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                              suffix_op: 
                                (suffix_op.StringUnary
                                  op_id: VOp1_DPound
                                  arg_word: {('*') (Lit_Slash /) ('?(:)')}
                                )
                            )
                          }
                        ]
                      )
                    }
                )
              ]
            )
            (command.ForExpr
              init: 
                (arith_expr.BinaryAssign
                  op_id: Arith_Equal
                  left: (lhs_expr.LhsName name:i)
                  right: (arith_expr.ArithWord w:{(Lit_Digits 0)})
                )
              cond: 
                (arith_expr.ArithBinary
                  op_id: Arith_Less
                  left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>)
                  right: 
                    (arith_expr.ArithWord
                      w: 
                        {
                          (word_part.BracedVarSub
                            token: <VSub_Name COMPREPLY>
                            prefix_op: VSub_Pound
                            bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                          )
                        }
                    )
                )
              update: (arith_expr.UnaryAssign op_id:Arith_DPlus child:(lhs_expr.LhsName name:i))
              body: 
                (command.DoGroup
                  children: [
                    (command.AndOr
                      ops: [Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: 
                                {
                                  (word_part.BracedVarSub
                                    token: <VSub_Name COMPREPLY>
                                    bracket_op: 
                                      (bracket_op.ArrayIndex
                                        expr: (arith_expr.ArithWord w:{($ VSub_DollarName '$i')})
                                      )
                                  )
                                }
                              right: {(dir)}
                            )
                        )
                        (C {(unset)} {(DQ ('COMPREPLY[') ($ VSub_DollarName '$i') (']'))})
                      ]
                    )
                  ]
                )
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.BracedVarSub
                              token: <VSub_Name COMPREPLY>
                              bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                              suffix_op: 
                                (suffix_op.StringUnary
                                  op_id: VOp1_Percent
                                  arg_word: {('.@(gz|bz2|xz|lzma)')}
                                )
                            )
                          }
                        ]
                      )
                    }
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(SQ <'${COMPREPLY[@]%.*}'>)} {(--)} 
                                      {
                                        (DQ 
                                          (word_part.BracedVarSub
                                            token: <VSub_Name cur>
                                            suffix_op: 
                                              (suffix_op.PatSub
                                                pat: 
                                                  {
                                                    (word_part.EscapedLiteralPart
                                                      token: <Lit_EscapedChar '\\\\'>
                                                    ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>)
                                                  }
                                                replace: (word.EmptyWord)
                                                replace_mode: Lit_Slash
                                              )
                                          )
                                        )
                                      }
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                            )
                          }
                        ]
                      )
                    }
                )
              ]
            )
            (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
          ]
        )
    )
    (C {(complete)} {(-F)} {(_info)} {(info)} {(pinfo)})
  ]
)