(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _mock
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[20])
                  op: Equal
                  spids: [20]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[22])
                  op: Equal
                  spids: [22]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[24])
                  op: Equal
                  spids: [24]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[26])
                  op: Equal
                  spids: [26]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:split spids:[28])
                  op: Equal
                  spids: [28]
                )
              ]
              spids: [18]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)} {(-s)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:plugins spids:[43])
                  op: Equal
                  rhs: {(SQ <'tmpfs root_cache yum_cache bind_mount ccache'>)}
                  spids: [43]
                )
              ]
              spids: [41]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cfgdir spids:[51])
                  op: Equal
                  rhs: {(/etc/mock)}
                  spids: [51]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:count spids:[54])
                  op: Equal
                  rhs: {(0)}
                  spids: [54]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:i spids:[57])
                  op: Equal
                  spids: [57]
                )
              ]
              spids: [49]
            )
            (command.ForEach
              iter_name: i
              iter_words: [
                {
                  (DQ 
                    (word_part.BracedVarSub
                      token: <VSub_Name words>
                      bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                      spids: [68 73]
                    )
                  )
                }
              ]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (command.AndOr
                      ops: [Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_eq
                              left: {($ VSub_DollarName '$count')}
                              right: {($ VSub_DollarName '$cword')}
                            )
                        )
                        (command.ControlFlow token:<ControlFlow_Break break>)
                      ]
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_DollarName '$i'))}
                                      right: {(--configdir)}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:cfgdir spids:[115])
                                  op: Equal
                                  rhs: 
                                    {
                                      (DQ 
                                        (word_part.BracedVarSub
                                          token: <VSub_Name words>
                                          bracket_op: 
                                            (bracket_op.ArrayIndex
                                              expr: 
                                                (arith_expr.ArithBinary
                                                  op_id: Arith_Plus
                                                  left: 
                                                    (arith_expr.ArithVarRef
                                                      token: <Lit_ArithVarLike count>
                                                    )
                                                  right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                                                )
                                            )
                                          spids: [117 128]
                                        )
                                      )
                                    }
                                  spids: [115]
                                )
                              ]
                              spids: [115]
                            )
                          ]
                          spids: [16777215 112]
                        )
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_DollarName '$i'))}
                                      right: 
                                        {(--configdir) (BoolBinary_GlobEqual '=') (Lit_Other '*')}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:cfgdir spids:[153])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.BracedVarSub
                                        token: <VSub_Name i>
                                        suffix_op: 
                                          (suffix_op.PatSub
                                            pat: {('*=')}
                                            replace: {}
                                            replace_mode: Undefined_Tok
                                            spids: [156]
                                          )
                                        spids: [154 159]
                                      )
                                    }
                                  spids: [153]
                                )
                              ]
                              spids: [153]
                            )
                          ]
                          spids: [132 150]
                        )
                      ]
                      spids: [16777215 162]
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:count spids:[165])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArithSubPart
                                anode: 
                                  (arith_expr.UnaryAssign
                                    op_id: Arith_DPlus
                                    child: (lhs_expr.LhsName name:count spids:[168])
                                  )
                                spids: [166 170]
                              )
                            }
                          spids: [165]
                        )
                      ]
                      spids: [165]
                    )
                  ]
                  spids: [78 173]
                )
              spids: [66 76]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [
                    {(-h)}
                    {(--help)}
                    {(--copyin)}
                    {(--copyout)}
                    {(--arch)}
                    {(-D)}
                    {(--define)}
                    {(--with)}
                    {(--without)}
                    {(--uniqueext)}
                    {(--rpmbuild_timeout)}
                    {(--sources)}
                    {(--cwd)}
                  ]
                  action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                  spids: [184 211 219 16777215]
                )
                (case_arm
                  pat_list: [{(-r)} {(--root)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[228])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (DQ 
                                                  (word_part.CommandSubPart
                                                    command_list: 
                                                      (command.CommandList
                                                        children: [
                                                          (C {(command)} {(ls)} 
                                                            {($ VSub_DollarName '$cfgdir')}
                                                          )
                                                        ]
                                                      )
                                                    left_token: <Left_CommandSub '$('>
                                                    spids: [238 246]
                                                  )
                                                )
                                              } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [231 255]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [228]
                        )
                      ]
                      spids: [228]
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[260])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.BracedVarSub
                                      token: <VSub_Name COMPREPLY>
                                      bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                                      suffix_op: 
                                        (suffix_op.PatSub
                                          pat: {(.cfg)}
                                          replace: {}
                                          replace_mode: Lit_Percent
                                          spids: [268]
                                        )
                                      spids: [263 272]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [260]
                        )
                      ]
                      spids: [260]
                    )
                    (command.ControlFlow
                      token: <ControlFlow_Return return>
                      arg_word: {(0)}
                    )
                  ]
                  spids: [222 225 282 16777215]
                )
                (case_arm
                  pat_list: [{(--configdir)} {(--resultdir)}]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (command.ControlFlow
                      token: <ControlFlow_Return return>
                      arg_word: {(0)}
                    )
                  ]
                  spids: [285 288 301 16777215]
                )
                (case_arm
                  pat_list: [{(--spec)}]
                  action: [
                    (C {(_filedir)} {(spec)})
                    (command.ControlFlow
                      token: <ControlFlow_Return return>
                      arg_word: {(0)}
                    )
                  ]
                  spids: [304 305 318 16777215]
                )
                (case_arm
                  pat_list: [{(--target)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[341])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (DQ 
                                                  (word_part.CommandSubPart
                                                    command_list: 
                                                      (command.CommandList
                                                        children: [
                                                          (command.Pipeline
                                                            children: [
                                                              (C {(command)} {(rpm)} {(--showrc)})
                                                              (C {(sed)} {(-ne)} 
                                                                {
                                                                  (SQ 
                                                                    <
's/^\\s*compatible\\s\\s*archs\\s*:\\s*\\(.*\\)/\\1/i p'
                                                                    >
                                                                  )
                                                                }
                                                              )
                                                            ]
                                                            negated: F
                                                          )
                                                        ]
                                                      )
                                                    left_token: <Left_CommandSub '$('>
                                                    spids: [351 371]
                                                  )
                                                )
                                              } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [344 382]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [341]
                        )
                      ]
                      spids: [341]
                    )
                    (command.ControlFlow
                      token: <ControlFlow_Return return>
                      arg_word: {(0)}
                    )
                  ]
                  spids: [321 322 392 16777215]
                )
                (case_arm
                  pat_list: [{(--enable-plugin)} {(--disable-plugin)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[401])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(DQ ($ VSub_DollarName '$plugins'))} 
                                              {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [404 420]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [401]
                        )
                      ]
                      spids: [401]
                    )
                    (command.ControlFlow
                      token: <ControlFlow_Return return>
                      arg_word: {(0)}
                    )
                  ]
                  spids: [395 398 430 16777215]
                )
              ]
              spids: [177 181 433]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (C {($ VSub_DollarName '$split')})
                (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_DollarName '$cur'))}
                              right: {(-) (Lit_Other '*')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[467])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" )'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [470 486]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [467]
                        )
                      ]
                      spids: [467]
                    )
                    (command.AndOr
                      ops: [Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_DollarName '$COMPREPLY')}
                              right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                            )
                        )
                        (C {(compopt)} {(-o)} {(nospace)})
                      ]
                    )
                  ]
                  spids: [16777215 464]
                )
              ]
              else_action: [(C {(_filedir)} {(SQ <'@(?(no)src.r|s)pm'>)})]
              spids: [511 521]
            )
          ]
          spids: [15]
        )
      spids: [11 14]
    )
    (C {(complete)} {(-F)} {(_mock)} {(mock)})
  ]
)