(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _btdownload
          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: [{(--responsefile)} {(--saveas)}]
                      action: [
                        (C {(_filedir)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [37 40 51 16777215]
                    )
                  ]
                  spids: [30 34 54]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {(DQ ($ VSub_Name '$cur'))}
                                  right: {(-) (Lit_Other '*')}
                                )
                            )
                          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 <'--max_uploads --keepalive_interval\n'> 
                                                      <
'            --download_slice_size --request_backlog --max_message_length\n'
                                                      > <'            --ip --minport --maxport --responsefile --url --saveas --timeout\n'> 
                                                      <
'            --timeout_check_interval --max_slice_length --max_rate_period\n'
                                                      > <'            --bind --upload_rate_fudge --display_interval --rerequest_interval\n'> 
                                                      <
'            --min_peers --http_timeout --max_initiate --max_allow_in\n'
                                                      > <'            --check_hashes --max_upload_rate --snub_time --spew\n'> 
                                                      <
'            --rarest_first_cutoff --min_uploads --report_hash_failures'
                                                      >
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [80 105]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [77]
                            )
                          ]
                          spids: [77]
                        )
                      ]
                      spids: [16777215 74]
                    )
                  ]
                  else_action: [(C {(_filedir)})]
                  spids: [110 116]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_btdownload)} {(btdownloadheadless.py)} {(btdownloadcurses.py)} 
          {(btdownloadgui.py)}
        )
      ]
      op_id: Op_DAmp
    )
  ]
)