(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _vmstat
          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: [
                        {(-h)}
                        {(--help)}
                        {(-V)}
                        {(--version)}
                        {(-c)}
                        {(-M)}
                        {(-N)}
                        {(-n)}
                        {(-w)}
                        {(-p)}
                        {(--partition)}
                      ]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [37 58 64 16777215]
                    )
                    (case_arm
                      pat_list: [{(-S)} {(--unit)}]
                      action: [
                        (AndOr
                          children: [
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$OSTYPE')}
                                  right: {(Lit_Other '*') (linux) (Lit_Other '*')}
                                )
                            )
                            (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 <'k K m M'>)} {(--)} 
                                                      {(DQ ($ VSub_Name '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [92 108]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [89]
                                )
                              ]
                              spids: [89]
                            )
                          ]
                          op_id: Op_DAmp
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [67 70 116 16777215]
                    )
                  ]
                  spids: [30 34 119]
                )
                (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: [143 159]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [140]
                            )
                          ]
                          spids: [140]
                        )
                        (AndOr
                          children: [
                            (DBracket
                              expr: (WordTest w:{($ VSub_Name '$COMPREPLY')})
                            )
                            (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: [177 193]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [174]
                                )
                              ]
                              spids: [174]
                            )
                          ]
                          op_id: Op_DPipe
                        )
                      ]
                      spids: [16777215 137]
                    )
                  ]
                  spids: [16777215 198]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_vmstat)} {(vmstat)})
      ]
      op_id: Op_DAmp
    )
  ]
)