(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _rrdtool
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[14])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[16])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[18])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[20])
                  ]
                  spids: [12]
                )
                (AndOr
                  children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
                  op_id: Op_DPipe
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_eq
                                  left: 
                                    {
                                      (BracedVarSub
                                        token: <VSub_Name words>
                                        prefix_op: VSub_Pound
                                        bracket_op: (WholeArray op_id:Lit_At)
                                        spids: [35 41]
                                      )
                                    }
                                  right: {(2)}
                                )
                            )
                          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 
                                                      <
'create update updatev graph dump restore\n'
                                                      > <'            last lastupdate first info fetch tune resize xport'>
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [56 73]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [53]
                            )
                          ]
                          spids: [53]
                        )
                      ]
                      spids: [16777215 50]
                    )
                  ]
                  else_action: [(C {(_filedir)} {(rrd)})]
                  spids: [78 86]
                )
              ]
              spids: [9]
            )
          spids: [4 8]
        )
        (C {(complete)} {(-F)} {(_rrdtool)} {(rrdtool)})
      ]
      op_id: Op_DAmp
    )
  ]
)