(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _nmap
      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 '$prev')}
              arms: [
                (case_arm
                  pat_list: [
                    {(-iL)}
                    {(-oN)}
                    {(-oX)}
                    {(-oS)}
                    {(-oG)}
                    {(---excludefile)}
                    {(--resume)}
                    {(--stylesheet)}
                  ]
                  action: [
                    (C {(_filedir)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:58)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [37 52 63 -1]
                )
                (case_arm
                  pat_list: [{(-oA)} {(--datadir)}]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:77)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [66 69 82 -1]
                )
                (case_arm
                  pat_list: [{(-e)}]
                  action: [
                    (C {(_available_interfaces)} {(-a)})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:94)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [85 86 99 -1]
                )
                (case_arm
                  pat_list: [{(-b)} {(--dns-servers)}]
                  action: [
                    (C {(_known_hosts_real)} {(DQ ($ Id.VSub_DollarName '$cur'))})
                    (command.ControlFlow
                      token: (Token id:Id.ControlFlow_Return val:return span_id:115)
                      arg_word: {(0)}
                    )
                  ]
                  spids: [102 105 120 -1]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.Binary
                              op_id: Id.BoolBinary_GlobDEqual
                              left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                              right: {(-) (Id.Lit_Other '*')}
                            )
                        )
                      terminator: (Token id:Id.Op_Semi val:';' span_id:141)
                    )
                  ]
                  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:147)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:149)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (SQ 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'-iL -iR --exclude --excludefile -sL -sP -PN\n'
                                                    span_id: 156
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            -PS -PA -PU -PY -PE -PP -PM -PO -n -R --dns-servers --system-dns\n'
                                                    span_id: 157
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --traceroute -sS -sT -sA -sW -sM -sU -sN -sF -sX --scanflags -sI\n'
                                                    span_id: 158
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            -sY -sZ -sO -b -p -F -r --top-ports --port-ratio -sV\n'
                                                    span_id: 159
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --version-intensity --version-light --version-all --version-trace\n'
                                                    span_id: 160
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            -sC --script= --script-args= --script-trace --script-updatedb -O\n'
                                                    span_id: 161
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --osscan-limit --osscan-guess -T0 -T1 -T2 -T3 -T4 -T5\n'
                                                    span_id: 162
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --min-hostgroup --max-hostgroup --min-parallelism --max-parallelism\n'
                                                    span_id: 163
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --min-rtt-timeout --max-rtt-timeout --initial-rtt-timeout\n'
                                                    span_id: 164
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --max-retries --host-timeout --scan-delay --max-scan-delay\n'
                                                    span_id: 165
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --min-rate --max-rate -f --mtu -D -S -e --source-port --data-length\n'
                                                    span_id: 166
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --ip-options --ttl --spoof-mac --badsum --adler32 -oN -oX -oS -oG\n'
                                                    span_id: 167
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            -oA -v -d --reason --open --packet-trace --iflist --log-errors\n'
                                                    span_id: 168
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            --append-output --resume --stylesheet --webxml --no-stylesheet -6\n'
                                                    span_id: 169
                                                  ) 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: 
'            -A --datadir --send-eth --send-ip --privilege--unprivileged -V\n'
                                                    span_id: 170
                                                  ) (Token id:Id.Lit_Chars val:'            -h' span_id:171)
                                                )
                                              } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [146]
                        )
                      ]
                    )
                  ]
                  spids: [127 143]
                )
              ]
              else_action: [(C {(_known_hosts_real)} {(DQ ($ Id.VSub_DollarName '$cur'))})]
            )
          ]
        )
    )
    (C {(complete)} {(-F)} {(_nmap)} {(nmap)})
  ]
)