(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:PATH spids:[31])
          op: Equal
          rhs: {(/sbin) (Lit_Other ':') (/bin)}
          spids: [31]
        )
      ]
      spids: [31]
    )
    (C {(.)} {(/lib/init/vars.sh)})
    (C {(.)} {(/lib/lsb/init-functions)})
    (command.FuncDef
      name: do_stop
      body: 
        (command.BraceGroup
          children: [
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} 
                  {(Lit_Other ']')}
                )
                (C {(log_action_begin_msg)} {(DQ ('Mounting root filesystem read-only'))})
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [(C {(Lit_Other '[')} {(-f)} {(/var/run/init.upgraded)} {(Lit_Other ']')})]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:old_map spids:[101])
                          op: Equal
                          rhs: 
                            {
                              (word_part.CommandSubPart
                                command_list: 
                                  (command.CommandList
                                    children: [(C {(cat)} {(/proc/1/maps)})]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [102 108]
                              )
                            }
                          spids: [101]
                        )
                      ]
                      spids: [101]
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:map spids:[111])
                          op: Equal
                          rhs: {($ VSub_DollarName '$old_map')}
                          spids: [111]
                        )
                      ]
                      spids: [111]
                    )
                    (command.AndOr
                      ops: [Op_DPipe]
                      children: [(C {(telinit)} {(u)}) (C {(Lit_Other ':')})]
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:i spids:[124])
                          op: Equal
                          rhs: {(0)}
                          spids: [124]
                        )
                      ]
                      spids: [124]
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:timeout spids:[128])
                          op: Equal
                          rhs: {(5)}
                          spids: [128]
                        )
                      ]
                      spids: [128]
                    )
                    (command.WhileUntil
                      keyword: <KW_While while>
                      cond: [
                        (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$map'))} {(Lit_Other '=')} 
                          {(DQ ($ VSub_DollarName '$old_map'))} {(Lit_Other ']')}
                        )
                      ]
                      body: 
                        (command.DoGroup
                          children: [
                            (C {(sleep)} {(1)})
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:map spids:[157])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.CommandSubPart
                                        command_list: 
                                          (command.CommandList
                                            children: [(C {(cat)} {(/proc/1/maps)})]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [158 164]
                                      )
                                    }
                                  spids: [157]
                                )
                              ]
                              spids: [157]
                            )
                            (C {(/usr/bin/logger)} {(DQ ('waiting for init to respawn'))})
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:i spids:[174])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArithSubPart
                                        anode: 
                                          (arith_expr.ArithBinary
                                            op_id: Arith_Plus
                                            left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>)
                                            right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                                          )
                                        spids: [175 180]
                                      )
                                    }
                                  spids: [174]
                                )
                              ]
                              spids: [174]
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: [
                                    (command.Sentence
                                      child: 
                                        (C {(Lit_Other '[')} {($ VSub_DollarName '$i')} {(-eq)} 
                                          {($ VSub_DollarName '$timeout')} {(Lit_Other ']')}
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [(command.ControlFlow token:<ControlFlow_Break break>)]
                                  spids: [16777215 197]
                                )
                              ]
                              spids: [16777215 203]
                            )
                          ]
                          spids: [149 206]
                        )
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$map'))} {(Lit_Other '=')} 
                                  {(DQ ($ VSub_DollarName '$old_map'))} {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(/usr/bin/logger)} 
                              {
                                (DQ ('FAIL: init failed to respawn in ') 
                                  ($ VSub_DollarName '$timeout') (' seconds - unmounting anyway')
                                )
                              }
                            )
                          ]
                          spids: [16777215 228]
                        )
                      ]
                      else_action: [
                        (C {(/usr/bin/logger)} 
                          {
                            (DQ ('SUCCESS: init respawned after ') ($ VSub_DollarName '$i') 
                              (' seconds (within ') ($ VSub_DollarName '$timeout') (' seconds timeout)')
                            )
                          }
                        )
                      ]
                      spids: [240 254]
                    )
                  ]
                  spids: [16777215 98]
                )
              ]
              spids: [16777215 257]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:MOUNT_FORCE_OPT spids:[261])
                  op: Equal
                  rhs: (word.EmptyWord)
                  spids: [261]
                )
              ]
              spids: [261]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (C {(Lit_Other '[')} 
                  {
                    (DQ 
                      (word_part.CommandSubPart
                        command_list: (command.CommandList children:[(C {(uname)} {(-s)})])
                        left_token: <Left_CommandSub '$('>
                        spids: [267 271]
                      )
                    )
                  } {(Lit_Other '=')} {(DQ (GNU/kFreeBSD))} {(Lit_Other ']')}
                )
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:MOUNT_FORCE_OPT spids:[284])
                      op: Equal
                      rhs: {(-f)}
                      spids: [284]
                    )
                  ]
                  spids: [284]
                )
              ]
            )
            (command.AndOr
              ops: [Op_DPipe Op_DPipe]
              children: [
                (command.SimpleCommand
                  words: [
                    {(mount)}
                    {($ VSub_DollarName '$MOUNT_FORCE_OPT')}
                    {(-n)}
                    {(-o)}
                    {(remount) (Lit_Comma ',') (ro)}
                    {(-t)}
                    {(dummytype)}
                    {(dummydev)}
                    {(/)}
                  ]
                  redirects: [(redir.Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})]
                )
                (command.SimpleCommand
                  words: [
                    {(mount)}
                    {($ VSub_DollarName '$MOUNT_FORCE_OPT')}
                    {(-n)}
                    {(-o)}
                    {(remount) (Lit_Comma ',') (ro)}
                    {(dummydev)}
                    {(/)}
                  ]
                  redirects: [(redir.Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})]
                )
                (C {(mount)} {($ VSub_DollarName '$MOUNT_FORCE_OPT')} {(-n)} {(-o)} 
                  {(remount) (Lit_Comma ',') (ro)} {(/)}
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:ES spids:[369])
                  op: Equal
                  rhs: {($ VSub_QMark '$?')}
                  spids: [369]
                )
              ]
              spids: [369]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} 
                  {(Lit_Other ']')}
                )
                (C {(log_action_end_msg)} {($ VSub_DollarName '$ES')})
              ]
            )
          ]
          spids: [51]
        )
      spids: [46 50]
    )
    (command.Case
      to_match: {(DQ ($ VSub_Number '$1'))}
      arms: [
        (case_arm pat_list:[{(start)} {(status)}] spids:[403 406 413 16777215])
        (case_arm
          pat_list: [{(restart)} {(reload)} {(force-reload)}]
          action: [
            (command.SimpleCommand
              words: [{(echo)} {(DQ ("Error: argument '") ($ VSub_Number '$1') ("' not supported"))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)})
          ]
          spids: [416 421 441 16777215]
        )
        (case_arm pat_list:[{(stop)}] action:[(C {(do_stop)})] spids:[444 445 451 16777215])
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (command.SimpleCommand
              words: [{(echo)} {(DQ ('Usage: ') ($ VSub_Number '$0') (' start|stop'))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)})
          ]
          spids: [454 455 475 16777215]
        )
      ]
      spids: [394 400 477]
    )
    (C {(Lit_Other ':')})
  ]
)