(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _querybts
          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])
                    (assign_pair lhs:(LhsName name:split) op:Equal spids:[21])
                  ]
                  spids: [11]
                )
                (AndOr
                  children: [
                    (C {(_init_completion)} {(-s)})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                  op_id: Op_DPipe
                )
                (Case
                  to_match: {($ VSub_Name '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{(-B)} {(--bts)}]
                      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 ('debian guug kde mandrake help'))} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [50 68]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [47]
                            )
                          ]
                          spids: [47]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [41 44 78 16777215]
                    )
                    (case_arm
                      pat_list: [{(-u)} {(--ui)} {(--interface)}]
                      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 ('newt text gnome'))} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [92 108]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [89]
                            )
                          ]
                          spids: [89]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [81 86 118 16777215]
                    )
                  ]
                  spids: [34 38 121]
                )
                (AndOr
                  children: [
                    (C {($ VSub_Name '$split')})
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  op_id: Op_DAmp
                )
                (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 <'-h --help -v --version -A --archive -B --bts -l\n'> 
                                              <
'        --ldap --no-ldap --proxy --http_proxy -s --source -w --web -u --ui\n'
                                              > <'        --interface \\\n'> 
                                              <
'        wnpp boot-floppies kernel bugs.debian.org cdimage.debian.org general\n'
                                              > <'        installation-reports listarchives lists.debian.org mirrors\n'> 
                                              <
'        nm.debian.org press project qa.debian.org release-notes\n'
                                              > <'        security.debian.org tech-ctte upgrade-reports www.debian.org'>
                                            )
                                          } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [138 162]
                                )
                              }
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (SimpleCommand
                                          words: [
                                            {(apt-cache)}
                                            {(pkgnames)}
                                            {(--)}
                                            {(DQ ($ VSub_Name '$cur'))}
                                          ]
                                          redirects: [
                                            (Redir
                                              op_id: Redir_Great
                                              fd: 2
                                              arg_word: {(/dev/null)}
                                              spids: [176]
                                            )
                                          ]
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [164 180]
                                )
                              }
                            ]
                          )
                        }
                      spids: [135]
                    )
                  ]
                  spids: [135]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_querybts)} {(querybts)})
      ]
      op_id: Op_DAmp
    )
  ]
)