(command.CommandList
  children: [
    (C {(Id.KW_Set set)} {(-e)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(test)} {(-f)} {(/usr/bin/loadkeys)})
        (command.ControlFlow
          token: (Token id:Id.ControlFlow_Exit val:exit span_id:57)
          arg_word: {(0)}
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (C {(Id.Lit_LBracket '[')} {(-f)} {(/etc/default/locale)} {(Id.Lit_RBracket ']')})
              terminator: (Token id:Id.Op_Semi val:';' span_id:71)
            )
          ]
          action: [(C {(.)} {(/etc/default/locale)}) (C {(export)} {(LANG)})]
          spids: [62 73]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {(-f)} {(/lib/lsb/init-functions)} {(Id.Lit_RBracket ']')})
              terminator: (Token id:Id.Op_Semi val:';' span_id:105)
            )
          ]
          action: [(C {(.)} {(/lib/lsb/init-functions)})]
          spids: [96 107]
        )
      ]
      else_action: [
        (command.ShFunction
          name: log_action_begin_msg
          body: 
            (command.BraceGroup
              children: [(C {(echo)} {(-n)} {(DQ ($ Id.VSub_At '$@') ('... '))})]
            )
        )
        (command.ShFunction
          name: log_action_end_msg
          body: 
            (command.BraceGroup
              children: [
                (command.If
                  arms: [
                    (if_arm
                      cond: [
                        (command.Sentence
                          child: 
                            (C {(Id.Lit_LBracket '[')} {(DQ ($ Id.VSub_Number '$1'))} {(-eq)} {(0)} 
                              {(Id.Lit_RBracket ']')}
                            )
                          terminator: (Token id:Id.Op_Semi val:';' span_id:160)
                        )
                      ]
                      action: [(C {(echo)} {(done.)})]
                      spids: [147 162]
                    )
                  ]
                  else_action: [(C {(echo)} {(failed.)})]
                )
              ]
            )
        )
      ]
    )
    (command.Case
      to_match: {(DQ ($ Id.VSub_Number '$1'))}
      arms: [
        (case_arm pat_list:[{(stop)} {(status)}] spids:[196 199 206 -1])
        (case_arm
          pat_list: [{(start)} {(force-reload)} {(restart)} {(reload)}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: (C {(loadkeys)} {(/etc/console-setup/cached.kmap.gz)})
                      terminator: (Token id:Id.Op_Semi val:';' span_id:225)
                    )
                  ]
                  action: [(C {(log_action_end_msg)} {(0)})]
                  spids: [219 227]
                )
              ]
              else_action: [(C {(log_action_end_msg)} {($ Id.VSub_QMark '$?')})]
            )
          ]
          spids: [209 216 246 -1]
        )
        (case_arm
          pat_list: [{(Id.Lit_Star '*')}]
          action: [
            (C {(echo)} 
              {
                (SQ 
                  (Token
                    id: Id.Lit_Chars
                    val: 
'Usage: /etc/init.d/console-setup {start|reload|restart|force-reload|stop|status}'
                    span_id: 256
                  )
                )
              }
            )
            (command.ControlFlow
              token: (Token id:Id.ControlFlow_Exit val:exit span_id:260)
              arg_word: {(1)}
            )
          ]
          spids: [249 250 265 -1]
        )
      ]
    )
    (command.ControlFlow token:(Token id:Id.ControlFlow_Exit val:exit span_id:270) arg_word:{(0)})
  ]
)