(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _screen_sessions
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:sessions)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (Pipeline
                                          children: [
                                            (C {(command)} {(screen)} {(-ls)})
                                            (C {(sed)} {(-ne)} 
                                              {
                                                (SQ 
                                                  <
's|^\\t\\{1,\\}\\([0-9]\\{1,\\}\\.[^\\t]\\{1,\\}\\).*'
                                                  >
                                                ) (DQ ($ VSub_Number '$1')) (SQ <'.*$|\\1|p'>)
                                              }
                                            )
                                          ]
                                          negated: False
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [16 42]
                                )
                              }
                            ]
                          )
                        }
                      spids: [13]
                    )
                  ]
                  spids: [11]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$cur')}
                                  right: 
                                    {(ExtGlobPart op:<ExtGlob_Plus '+('> spids:[55 57]) 
                                      (ExtGlobPart
                                        op: <ExtGlob_QMark '?('>
                                        spids: [58 61]
                                      )
                                    }
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      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 <'${sessions[@]}'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [76 92]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [73]
                            )
                          ]
                          spids: [73]
                        )
                      ]
                      spids: [16777215 66]
                    )
                  ]
                  else_action: [
                    (Assignment
                      keyword: Assign_Local
                      flags: [-A]
                      pairs: [(assign_pair lhs:(LhsName name:res) op:Equal spids:[108])]
                      spids: [104]
                    )
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:i)
                          op: Equal
                          spids: [113]
                        )
                        (assign_pair
                          lhs: (LhsName name:tmp)
                          op: Equal
                          spids: [115]
                        )
                      ]
                      spids: [111]
                    )
                    (ForEach
                      iter_name: i
                      iter_words: [
                        {
                          (BracedVarSub
                            token: <VSub_Name sessions>
                            bracket_op: (WholeArray op_id:Lit_At)
                            spids: [124 129]
                          )
                        }
                      ]
                      do_arg_iter: False
                      body: 
                        (DoGroup
                          children: [
                            (C 
                              {(res) (Lit_Other '[') 
                                (BracedVarSub
                                  token: <VSub_Name i>
                                  suffix_op: 
                                    (PatSub
                                      pat: {('+([0-9]).')}
                                      replace: {}
                                      do_all: False
                                      do_prefix: True
                                      do_suffix: False
                                    )
                                  spids: [137 143]
                                ) (Lit_Other ']') (Lit_Other '+') (Lit_Other '=') (DQ (' ') ($ VSub_Name '$i'))
                              }
                            )
                          ]
                          spids: [132 153]
                        )
                      spids: [123 130]
                    )
                    (ForEach
                      iter_name: i
                      iter_words: [
                        {
                          (BracedVarSub
                            token: <VSub_Name res>
                            prefix_op: VSub_Bang
                            bracket_op: (WholeArray op_id:Lit_At)
                            spids: [162 168]
                          )
                        }
                      ]
                      do_arg_iter: False
                      body: 
                        (DoGroup
                          children: [
                            (AndOr
                              children: [
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: 
                                        {
                                          (BracedVarSub
                                            token: <VSub_Name res>
                                            bracket_op: 
                                              (ArrayIndex
                                                expr: (ArithWord w:{($ VSub_Name '$i')})
                                              )
                                            spids: [176 181]
                                          )
                                        }
                                      right: 
                                        {(EscapedLiteralPart token:<Lit_EscapedChar '\\ '>) 
                                          (Lit_Other '*') (EscapedLiteralPart token:<Lit_EscapedChar '\\ '>) (Lit_Other '*')
                                        }
                                    )
                                )
                                (AndOr
                                  children: [
                                    (Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (LhsName name:tmp)
                                          op: PlusEqual
                                          rhs: 
                                            {
                                              (DQ (' ') 
                                                (BracedVarSub
                                                  token: <VSub_Name res>
                                                  bracket_op: 
                                                    (ArrayIndex
                                                      expr: (ArithWord w:{($ VSub_Name '$i')})
                                                    )
                                                  spids: [197 202]
                                                )
                                              )
                                            }
                                          spids: [194]
                                        )
                                      ]
                                      spids: [194]
                                    )
                                    (Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (LhsName name:tmp)
                                          op: PlusEqual
                                          rhs: {(DQ (' ') ($ VSub_Name '$i'))}
                                          spids: [207]
                                        )
                                      ]
                                      spids: [207]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                              ]
                              op_id: Op_DAmp
                            )
                          ]
                          spids: [171 214]
                        )
                      spids: [161 169]
                    )
                    (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 <'$tmp'>)} {(--)} 
                                              {(DQ ($ VSub_Name '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [220 236]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [217]
                        )
                      ]
                      spids: [217]
                    )
                  ]
                  spids: [97 241]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (AndOr
          children: [
            (FuncDef
              name: _screen
              body: 
                (BraceGroup
                  children: [
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:cur)
                          op: Equal
                          spids: [256]
                        )
                        (assign_pair
                          lhs: (LhsName name:prev)
                          op: Equal
                          spids: [258]
                        )
                        (assign_pair
                          lhs: (LhsName name:words)
                          op: Equal
                          spids: [260]
                        )
                        (assign_pair
                          lhs: (LhsName name:cword)
                          op: Equal
                          spids: [262]
                        )
                      ]
                      spids: [254]
                    )
                    (AndOr
                      children: [
                        (C {(_init_completion)})
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      op_id: Op_DPipe
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DParen
                                  child: 
                                    (ArithBinary
                                      op_id: Arith_Great
                                      left: (ArithVarRef name:cword)
                                      right: (ArithWord w:{(Lit_Digits 2)})
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Case
                              to_match: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name words>
                                    bracket_op: 
                                      (ArrayIndex
                                        expr: 
                                          (ArithBinary
                                            op_id: Arith_Minus
                                            left: (ArithVarRef name:cword)
                                            right: (ArithWord w:{(Lit_Digits 2)})
                                          )
                                      )
                                    spids: [290 297]
                                  )
                                }
                              arms: [
                                (case_arm
                                  pat_list: [{(-) (Lit_Other '[') (dD) (Lit_Other ']')}]
                                  action: [
                                    (C {(_screen_sessions)})
                                    (ControlFlow
                                      token: <ControlFlow_Return return>
                                      arg_word: {(0)}
                                    )
                                  ]
                                  spids: [302 306 317 16777215]
                                )
                              ]
                              spids: [288 299 320]
                            )
                          ]
                          spids: [16777215 285]
                        )
                      ]
                      spids: [16777215 323]
                    )
                    (Assignment
                      keyword: Assign_Local
                      pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[329])]
                      spids: [327]
                    )
                    (ForExpr
                      init: 
                        (BinaryAssign
                          op_id: Arith_Equal
                          left: (LhsName name:i)
                          right: (ArithWord w:{(Lit_Digits 1)})
                        )
                      cond: 
                        (ArithBinary
                          op_id: Arith_LessEqual
                          left: (ArithVarRef name:i)
                          right: (ArithVarRef name:cword)
                        )
                      update: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:i))
                      body: 
                        (DoGroup
                          children: [
                            (Case
                              to_match: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name words>
                                    bracket_op: (ArrayIndex expr:(ArithVarRef name:i))
                                    spids: [360 365]
                                  )
                                }
                              arms: [
                                (case_arm
                                  pat_list: [
                                    {(-r)}
                                    {(-R)}
                                    {(-d)}
                                    {(-D)}
                                    {(-x)}
                                    {(-s)}
                                    {(-c)}
                                    {(-T)}
                                    {(-e)}
                                    {(-h)}
                                    {(-p)}
                                    {(-S)}
                                    {(-t)}
                                  ]
                                  action: [
                                    (DParen
                                      child: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:i))
                                    )
                                    (ControlFlow
                                      token: <ControlFlow_Continue continue>
                                    )
                                  ]
                                  spids: [370 395 410 16777215]
                                )
                                (case_arm
                                  pat_list: [{(-) (Lit_Other '*')}]
                                  action: [(ControlFlow token:<ControlFlow_Continue continue>)]
                                  spids: [413 415 421 16777215]
                                )
                              ]
                              spids: [358 367 424]
                            )
                            (C {(_command_offset)} {($ VSub_Name '$i')})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                            )
                          ]
                          spids: [355 436]
                        )
                    )
                    (Case
                      to_match: {($ VSub_Name '$prev')}
                      arms: [
                        (case_arm
                          pat_list: [{(-) (Lit_Other '[') (rR) (Lit_Other ']')}]
                          action: [
                            (C {(_screen_sessions)} {(SQ <Detached>)})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {(0)}
                            )
                          ]
                          spids: [447 451 470 16777215]
                        )
                        (case_arm
                          pat_list: [{(-) (Lit_Other '[') (dD) (Lit_Other ']')}]
                          action: [
                            (C {(_screen_sessions)} {(SQ <Attached>)})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {(0)}
                            )
                          ]
                          spids: [473 477 496 16777215]
                        )
                        (case_arm
                          pat_list: [{(-x)}]
                          action: [
                            (C {(_screen_sessions)})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {(0)}
                            )
                          ]
                          spids: [499 500 515 16777215]
                        )
                        (case_arm
                          pat_list: [{(-s)}]
                          action: [
                            (C {(_shells)})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {(0)}
                            )
                          ]
                          spids: [518 519 530 16777215]
                        )
                        (case_arm
                          pat_list: [{(-c)}]
                          action: [
                            (C {(_filedir)})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {(0)}
                            )
                          ]
                          spids: [533 534 545 16777215]
                        )
                        (case_arm
                          pat_list: [{(-T)}]
                          action: [
                            (C {(_terms)})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {(0)}
                            )
                          ]
                          spids: [548 549 560 16777215]
                        )
                        (case_arm
                          pat_list: [{(-e)} {(-h)} {(-p)} {(-S)} {(-t)}]
                          action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                          spids: [563 572 580 16777215]
                        )
                      ]
                      spids: [440 444 583]
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_Name '$cur'))}
                                      right: {(-) (Lit_Other '*')}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          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 
                                                          <
'-a -A -c -d -D -e -f -fn -fa -h -i -ln -list\n'
                                                          > <'            -L -m -O -p -q -r -R -s -S -t -T -U -v -wipe -x -X --help\n'> <'            --version'>
                                                        )
                                                      } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [609 627]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [606]
                                )
                              ]
                              spids: [606]
                            )
                          ]
                          spids: [16777215 603]
                        )
                      ]
                      spids: [16777215 632]
                    )
                  ]
                  spids: [251]
                )
              spids: [247 250]
            )
            (C {(complete)} {(-F)} {(_screen)} {(screen)})
          ]
          op_id: Op_DAmp
        )
      ]
      op_id: Op_DAmp
    )
  ]
)