(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _protoc
          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: [{(--proto_path)} {(--cpp_out)} {(--java_out)} {(--python_out)}]
                      action: [(C {(_filedir)} {(-d)}) (ControlFlow token:<ControlFlow_Return return>)]
                      spids: [41 48 59 16777215]
                    )
                    (case_arm
                      pat_list: [{(--version)} {(-h)} {(--help)} {(--encode)} {(--decode)}]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [62 71 77 16777215]
                    )
                    (case_arm
                      pat_list: [{(--descriptor_set_out)}]
                      action: [(C {(_filedir)}) (ControlFlow token:<ControlFlow_Return return>)]
                      spids: [80 81 90 16777215]
                    )
                    (case_arm
                      pat_list: [{(--error_format)}]
                      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 <'gcc msvs'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [100 116]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [97]
                            )
                          ]
                          spids: [97]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [93 94 124 16777215]
                    )
                    (case_arm
                      pat_list: [{(--plugin)}]
                      action: [
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (DBracket
                                      expr: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobNEqual
                                          left: {($ VSub_Name '$cur')}
                                          right: 
                                            {(Lit_Other '*') (BoolBinary_GlobEqual '=') 
                                              (Lit_Other '*')
                                            }
                                        )
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [
                                (C {(compopt)} {(-o)} {(filenames)})
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:COMPREPLY)
                                      op: Equal
                                      rhs: 
                                        {
                                          (ArrayLiteralPart
                                            words: [
                                              {
                                                (CommandSubPart
                                                  command_list: 
                                                    (CommandList
                                                      children: [
                                                        (C {(compgen)} {(-c)} {(--)} 
                                                          {(DQ ($ VSub_Name '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [159 171]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [156]
                                    )
                                  ]
                                  spids: [156]
                                )
                              ]
                              spids: [16777215 146]
                            )
                          ]
                          spids: [16777215 176]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [127 128 182 16777215]
                    )
                  ]
                  spids: [34 38 185]
                )
                (AndOr
                  children: [
                    (C {($ VSub_Name '$split')})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                  op_id: Op_DAmp
                )
                (Case
                  to_match: {($ VSub_Name '$cur')}
                  arms: [
                    (case_arm
                      pat_list: [{(-o) (Lit_Other '*')}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:cur)
                              op: Equal
                              rhs: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name cur>
                                    suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)}))
                                    spids: [210 214]
                                  )
                                }
                              spids: [209]
                            )
                          ]
                          spids: [209]
                        )
                        (C {(_filedir)})
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (DQ 
                                          (BracedVarSub
                                            token: <VSub_Name COMPREPLY>
                                            bracket_op: (WholeArray op_id:Lit_At)
                                            suffix_op: 
                                              (PatSub
                                                pat: {}
                                                replace: {(-o)}
                                                do_all: False
                                                do_prefix: True
                                                do_suffix: False
                                              )
                                            spids: [224 233]
                                          )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [220]
                            )
                          ]
                          spids: [220]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [204 206 242 16777215]
                    )
                    (case_arm
                      pat_list: [{(-I) (Lit_Other '*')}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:cur)
                              op: Equal
                              rhs: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name cur>
                                    suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)}))
                                    spids: [251 255]
                                  )
                                }
                              spids: [250]
                            )
                          ]
                          spids: [250]
                        )
                        (C {(_filedir)} {(-d)})
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (DQ 
                                          (BracedVarSub
                                            token: <VSub_Name COMPREPLY>
                                            bracket_op: (WholeArray op_id:Lit_At)
                                            suffix_op: 
                                              (PatSub
                                                pat: {}
                                                replace: {(-I)}
                                                do_all: False
                                                do_prefix: True
                                                do_suffix: False
                                              )
                                            spids: [267 276]
                                          )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [263]
                            )
                          ]
                          spids: [263]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [245 247 285 16777215]
                    )
                    (case_arm
                      pat_list: [{(-) (Lit_Other '*')}]
                      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 <'$( _parse_help "$1" )'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [296 312]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [293]
                            )
                          ]
                          spids: [293]
                        )
                        (Assignment
                          keyword: Assign_Local
                          pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[319])]
                          spids: [317]
                        )
                        (ForEach
                          iter_name: i
                          iter_words: [
                            {
                              (BracedVarSub
                                token: <VSub_Name COMPREPLY>
                                prefix_op: VSub_Bang
                                bracket_op: (WholeArray op_id:Lit_At)
                                spids: [328 334]
                              )
                            }
                          ]
                          do_arg_iter: False
                          body: 
                            (DoGroup
                              children: [
                                (AndOr
                                  children: [
                                    (DBracket
                                      expr: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: 
                                            {
                                              (BracedVarSub
                                                token: <VSub_Name COMPREPLY>
                                                bracket_op: (ArrayIndex expr:(ArithVarRef name:i))
                                                spids: [342 347]
                                              )
                                            }
                                          right: {(-oFILE)}
                                        )
                                    )
                                    (C {(unset)} {(SQ <'COMPREPLY[i]'>)})
                                  ]
                                  op_id: Op_DAmp
                                )
                              ]
                              spids: [337 364]
                            )
                          spids: [327 335]
                        )
                        (AndOr
                          children: [
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$COMPREPLY')}
                                  right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                                )
                            )
                            (C {(compopt)} {(-o)} {(nospace)})
                          ]
                          op_id: Op_DAmp
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [288 290 390 16777215]
                    )
                  ]
                  spids: [197 201 393]
                )
                (C {(_filedir)} {(proto)})
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_protoc)} {(protoc)})
      ]
      op_id: Op_DAmp
    )
  ]
)