(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH)
          op: assign_op.Equal
          rhs: {<'/usr/sbin'> <Id.Lit_Colon ':'> <'/usr/bin'>}
          spids: [101]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName SMF_RESTARTER))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} {(DQ <'Cannot be run outside smf(5)'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [107 120]
        )
      ]
      else_action: []
      redirects: []
    )
    (C {<.>} {<'/lib/svc/share/smf_include.sh'>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'action='> name:action)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Number 1)}
          spids: [142]
        )
      ]
      redirects: []
    )
    (C {<set>} {<-->} 
      {
        (command_sub
          left_token: <Id.Left_Backtick '`'>
          child: (C {<'/usr/bin/who'>} {<-r>})
          right: <Id.Backtick_Right '`'>
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_RUN_LEVEL='> name:_INIT_RUN_LEVEL)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 7))}
          spids: [163]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_RUN_NPREV='> name:_INIT_RUN_NPREV)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 8))}
          spids: [171]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_PREV_LEVEL='> name:_INIT_PREV_LEVEL)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 9))}
          spids: [179]
        )
      ]
      redirects: []
    )
    (C {<set>} {<-->} 
      {
        (command_sub
          left_token: <Id.Left_Backtick '`'>
          child: (C {<'/usr/bin/uname'>} {<-a>})
          right: <Id.Backtick_Right '`'>
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_SYSNAME='> name:_INIT_UTS_SYSNAME)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 1))}
          spids: [201]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_NODENAME='> name:_INIT_UTS_NODENAME)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 2))}
          spids: [209]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_RELEASE='> name:_INIT_UTS_RELEASE)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 3))}
          spids: [217]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_VERSION='> name:_INIT_UTS_VERSION)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 4))}
          spids: [225]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_MACHINE='> name:_INIT_UTS_MACHINE)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 5))}
          spids: [233]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_ISA='> name:_INIT_UTS_ISA)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 6))}
          spids: [241]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_PLATFORM='> name:_INIT_UTS_PLATFORM)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 7))}
          spids: [249]
        )
      ]
      redirects: []
    )
    (C {<export>} {<_INIT_RUN_LEVEL>} {<_INIT_RUN_NPREV>} {<_INIT_PREV_LEVEL>} {<_INIT_UTS_SYSNAME>} 
      {<_INIT_UTS_NODENAME>} {<_INIT_UTS_RELEASE>} {<_INIT_UTS_VERSION>} {<_INIT_UTS_MACHINE>} {<_INIT_UTS_ISA>} {<_INIT_UTS_PLATFORM>}
    )
    (C {<smf_netstrategy>})
    (command.Case
      to_match: {($ Id.VSub_DollarName action)}
      arms: [
        (case_arm
          pat_list: [{<stop>}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-d>} {<'/etc/rc2.d'>} {<Id.Lit_RBracket ']'>})
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ForEach
                      iter_names: [f]
                      iterable: (for_iter.Words words:[{<'/etc/rc2.d/K'> <Id.Lit_Star '*'>}])
                      body: 
                        (command.DoGroup
                          children: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Sentence
                                          child: 
                                            (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-s>} 
                                              {($ Id.VSub_DollarName f)} {<Id.Lit_RBracket ']'>}
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.ControlFlow
                                      token: <Id.ControlFlow_Continue continue>
                                    )
                                  ]
                                  spids: [335 348]
                                )
                              ]
                              else_action: []
                              redirects: []
                            )
                            (command.Case
                              to_match: {($ Id.VSub_DollarName f)}
                              arms: [
                                (case_arm
                                  pat_list: [{<Id.Lit_Star '*'> <.sh>}]
                                  action: [
                                    (C {<'/lib/svc/bin/lsvcrun'>} {<-s>} {($ Id.VSub_DollarName f)} 
                                      {<stop>}
                                    )
                                  ]
                                  spids: [365 367 379 -1]
                                )
                                (case_arm
                                  pat_list: [{<Id.Lit_Star '*'>}]
                                  action: [
                                    (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<stop>})
                                  ]
                                  spids: [382 383 391 -1]
                                )
                              ]
                              redirects: []
                            )
                          ]
                        )
                      redirects: []
                    )
                  ]
                  spids: [308 319]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          spids: [304 305 403 -1]
        )
        (case_arm
          pat_list: [{<start>}]
          action: [
            (command.ForEach
              iter_names: [f]
              iterable: (for_iter.Words words:[{<'/etc/rc2.d/S'> <Id.Lit_Star '*'>}])
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (C {<Id.Lit_LBracket '['>} {<-s>} {($ Id.VSub_DollarName f)} 
                                      {<Id.Lit_RBracket ']'>}
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.Case
                              to_match: {($ Id.VSub_DollarName f)}
                              arms: [
                                (case_arm
                                  pat_list: [{<Id.Lit_Star '*'> <.sh>}]
                                  action: [
                                    (C {<'/lib/svc/bin/lsvcrun'>} {<-s>} {($ Id.VSub_DollarName f)} 
                                      {<start>}
                                    )
                                  ]
                                  spids: [445 447 459 -1]
                                )
                                (case_arm
                                  pat_list: [{<Id.Lit_Star '*'>}]
                                  action: [
                                    (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<start>})
                                  ]
                                  spids: [462 463 471 -1]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [424 435]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
          ]
          spids: [407 408 483 -1]
        )
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [
            (C {<echo>} {(DQ <'Invalid argument'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [487 488 -1 502]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [(command.Sentence child:(C {<smf_is_globalzone>}) terminator:<Id.Op_Semi _>)]
            )
          action: [(C {<'/usr/sbin/devfsadm'>} {<-S>})]
          spids: [505 510]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
  ]
)