(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _optipng
          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: {($ VSub_Name '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{(-) (SQ <'?'>)} {(-h)} {(--help)} {(-f)}]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [37 47 53 16777215]
                    )
                    (case_arm
                      pat_list: [{(-o)}]
                      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..7}'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [63 79]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [60]
                            )
                          ]
                          spids: [60]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [56 57 87 16777215]
                    )
                    (case_arm
                      pat_list: [{(-out)} {(-log)}]
                      action: [(C {(_filedir)}) (ControlFlow token:<ControlFlow_Return return>)]
                      spids: [90 93 102 16777215]
                    )
                    (case_arm
                      pat_list: [{(-dir)}]
                      action: [(C {(_filedir)} {(-d)}) (ControlFlow token:<ControlFlow_Return return>)]
                      spids: [105 106 117 16777215]
                    )
                    (case_arm
                      pat_list: [{(-i)}]
                      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 1'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [127 143]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [124]
                            )
                          ]
                          spids: [124]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [120 121 151 16777215]
                    )
                    (case_arm
                      pat_list: [{(-zc)} {(-zm)}]
                      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 <'{1..9}'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [163 179]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [160]
                            )
                          ]
                          spids: [160]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [154 157 187 16777215]
                    )
                    (case_arm
                      pat_list: [{(-zw)}]
                      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 <'256 512 1k 2k 4k 8k 16k 32k'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [197 215]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [194]
                            )
                          ]
                          spids: [194]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [190 191 223 16777215]
                    )
                    (case_arm
                      pat_list: [{(-strip)}]
                      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 <all>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [233 249]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [230]
                            )
                          ]
                          spids: [230]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [226 227 257 16777215]
                    )
                  ]
                  spids: [30 34 260]
                )
                (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: [284 300]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [281]
                            )
                          ]
                          spids: [281]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [16777215 278]
                    )
                  ]
                  spids: [16777215 308]
                )
                (C {(_filedir)} {(SQ <'@(png|bmp|gif|pnm|tif?(f))'>)})
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_optipng)} {(optipng)})
      ]
      op_id: Op_DAmp
    )
  ]
)