(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _badblocks
          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: [{(-b)} {(-c)} {(-e)} {(-d)} {(-p)} {(-t)}]
                      action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                      spids: [37 48 56 16777215]
                    )
                    (case_arm
                      pat_list: [{(-i)} {(-o)}]
                      action: [
                        (C {(_filedir)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [59 62 73 16777215]
                    )
                  ]
                  spids: [30 34 76]
                )
                (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_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <'$( _parse_usage "$1" )'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [102 118]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [99]
                            )
                          ]
                          spids: [99]
                        )
                        (ForEach
                          iter_name: i
                          iter_words: [
                            {
                              (BracedVarSub
                                token: <VSub_Name COMPREPLY>
                                prefix_op: VSub_Bang
                                bracket_op: (WholeArray op_id:Lit_At)
                                spids: [133 139]
                              )
                            }
                          ]
                          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: [147 152]
                                              )
                                            }
                                          right: {(-) (Lit_Other '[') (wX) (Lit_Other ']')}
                                        )
                                    )
                                    (C {(unset)} {(SQ <'COMPREPLY[i]'>)})
                                  ]
                                  op_id: Op_DAmp
                                )
                              ]
                              spids: [142 172]
                            )
                          spids: [132 140]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [16777215 96]
                    )
                  ]
                  spids: [16777215 180]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:cur)
                      op: Equal
                      rhs: 
                        {
                          (BracedVarSub
                            token: <VSub_Name cur>
                            suffix_op: 
                              (StringUnary
                                op_id: VTest_ColonEquals
                                arg_word: {(Lit_Slash /) (dev) (Lit_Slash /)}
                              )
                            spids: [185 191]
                          )
                        }
                      spids: [184]
                    )
                  ]
                  spids: [184]
                )
                (C {(_filedir)})
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_badblocks)} {(badblocks)})
      ]
      op_id: Op_DAmp
    )
  ]
)