(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _curl
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[13])
                  op: Equal
                  spids: [13]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[15])
                  op: Equal
                  spids: [15]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[17])
                  op: Equal
                  spids: [17]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[19])
                  op: Equal
                  spids: [19]
                )
              ]
              spids: [11]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [
                    {(--ciphers)}
                    {(--connect-timeout)}
                    {(-C)}
                    {(--continue-at)}
                    {(-F)}
                    {(--form)}
                    {(--form-string)}
                    {(--ftp-account)}
                    {(--ftp-alternative-to-user)}
                    {(-P)}
                    {(--ftp-port)}
                    {(-H)}
                    {(--header)}
                    {(-h)}
                    {(--help)}
                    {(--hostpubmd5)}
                    {(--keepalive-time)}
                    {(--krb)}
                    {(--limit-rate)}
                    {(--local-port)}
                    {(--mail-from)}
                    {(--mail-rcpt)}
                    {(--max-filesize)}
                    {(--max-redirs)}
                    {(-m)}
                    {(--max-time)}
                    {(--pass)}
                    {(--proto)}
                    {(--proto-redir)}
                    {(--proxy-user)}
                    {(--proxy1.0)}
                    {(-Q)}
                    {(--quote)}
                    {(-r)}
                    {(--range)}
                    {(-X)}
                    {(--request)}
                    {(--retry)}
                    {(--retry-delay)}
                    {(--retry-max-time)}
                    {(--socks5-gssapi-service)}
                    {(-t)}
                    {(--telnet-option)}
                    {(--tftp-blksize)}
                    {(-z)}
                    {(--time-cond)}
                    {(--url)}
                    {(-u)}
                    {(--user)}
                    {(-A)}
                    {(--user-agent)}
                    {(-V)}
                    {(--version)}
                    {(-w)}
                    {(--write-out)}
                    {(--resolve)}
                    {(--tlsuser)}
                    {(--tlspassword)}
                  ]
                  action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                  spids: [37 168 174 16777215]
                )
                (case_arm
                  pat_list: [
                    {(-K)}
                    {(--config)}
                    {(-b)}
                    {(--cookie)}
                    {(-c)}
                    {(--cookie-jar)}
                    {(-D)}
                    {(--dump-header)}
                    {(--egd-file)}
                    {(--key)}
                    {(--libcurl)}
                    {(-o)}
                    {(--output)}
                    {(--random-file)}
                    {(-T)}
                    {(--upload-file)}
                    {(--trace)}
                    {(--trace-ascii)}
                    {(--netrc-file)}
                  ]
                  action: [(C {(_filedir)}) (command.ControlFlow token:<ControlFlow_Return return>)]
                  spids: [177 218 227 16777215]
                )
                (case_arm
                  pat_list: [{(--cacert)} {(-E)} {(--cert)}]
                  action: [
                    (C {(_filedir)} {(SQ <'@(c?(e)rt|cer|pem|der)'>)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [230 235 248 16777215]
                )
                (case_arm
                  pat_list: [{(--capath)}]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [251 252 263 16777215]
                )
                (case_arm
                  pat_list: [{(--cert-type)} {(--key-type)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[272])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'DER PEM ENG'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [275 291]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [272]
                        )
                      ]
                      spids: [272]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [266 269 299 16777215]
                )
                (case_arm
                  pat_list: [{(--crlfile)}]
                  action: [
                    (C {(_filedir)} {(crl)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [302 303 314 16777215]
                )
                (case_arm
                  pat_list: [{(-d)} {(--data)} {(--data-ascii)} {(--data-binary)} {(--data-urlencode)}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {($ VSub_DollarName '$cur')}
                                      right: 
                                        {
                                          (word_part.EscapedLiteralPart
                                            token: <Lit_EscapedChar '\\@'>
                                          ) (Lit_Other '*')
                                        }
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:cur spids:[346])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.BracedVarSub
                                        token: <VSub_Name cur>
                                        suffix_op: 
                                          (suffix_op.Slice
                                            begin: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                                          )
                                        spids: [347 351]
                                      )
                                    }
                                  spids: [346]
                                )
                              ]
                              spids: [346]
                            )
                            (C {(_filedir)})
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[357])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArrayLiteralPart
                                        words: [
                                          {
                                            (DQ 
                                              (word_part.BracedVarSub
                                                token: <VSub_Name COMPREPLY>
                                                bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                                                suffix_op: 
                                                  (suffix_op.PatSub
                                                    pat: {}
                                                    replace: {('@')}
                                                    replace_mode: Lit_Pound
                                                    spids: [366]
                                                  )
                                                spids: [361 370]
                                              )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [357]
                                )
                              ]
                              spids: [357]
                            )
                          ]
                          spids: [16777215 343]
                        )
                      ]
                      spids: [16777215 376]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [317 326 382 16777215]
                )
                (case_arm
                  pat_list: [{(--delegation)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[389])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'none policy always'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [392 408]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [389]
                        )
                      ]
                      spids: [389]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [385 386 416 16777215]
                )
                (case_arm
                  pat_list: [{(--engine)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[423])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <list>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [426 442]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [423]
                        )
                      ]
                      spids: [423]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [419 420 450 16777215]
                )
                (case_arm
                  pat_list: [{(--ftp-method)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[457])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'multicwd nocwd singlecwd'>)} 
                                              {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [460 476]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [457]
                        )
                      ]
                      spids: [457]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [453 454 484 16777215]
                )
                (case_arm
                  pat_list: [{(--ftp-ssl-ccc-mode)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[491])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'active passive'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [494 510]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [491]
                        )
                      ]
                      spids: [491]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [487 488 518 16777215]
                )
                (case_arm
                  pat_list: [{(--interface)}]
                  action: [
                    (C {(_available_interfaces)} {(-a)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [521 522 533 16777215]
                )
                (case_arm
                  pat_list: [
                    {(-x)}
                    {(--proxy)}
                    {(--socks4)}
                    {(--socks4a)}
                    {(--socks5)}
                    {(--socks5-hostname)}
                  ]
                  action: [
                    (C {(_known_hosts_real)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [536 547 556 16777215]
                )
                (case_arm
                  pat_list: [{(--pubkey)}]
                  action: [
                    (C {(_filedir)} {(pub)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [559 560 571 16777215]
                )
                (case_arm
                  pat_list: [{(--stderr)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[578])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <->)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [581 597]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [578]
                        )
                      ]
                      spids: [578]
                    )
                    (C {(_filedir)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [574 575 608 16777215]
                )
                (case_arm
                  pat_list: [{(--tlsauthtype)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[615])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <SRP>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [618 634]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [615]
                        )
                      ]
                      spids: [615]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [611 612 642 16777215]
                )
              ]
              spids: [30 34 645]
            )
            (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 spids:[666])
                          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 '$('>
                                      spids: [669 685]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [666]
                        )
                      ]
                      spids: [666]
                    )
                  ]
                  spids: [16777215 663]
                )
              ]
              spids: [16777215 690]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (C {(complete)} {(-F)} {(_curl)} {(curl)})
  ]
)