(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _xsltproc
      body: 
        (command.BraceGroup
          children: [
            (C {(local)} {(cur)} {(prev)} {(words)} {(cword)})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow
                  token: (Token id:Id.ControlFlow_Return val:return span_id:26)
                )
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [{(--output)} {(-o)}]
                  action: [
                    (C {(_filedir)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:46)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [37 40 51 -1]
                )
                (case_arm
                  pat_list: [{(--maxdepth)}]
                  action: [
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:62)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [58 59 67 -1]
                )
                (case_arm
                  pat_list: [{(--encoding)}]
                  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:79)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:81)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (DQ 
                                                  (command_sub
                                                    left_token: 
                                                      (Token
                                                        id: Id.Left_DollarParen
                                                        val: '$('
                                                        span_id: 88
                                                      )
                                                    command_list: 
                                                      (command.CommandList
                                                        children: [
                                                          (command.Pipeline
                                                            children: [
                                                              (C {(iconv)} {(-l)})
                                                              (C {(sed)} {(-e)} 
                                                                {
                                                                  (SQ 
                                                                    (Token
                                                                      id: Id.Lit_Chars
                                                                      val: '/^UTF[1378]/d'
                                                                      span_id: 101
                                                                    )
                                                                  )
                                                                } {(-e)} {(SQ (Token id:Id.Lit_Chars val:'/^ISO[0-9_]/d' span_id:109))} {(-e)} 
                                                                {
                                                                  (SQ 
                                                                    (Token
                                                                      id: Id.Lit_Chars
                                                                      val: '/^8859/d'
                                                                      span_id: 115
                                                                    )
                                                                  )
                                                                } {(-e)} {(SQ (Token id:Id.Lit_Chars val:'s/\\/.*//' span_id:121))}
                                                              )
                                                            ]
                                                            negated: F
                                                          )
                                                        ]
                                                      )
                                                  )
                                                )
                                              } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [78]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:137)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [70 71 142 -1]
                )
                (case_arm
                  pat_list: [{(--param)} {(--stringparam)}]
                  action: [
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:151)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [145 148 156 -1]
                )
                (case_arm
                  pat_list: [{(--path)}]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:172)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [163 164 177 -1]
                )
                (case_arm
                  pat_list: [{(--writesubtree)}]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:189)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [180 181 194 -1]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.LogicalAnd
                      left: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_gt
                          left: {($ Id.VSub_DollarName '$cword')}
                          right: {(2)}
                        )
                      right: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: 
                            {
                              (command_sub
                                left_token: (Token id:Id.Left_Backtick val:'`' span_id:211)
                                command_list: 
                                  (command.CommandList
                                    children: [(C {(_get_cword)} {(SQ )} {(2)})]
                                  )
                              )
                            }
                          right: 
                            {(--) 
                              (word_part.ExtGlob
                                op: (Token id:Id.ExtGlob_QMark val:'?(' span_id:225)
                                arms: [{(string)}]
                              ) (param)
                            }
                        )
                    )
                )
                (command.ControlFlow
                  token: (Token id:Id.ControlFlow_Return val:return span_id:236)
                  arg_word: {(0)}
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (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: (Token id:Id.Op_Semi val:';' span_id:256)
                    )
                  ]
                  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:262)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:264)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (SQ 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: '$( _parse_help "$1" )'
                                                    span_id: 271
                                                  )
                                                )
                                              } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [261]
                        )
                      ]
                    )
                    (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:286)
                                words: [
                                  {
                                    (DQ 
                                      (braced_var_sub
                                        token: (Token id:Id.VSub_Name val:COMPREPLY span_id:290)
                                        bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                        suffix_op: 
                                          (suffix_op.Unary
                                            op_id: Id.VOp1_Percent
                                            arg_word: {(':')}
                                          )
                                      )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [285]
                        )
                      ]
                    )
                  ]
                  spids: [242 258]
                )
              ]
              else_action: [
                (C {(_filedir)} 
                  {(SQ (Token id:Id.Lit_Chars val:'@(xsl|xslt|xml|dbk|docbook)' span_id:312))}
                )
              ]
            )
          ]
        )
    )
    (C {(complete)} {(-F)} {(_xsltproc)} {(xsltproc)})
  ]
)