(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _xrandr
          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])
                  ]
                  spids: [11]
                )
                (AndOr
                  children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
                  op_id: Op_DPipe
                )
                (Case
                  to_match: {(DQ ($ VSub_Name '$prev'))}
                  arms: [
                    (case_arm
                      pat_list: [
                        {(-display)}
                        {(-d)}
                        {(-help)}
                        {(-s)}
                        {(--size)}
                        {(-r)}
                        {(--rate)}
                        {(--refresh)}
                        {(--screen)}
                        {(--fb)}
                        {(--fbmm)}
                        {(--dpi)}
                        {(--pos)}
                        {(--set)}
                        {(--scale)}
                        {(--transform)}
                        {(--crtc)}
                        {(--panning)}
                        {(--gamma)}
                        {(--newmode)}
                        {(--rmmode)}
                        {(--addmode)}
                        {(--delmode)}
                      ]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [39 88 94 16777215]
                    )
                    (case_arm
                      pat_list: [
                        {(--output)}
                        {(--left-of)}
                        {(--right-of)}
                        {(--above)}
                        {(--below)}
                        {(--same-as)}
                      ]
                      action: [
                        (Assignment
                          keyword: Assign_Local
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:outputs)
                              op: Equal
                              rhs: 
                                {
                                  (CommandSubPart
                                    command_list: 
                                      (CommandList
                                        children: [
                                          (Pipeline
                                            children: [
                                              (C {(DQ ($ VSub_Number '$1'))})
                                              (C {(awk)} {(SQ <'/connected/ {print $1}'>)})
                                            ]
                                            negated: False
                                          )
                                        ]
                                      )
                                    left_token: <Left_CommandSub '$('>
                                    spids: [114 128]
                                  )
                                }
                              spids: [113]
                            )
                          ]
                          spids: [111]
                        )
                        (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 '$outputs'))} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [134 150]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [131]
                            )
                          ]
                          spids: [131]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [97 108 158 16777215]
                    )
                    (case_arm
                      pat_list: [{(--mode)}]
                      action: [
                        (Assignment
                          keyword: Assign_Local
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:i)
                              op: Equal
                              spids: [167]
                            )
                            (assign_pair
                              lhs: (LhsName name:output)
                              op: Equal
                              spids: [169]
                            )
                          ]
                          spids: [165]
                        )
                        (ForExpr
                          init: 
                            (BinaryAssign
                              op_id: Arith_Equal
                              left: (LhsName name:i)
                              right: (ArithWord w:{(Lit_Digits 1)})
                            )
                          cond: 
                            (ArithBinary
                              op_id: Arith_Less
                              left: (ArithVarRef name:i)
                              right: (ArithVarRef name:cword)
                            )
                          update: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:i))
                          body: 
                            (DoGroup
                              children: [
                                (If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (Sentence
                                          child: 
                                            (DBracket
                                              expr: 
                                                (BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: 
                                                    {
                                                      (DQ 
                                                        (BracedVarSub
                                                          token: <VSub_Name words>
                                                          bracket_op: 
                                                            (ArrayIndex
                                                              expr: (ArithVarRef name:i)
                                                            )
                                                          spids: [203 208]
                                                        )
                                                      )
                                                    }
                                                  right: {(--output)}
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (Assignment
                                          keyword: Assign_None
                                          pairs: [
                                            (assign_pair
                                              lhs: (LhsName name:output)
                                              op: Equal
                                              rhs: 
                                                {
                                                  (BracedVarSub
                                                    token: <VSub_Name words>
                                                    bracket_op: 
                                                      (ArrayIndex
                                                        expr: 
                                                          (ArithBinary
                                                            op_id: Arith_Plus
                                                            left: (ArithVarRef name:i)
                                                            right: (ArithWord w:{(Lit_Digits 1)})
                                                          )
                                                      )
                                                    spids: [222 229]
                                                  )
                                                }
                                              spids: [221]
                                            )
                                          ]
                                          spids: [221]
                                        )
                                        (ControlFlow
                                          token: <ControlFlow_Break break>
                                        )
                                      ]
                                      spids: [16777215 218]
                                    )
                                  ]
                                  spids: [16777215 235]
                                )
                              ]
                              spids: [195 238]
                            )
                        )
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: (DBracket expr:(WordTest w:{($ VSub_Name '$output')}))
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [
                                (Assignment
                                  keyword: Assign_Local
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:modes)
                                      op: Equal
                                      rhs: 
                                        {
                                          (CommandSubPart
                                            command_list: 
                                              (CommandList
                                                children: [
                                                  (Pipeline
                                                    children: [
                                                      (C {(DQ ($ VSub_Number '$1'))})
                                                      (C {(sed)} {(-e)} 
                                                        {
                                                          (DQ ('1,/') ($ VSub_Name '$output') ('/ d'))
                                                        } {(-e)} {(DQ ('/connected/,') (Lit_Other '$') (' d'))} {(-e)} 
                                                        {
                                                          (DQ (s/) (Lit_Other '\\') ('([^[:space:]]') 
                                                            (Lit_Other '\\') (')[[:space:]].*/') (Lit_Other '\\') (1/)
                                                          )
                                                        }
                                                      )
                                                    ]
                                                    negated: False
                                                  )
                                                ]
                                              )
                                            left_token: <Left_CommandSub '$('>
                                            spids: [256 298]
                                          )
                                        }
                                      spids: [255]
                                    )
                                  ]
                                  spids: [253]
                                )
                                (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 '$modes'))} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [304 320]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [301]
                                    )
                                  ]
                                  spids: [301]
                                )
                              ]
                              spids: [16777215 250]
                            )
                          ]
                          spids: [16777215 325]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [161 162 331 16777215]
                    )
                    (case_arm
                      pat_list: [{(-o)} {(--orientation)}]
                      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 <'normal inverted left right 0 1 2 3'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [343 361]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [340]
                            )
                          ]
                          spids: [340]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [334 337 369 16777215]
                    )
                    (case_arm
                      pat_list: [{(--reflect)}]
                      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 <'normal x y xy'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [379 395]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [376]
                            )
                          ]
                          spids: [376]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [372 373 403 16777215]
                    )
                    (case_arm
                      pat_list: [{(--rotate)}]
                      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 <'normal inverted left right'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [413 429]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [410]
                            )
                          ]
                          spids: [410]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [406 407 437 16777215]
                    )
                    (case_arm
                      pat_list: [{(--setprovideroutputsource)} {(--setprovideroffloadsink)}]
                      action: [
                        (Assignment
                          keyword: Assign_Local
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:providers)
                              op: Equal
                              rhs: 
                                {
                                  (CommandSubPart
                                    command_list: 
                                      (CommandList
                                        children: [
                                          (Pipeline
                                            children: [
                                              (SimpleCommand
                                                words: [{(DQ ($ VSub_Number '$1'))} {(--listproviders)}]
                                                redirects: [
                                                  (Redir
                                                    op_id: Redir_Great
                                                    fd: 2
                                                    arg_word: {(/dev/null)}
                                                    spids: [457]
                                                  )
                                                ]
                                              )
                                              (C {(sed)} {(-ne)} {(SQ <'s/.* name:\\([^ ]*\\).*/\\1/p'>)})
                                            ]
                                            negated: False
                                          )
                                        ]
                                      )
                                    left_token: <Left_CommandSub '$('>
                                    spids: [449 471]
                                  )
                                }
                              spids: [448]
                            )
                          ]
                          spids: [446]
                        )
                        (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 '$providers'))} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [477 493]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [474]
                            )
                          ]
                          spids: [474]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [440 443 505 16777215]
                    )
                  ]
                  spids: [30 36 508]
                )
                (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 <'$( "$1" -help 2>&1 |\n'> 
                                              <
'        sed -e "s/ or / /g" -e "s/<[^>]*>]//g" | _parse_help - )'
                                              >
                                            )
                                          } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [515 532]
                                )
                              }
                            ]
                          )
                        }
                      spids: [512]
                    )
                  ]
                  spids: [512]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_xrandr)} {(xrandr)})
      ]
      op_id: Op_DAmp
    )
  ]
)