(command.CommandList
  children: [
    (command.FuncDef
      name: _bind_queryclass
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[11])
                  op: PlusEqual
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(SQ <'IN CH HS ANY'>)} {(--)} 
                                      {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [14 30]
                            )
                          }
                        ]
                      )
                    }
                  spids: [11]
                )
              ]
              spids: [11]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (command.FuncDef
      name: _bind_querytype
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[48])
                  op: PlusEqual
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} 
                                      {
                                        (SQ <'A AAAA AFSDB APL CERT CNAME DHCID DLV DNAME\n'> 
                                          <
'        DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR\n'
                                          > <'        RRSIG RP SIG SOA SPF SRV SSHFP TXT'>
                                        )
                                      } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [51 69]
                            )
                          }
                        ]
                      )
                    }
                  spids: [48]
                )
              ]
              spids: [48]
            )
          ]
          spids: [41]
        )
      spids: [37 40]
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (command.FuncDef
          name: _nslookup
          body: 
            (command.BraceGroup
              children: [
                (command.Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:cur spids:[85])
                      op: Equal
                      spids: [85]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:prev spids:[87])
                      op: Equal
                      spids: [87]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:words spids:[89])
                      op: Equal
                      spids: [89]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:cword spids:[91])
                      op: Equal
                      spids: [91]
                    )
                  ]
                  spids: [83]
                )
                (command.AndOr
                  ops: [Op_DPipe]
                  children: [
                    (C {(_init_completion)} {(-n)} {(Lit_Other '=')})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (command.Case
                  to_match: {($ VSub_DollarName '$cur')}
                  arms: [
                    (case_arm
                      pat_list: [
                        {(-class) (Lit_Other '=') (Lit_Other '*')}
                        {(-cl) (Lit_Other '=') (Lit_Other '*')}
                      ]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:cur spids:[123])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.BracedVarSub
                                    token: <VSub_Name cur>
                                    suffix_op: 
                                      (suffix_op.StringUnary
                                        op_id: VOp1_Pound
                                        arg_word: {('*=')}
                                      )
                                    spids: [124 128]
                                  )
                                }
                              spids: [123]
                            )
                          ]
                          spids: [123]
                        )
                        (C {(_bind_queryclass)})
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                      spids: [113 120 137 16777215]
                    )
                    (case_arm
                      pat_list: [
                        {(-querytype) (Lit_Other '=') (Lit_Other '*')}
                        {(-type) (Lit_Other '=') (Lit_Other '*')}
                        {(-q) (Lit_Other '=') (Lit_Other '*')}
                        {(-ty) (Lit_Other '=') (Lit_Other '*')}
                      ]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:cur spids:[158])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.BracedVarSub
                                    token: <VSub_Name cur>
                                    suffix_op: 
                                      (suffix_op.StringUnary
                                        op_id: VOp1_Pound
                                        arg_word: {('*=')}
                                      )
                                    spids: [159 163]
                                  )
                                }
                              spids: [158]
                            )
                          ]
                          spids: [158]
                        )
                        (C {(_bind_querytype)})
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                      spids: [140 155 172 16777215]
                    )
                    (case_arm
                      pat_list: [{(-) (Lit_Other '?') (Lit_Other '*') (Lit_Other '=') (Lit_Other '*')}]
                      action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                      spids: [175 180 186 16777215]
                    )
                  ]
                  spids: [106 110 189]
                )
                (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:[210])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.ArrayLiteralPart
                                    words: [
                                      {
                                        (word_part.CommandSubPart
                                          command_list: 
                                            (command.CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {
                                                    (SQ <'-all -class= -debug -nodebug -d2 -nod2\n'> 
                                                      <
'            -domain= -search -nosearch -port= -querytype= -recurse -norecurse\n'
                                                      > <'            -retry= -timeout= -vc -novc -fail -nofail'>
                                                    )
                                                  } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [213 231]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [210]
                            )
                          ]
                          spids: [210]
                        )
                        (command.AndOr
                          ops: [Op_DAmp]
                          children: [
                            (command.DBracket
                              expr: 
                                (bool_expr.BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_DollarName '$COMPREPLY')}
                                  right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                                )
                            )
                            (C {(compopt)} {(-o)} {(nospace)})
                          ]
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                      spids: [16777215 207]
                    )
                  ]
                  spids: [16777215 259]
                )
                (command.Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:args spids:[265])
                      op: Equal
                      spids: [265]
                    )
                  ]
                  spids: [263]
                )
                (C {(_count_args)} {(Lit_Other '=')})
                (command.If
                  arms: [
                    (if_arm
                      cond: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.BoolBinary
                                  op_id: BoolBinary_le
                                  left: {($ VSub_DollarName '$args')}
                                  right: {(2)}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
                        (command.AndOr
                          ops: [Op_DAmp]
                          children: [
                            (command.DBracket
                              expr: 
                                (bool_expr.LogicalAnd
                                  left: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_eq
                                      left: {($ VSub_DollarName '$args')}
                                      right: {(1)}
                                    )
                                  right: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {($ VSub_DollarName '$cur')}
                                      right: 
                                        {
                                          (word_part.ExtGlobPart
                                            op: <ExtGlob_At '@('>
                                            arms: [{} {(-)}]
                                            spids: [310 313]
                                          )
                                        }
                                    )
                                )
                            )
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[319])
                                  op: PlusEqual
                                  rhs: {(word_part.ArrayLiteralPart words:[{(-)}])}
                                  spids: [319]
                                )
                              ]
                              spids: [319]
                            )
                          ]
                        )
                      ]
                      spids: [16777215 286]
                    )
                  ]
                  spids: [16777215 327]
                )
              ]
              spids: [80]
            )
          spids: [76 79]
        )
        (C {(complete)} {(-F)} {(_nslookup)} {(nslookup)})
      ]
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (command.FuncDef
          name: _host
          body: 
            (command.BraceGroup
              children: [
                (command.Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:cur spids:[351])
                      op: Equal
                      spids: [351]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:prev spids:[353])
                      op: Equal
                      spids: [353]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:words spids:[355])
                      op: Equal
                      spids: [355]
                    )
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:cword spids:[357])
                      op: Equal
                      spids: [357]
                    )
                  ]
                  spids: [349]
                )
                (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: [{(-c)}]
                      action: [
                        (C {(_bind_queryclass)})
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                      spids: [375 376 385 16777215]
                    )
                    (case_arm
                      pat_list: [{(-t)}]
                      action: [
                        (C {(_bind_querytype)})
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                      spids: [388 389 398 16777215]
                    )
                    (case_arm
                      pat_list: [{(-m)}]
                      action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:COMPREPLY spids:[405])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.ArrayLiteralPart
                                    words: [
                                      {
                                        (word_part.CommandSubPart
                                          command_list: 
                                            (command.CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <'trace record usage'>)} 
                                                  {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [408 424]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [405]
                            )
                          ]
                          spids: [405]
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                      spids: [401 402 432 16777215]
                    )
                    (case_arm
                      pat_list: [{(-N)} {(-R)} {(-W)}]
                      action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                      spids: [435 440 446 16777215]
                    )
                  ]
                  spids: [368 372 449]
                )
                (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:[470])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.ArrayLiteralPart
                                    words: [
                                      {
                                        (word_part.CommandSubPart
                                          command_list: 
                                            (command.CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <'$( _parse_usage "$1" )'>)} 
                                                  {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [473 489]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [470]
                            )
                          ]
                          spids: [470]
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                      spids: [16777215 467]
                    )
                  ]
                  spids: [16777215 497]
                )
                (C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})
              ]
              spids: [346]
            )
          spids: [342 345]
        )
        (C {(complete)} {(-F)} {(_host)} {(host)})
      ]
    )
  ]
)