(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _pdftotext
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[13])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[15])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[17])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[19])
                  ]
                  spids: [11]
                )
                (AndOr
                  children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
                  op_id: Op_DPipe
                )
                (Case
                  to_match: {($ VSub_Name "$prev")}
                  arms: [
                    (case_arm
                      pat_list: [
                        {(-h)}
                        {(-help)}
                        {(--help)}
                        {(-) (SQ <"?">)}
                        {(-f)}
                        {(-l)}
                        {(-r)}
                        {(-x)}
                        {(-y)}
                        {(-W)}
                        {(-H)}
                        {(-fixed)}
                        {(-opw)}
                        {(-upw)}
                      ]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [37 67 73 -1]
                    )
                    (case_arm
                      pat_list: [{(-enc)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {
                                                    (SQ <"$( \"$1\" -listenc 2>/dev/null |\n"> 
                                                      <"                sed -e 1d )">
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name "$cur"))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub "$(">
                                          spids: [83 100]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [80]
                            )
                          ]
                          spids: [80]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [76 77 108 -1]
                    )
                    (case_arm
                      pat_list: [{(-eol)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(DQ ("unix dos mac"))} {(--)} 
                                                  {(DQ ($ VSub_Name "$cur"))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub "$(">
                                          spids: [118 134]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [115]
                            )
                          ]
                          spids: [115]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [111 112 142 -1]
                    )
                  ]
                  spids: [30 34 145]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (LogicalAnd
                                  left: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {($ VSub_Name "$cur")}
                                      right: {(-) (Lit_Other "*")}
                                    )
                                  right: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobNEqual
                                      left: 
                                        {
                                          (BracedVarSub
                                            token: <VSub_Name prev>
                                            suffix_op: (StringUnary op_id:VOp1_DComma arg_word:{})
                                            spids: [162 165]
                                          )
                                        }
                                      right: {(Lit_Other "*") (.pdf)}
                                    )
                                )
                            )
                          terminator: <Op_Semi ";">
                        )
                      ]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <"$( _parse_help \"$1\" )">)} 
                                                  {(--)} {(DQ ($ VSub_Name "$cur"))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub "$(">
                                          spids: [181 197]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [178]
                            )
                          ]
                          spids: [178]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [-1 175]
                    )
                  ]
                  spids: [-1 205]
                )
                (Case
                  to_match: 
                    {
                      (BracedVarSub
                        token: <VSub_Name prev>
                        suffix_op: (StringUnary op_id:VOp1_DComma arg_word:{})
                        spids: [211 214]
                      )
                    }
                  arms: [
                    (case_arm
                      pat_list: [{(-)} {(Lit_Other "*") (.txt)}]
                      spids: [219 223 225 -1]
                    )
                    (case_arm
                      pat_list: [{(Lit_Other "*") (.pdf)}]
                      action: [
                        (Sentence
                          child: 
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: 
                                    {
                                      (ArrayLiteralPart
                                        words: [
                                          {
                                            (CommandSubPart
                                              command_list: 
                                                (CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} {(SQ <->)} {(--)} 
                                                      {(DQ ($ VSub_Name "$cur"))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub "$(">
                                              spids: [235 251]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [232]
                                )
                              ]
                              spids: [232]
                            )
                          terminator: <Op_Semi ";">
                        )
                        (C {(_filedir)} {(txt)})
                      ]
                      spids: [228 230 261 -1]
                    )
                    (case_arm
                      pat_list: [{(Lit_Other "*")}]
                      action: [(C {(_filedir)} {(pdf)})]
                      spids: [264 265 271 -1]
                    )
                  ]
                  spids: [209 216 274]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_pdftotext)} {(pdftotext)})
      ]
      op_id: Op_DAmp
    )
  ]
)