(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _dmesg
      body: 
        (command.BraceGroup
          children: [
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.BoolBinary
                      op_id: BoolBinary_GlobDEqual
                      left: {($ VSub_DollarName '$OSTYPE')}
                      right: {(Lit_Other '*') (solaris) (Lit_Other '*')}
                    )
                )
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[41])
                  op: Equal
                  spids: [41]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[43])
                  op: Equal
                  spids: [43]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[45])
                  op: Equal
                  spids: [45]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[47])
                  op: Equal
                  spids: [47]
                )
              ]
              spids: [39]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [{(-h)} {(--help)} {(-V)} {(--version)} {(-s)} {(--buffer-size)} {(-M)} {(-N)}]
                  action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                  spids: [65 80 86 16777215]
                )
                (case_arm
                  pat_list: [{(-f)} {(--facility)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[95])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (SQ <'kern user mail daemon auth syslog lpr\n'> 
                                                  <'                news'>
                                                )
                                              } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [98 115]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [95]
                        )
                      ]
                      spids: [95]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [89 92 123 16777215]
                )
                (case_arm
                  pat_list: [{(-l)} {(--level)} {(-n)} {(--console-level)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[136])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'{1..8}'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [139 155]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [136]
                        )
                      ]
                      spids: [136]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [126 133 163 16777215]
                )
              ]
              spids: [58 62 166]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:opts spids:[172])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [(C {(_parse_help)} {(DQ ($ VSub_Number '$1'))})]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [173 181]
                      )
                    }
                  spids: [172]
                )
              ]
              spids: [170]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (command.DBracket
                  expr: (bool_expr.WordTest w:{($ VSub_DollarName '$opts')})
                )
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:opts spids:[192])
                      op: Equal
                      rhs: 
                        {
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [(C {(_parse_usage)} {(DQ ($ VSub_Number '$1'))})]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [193 201]
                          )
                        }
                      spids: [192]
                    )
                  ]
                  spids: [192]
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[204])
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(DQ ($ VSub_DollarName '$opts'))} {(--)} 
                                      {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [207 223]
                            )
                          }
                        ]
                      )
                    }
                  spids: [204]
                )
              ]
              spids: [204]
            )
          ]
          spids: [15]
        )
      spids: [11 14]
    )
    (C {(complete)} {(-F)} {(_dmesg)} {(dmesg)})
  ]
)