(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _links
      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 '$cur')}
              arms: [
                (case_arm
                  pat_list: [{(--) (Id.Lit_Star '*')}]
                  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:43)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:45)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {(SQ (Token id:Id.Lit_Chars val:--help span_id:52))} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [42]
                        )
                      ]
                    )
                  ]
                  spids: [37 39 66 -1]
                )
                (case_arm
                  pat_list: [{(-) (Id.Lit_Star '*')}]
                  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:75)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:77)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (SQ 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: '-async-dns -max-connections\n'
                                                    span_id: 84
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'                -max-connections-to-host -retries -receive-timeout\n'
                                                    span_id: 85
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'                -unrestartable-receive-timeout -format-cache-size\n'
                                                    span_id: 86
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'                -memory-cache-size -http-proxy -ftp-proxy -download-dir\n'
                                                    span_id: 87
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'                -assume-codepage -anonymous -dump -no-connect -source -version\n'
                                                    span_id: 88
                                                  ) (Token id:Id.Lit_Chars val:'                -help' span_id:89)
                                                )
                                              } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [74]
                        )
                      ]
                    )
                  ]
                  spids: [69 71 103 -1]
                )
                (case_arm
                  pat_list: [{(Id.Lit_Star '*')}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Unary
                                      op_id: Id.BoolUnary_r
                                      child: {(Id.Lit_TildeLike '~') (/.links/links.his)}
                                    )
                                )
                              terminator: (Token id:Id.Op_Semi val:';' span_id:120)
                            )
                          ]
                          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:126)
                                        words: [
                                          {
                                            (command_sub
                                              left_token: 
                                                (Token
                                                  id: Id.Left_DollarParen
                                                  val: '$('
                                                  span_id: 128
                                                )
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {
                                                        (SQ 
                                                          (Token
                                                            id: Id.Lit_Chars
                                                            val: '$( < ~/.links/links.his )'
                                                            span_id: 135
                                                          )
                                                        )
                                                      } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [125]
                                )
                              ]
                            )
                          ]
                          spids: [110 122]
                        )
                      ]
                    )
                    (C {(_filedir)} {(SQ (Token id:Id.Lit_Chars val:'@(htm|html)' span_id:157))})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:161)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [106 107 166 -1]
                )
              ]
            )
            (command.ControlFlow
              token: (Token id:Id.ControlFlow_Return val:return span_id:173)
              arg_word: {(0)}
            )
          ]
        )
    )
    (C {(complete)} {(-F)} {(_links)} {(links)})
  ]
)