(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _iscsiadm
          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])
                    (assign_pair lhs:(LhsName name:split) op:Equal spids:[21])
                  ]
                  spids: [11]
                )
                (AndOr
                  children: [
                    (C {(_init_completion)} {(-s)})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                  op_id: Op_DPipe
                )
                (Case
                  to_match: {($ VSub_Name '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{(-m)} {(--mode)}]
                      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 <'discovery node session iface fw host'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [50 68]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [47]
                            )
                          ]
                          spids: [47]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [41 44 78 16777215]
                    )
                    (case_arm
                      pat_list: [{(-o)} {(--op)}]
                      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 <'new delete update show'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [90 106]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [87]
                            )
                          ]
                          spids: [87]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [81 84 116 16777215]
                    )
                    (case_arm
                      pat_list: [{(-t)} {(--type)}]
                      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 <'sendtargets st slp isns fw'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [128 144]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [125]
                            )
                          ]
                          spids: [125]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [119 122 154 16777215]
                    )
                    (case_arm
                      pat_list: [{(-L)} {(-U)} {(--loginall)} {(--logoutall)}]
                      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 <'all manual automatic'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [170 186]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [167]
                            )
                          ]
                          spids: [167]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [157 164 196 16777215]
                    )
                  ]
                  spids: [34 38 199]
                )
                (AndOr
                  children: [
                    (C {($ VSub_Name '$split')})
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  op_id: Op_DAmp
                )
                (Assignment
                  keyword: Assign_Local
                  pairs: [(assign_pair lhs:(LhsName name:options) op:Equal spids:[215])]
                  spids: [213]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_gt
                                  left: {($ VSub_Name '$cword')}
                                  right: {(1)}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (Case
                          to_match: 
                            {
                              (BracedVarSub
                                token: <VSub_Name words>
                                bracket_op: (ArrayIndex expr:(ArithWord w:{(Lit_Digits 2)}))
                                spids: [238 243]
                              )
                            }
                          arms: [
                            (case_arm
                              pat_list: [{(discovery)}]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:options)
                                      op: Equal
                                      rhs: 
                                        {
                                          (SQ 
                                            <
'--help --version --debug --print --interface --type \\\n'
                                            > <'                    --portal --login --op --name --value'>
                                          )
                                        }
                                      spids: [252]
                                    )
                                  ]
                                  spids: [252]
                                )
                              ]
                              spids: [248 249 259 16777215]
                            )
                            (case_arm
                              pat_list: [{(node)}]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:options)
                                      op: Equal
                                      rhs: 
                                        {
                                          (SQ <'--help --version --debug --print --loginall \\\n'> 
                                            <
'                    --logoutall--show  -T --portal --interface --login \\\n'
                                            > <'                    --logout --rescan --stats --op --name --value'>
                                          )
                                        }
                                      spids: [266]
                                    )
                                  ]
                                  spids: [266]
                                )
                              ]
                              spids: [262 263 274 16777215]
                            )
                            (case_arm
                              pat_list: [{(session)}]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:options)
                                      op: Equal
                                      rhs: 
                                        {
                                          (SQ 
                                            <
'--help --version --debug --print --sid --logout \\\n'
                                            > <'                    --rescan --stats'>
                                          )
                                        }
                                      spids: [281]
                                    )
                                  ]
                                  spids: [281]
                                )
                              ]
                              spids: [277 278 288 16777215]
                            )
                            (case_arm
                              pat_list: [{(iface)}]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:options)
                                      op: Equal
                                      rhs: 
                                        {
                                          (SQ 
                                            <
'--help --version --debug --print --interface --op \\\n'
                                            > <'                    --name --value'>
                                          )
                                        }
                                      spids: [295]
                                    )
                                  ]
                                  spids: [295]
                                )
                              ]
                              spids: [291 292 302 16777215]
                            )
                            (case_arm
                              pat_list: [{(fw)}]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:options)
                                      op: Equal
                                      rhs: {(SQ <--login>)}
                                      spids: [309]
                                    )
                                  ]
                                  spids: [309]
                                )
                              ]
                              spids: [305 306 315 16777215]
                            )
                            (case_arm
                              pat_list: [{(host)}]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:options)
                                      op: Equal
                                      rhs: {(SQ <'--print -H'>)}
                                      spids: [322]
                                    )
                                  ]
                                  spids: [322]
                                )
                              ]
                              spids: [318 319 328 16777215]
                            )
                          ]
                          spids: [236 245 331]
                        )
                      ]
                      spids: [16777215 232]
                    )
                  ]
                  else_action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:options)
                          op: Equal
                          rhs: {(SQ <--mode>)}
                          spids: [337]
                        )
                      ]
                      spids: [337]
                    )
                  ]
                  spids: [334 343]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(compgen)} {(-W)} {(DQ ($ VSub_Name '$options'))} {(--)} 
                                          {(DQ ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [350 366]
                                )
                              }
                            ]
                          )
                        }
                      spids: [347]
                    )
                  ]
                  spids: [347]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_iscsiadm)} {(iscsiadm)})
      ]
      op_id: Op_DAmp
    )
  ]
)