(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _patch
          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: [
                        {(-p)}
                        {(--strip)}
                        {(-D)}
                        {(--ifdef)}
                        {(-B)}
                        {(--prefix)}
                        {(-Y)}
                        {(--basename-prefix)}
                        {(-z)}
                        {(--suffix)}
                        {(-g)}
                        {(--get)}
                      ]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [41 66 72 16777215]
                    )
                    (case_arm
                      pat_list: [{(-F)} {(--fuzz)}]
                      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 <'{0..3}'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [84 100]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [81]
                            )
                          ]
                          spids: [81]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [75 78 108 16777215]
                    )
                    (case_arm
                      pat_list: [{(-i)} {(--input)}]
                      action: [
                        (C {(_filedir)} {(SQ <'@(?(d)patch|dif?(f))'>)})
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [111 114 127 16777215]
                    )
                    (case_arm
                      pat_list: [{(-o)} {(--output)} {(-r)} {(--reject-file)}]
                      action: [
                        (AndOr
                          children: [
                            (DBracket
                              expr: 
                                (LogicalOr
                                  left: (LogicalNot child:(WordTest w:{($ VSub_Name '$cur')}))
                                  right: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {($ VSub_Name '$cur')}
                                      right: {(-)}
                                    )
                                )
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: {(ArrayLiteralPart words:[{(-)}])}
                                  spids: [158]
                                )
                              ]
                              spids: [158]
                            )
                          ]
                          op_id: Op_DAmp
                        )
                        (C {(_filedir)})
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [130 137 172 16777215]
                    )
                    (case_arm
                      pat_list: [{(--quoting-style)}]
                      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 <'literal shell shell-always c escape'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [182 200]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [179]
                            )
                          ]
                          spids: [179]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [175 176 208 16777215]
                    )
                    (case_arm
                      pat_list: [{(-V)} {(--version-control)}]
                      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 <'simple numbered existing'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [220 236]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [217]
                            )
                          ]
                          spids: [217]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [211 214 244 16777215]
                    )
                    (case_arm
                      pat_list: [{(-d)} {(--directory)}]
                      action: [(C {(_filedir)} {(-d)}) (ControlFlow token:<ControlFlow_Return return>)]
                      spids: [247 250 261 16777215]
                    )
                    (case_arm
                      pat_list: [{(--reject-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 <'context unified'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [271 287]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [268]
                            )
                          ]
                          spids: [268]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [264 265 295 16777215]
                    )
                    (case_arm
                      pat_list: [{(--read-only)}]
                      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 <'ignore warn fail'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [305 321]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [302]
                            )
                          ]
                          spids: [302]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [298 299 329 16777215]
                    )
                  ]
                  spids: [34 38 332]
                )
                (AndOr
                  children: [
                    (C {($ VSub_Name '$split')})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                  op_id: Op_DAmp
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ 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 <'$( _parse_help "$1" )'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [364 380]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [361]
                            )
                          ]
                          spids: [361]
                        )
                        (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: [16777215 358]
                    )
                  ]
                  spids: [16777215 408]
                )
                (Assignment
                  keyword: Assign_Local
                  pairs: [(assign_pair lhs:(LhsName name:args) op:Equal spids:[414])]
                  spids: [412]
                )
                (C {(_count_args)})
                (Case
                  to_match: {($ VSub_Name '$args')}
                  arms: [
                    (case_arm
                      pat_list: [{(1)}]
                      action: [(C {(_filedir)})]
                      spids: [427 428 434 16777215]
                    )
                    (case_arm
                      pat_list: [{(2)}]
                      action: [(C {(_filedir)} {(SQ <'@(?(d)patch|dif?(f))'>)})]
                      spids: [437 438 448 16777215]
                    )
                  ]
                  spids: [420 424 451]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_patch)} {(patch)})
      ]
      op_id: Op_DAmp
    )
  ]
)