(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _chgrp
          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
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:cur)
                      op: Equal
                      rhs: 
                        {
                          (BracedVarSub
                            token: <VSub_Name cur>
                            suffix_op: 
                              (PatSub
                                pat: 
                                  {(EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) 
                                    (EscapedLiteralPart
                                      token: <Lit_EscapedChar '\\\\'>
                                    )
                                  }
                                replace: {}
                                do_all: True
                                do_prefix: False
                                do_suffix: False
                              )
                            spids: [35 42]
                          )
                        }
                      spids: [34]
                    )
                  ]
                  spids: [34]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {(DQ ($ VSub_Name '$prev'))}
                                  right: {(--reference)}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (C {(_filedir)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [16777215 61]
                    )
                  ]
                  spids: [16777215 72]
                )
                (AndOr
                  children: [
                    (C {($ VSub_Name '$split')})
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  op_id: Op_DAmp
                )
                (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_Local
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:w)
                              op: Equal
                              spids: [111]
                            )
                            (assign_pair
                              lhs: (LhsName name:opts)
                              op: Equal
                              spids: [113]
                            )
                          ]
                          spids: [109]
                        )
                        (ForEach
                          iter_name: w
                          iter_words: [
                            {
                              (DQ 
                                (BracedVarSub
                                  token: <VSub_Name words>
                                  bracket_op: (WholeArray op_id:Lit_At)
                                  spids: [123 128]
                                )
                              )
                            }
                          ]
                          do_arg_iter: False
                          body: 
                            (DoGroup
                              children: [
                                (AndOr
                                  children: [
                                    (DBracket
                                      expr: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: {(DQ ($ VSub_Name '$w'))}
                                          right: 
                                            {(-) (ExtGlobPart op:<ExtGlob_At '@('> spids:[145 149])}
                                        )
                                    )
                                    (AndOr
                                      children: [
                                        (Assignment
                                          keyword: Assign_None
                                          pairs: [
                                            (assign_pair
                                              lhs: (LhsName name:opts)
                                              op: Equal
                                              rhs: {(DQ ('-H -L -P'))}
                                              spids: [155]
                                            )
                                          ]
                                          spids: [155]
                                        )
                                        (ControlFlow
                                          token: <ControlFlow_Break break>
                                        )
                                      ]
                                      op_id: Op_DAmp
                                    )
                                  ]
                                  op_id: Op_DAmp
                                )
                              ]
                              spids: [133 165]
                            )
                          spids: [121 131]
                        )
                        (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 <'-c -h -f -R -v --changes --dereference\n'> 
                                                      <
'            --no-dereference --silent --quiet --reference --recursive --verbose\n'
                                                      > <'            --help --version $opts'>
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [171 189]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [168]
                            )
                          ]
                          spids: [168]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [16777215 106]
                    )
                  ]
                  spids: [16777215 199]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (LogicalOr
                                  left: 
                                    (LogicalAnd
                                      left: 
                                        (BoolBinary
                                          op_id: BoolBinary_eq
                                          left: {($ VSub_Name '$cword')}
                                          right: {(1)}
                                        )
                                      right: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobNEqual
                                          left: {(DQ ($ VSub_Name '$cur'))}
                                          right: {(-) (Lit_Other '*')}
                                        )
                                    )
                                  right: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_Name '$prev'))}
                                      right: {(-) (Lit_Other '*')}
                                    )
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [(C {(_allowed_groups)} {(DQ ($ VSub_Name '$cur'))})]
                      spids: [16777215 242]
                    )
                  ]
                  else_action: [
                    (AndOr
                      children: [
                        (C {(_filedir)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      op_id: Op_DPipe
                    )
                  ]
                  spids: [252 264]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_chgrp)} {(chgrp)})
      ]
      op_id: Op_DAmp
    )
  ]
)