(command.CommandList
  children: [
    (command.ShAssignment
      left: <Id.Lit_VarLike 'PATH='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'PATH='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH)
          op: assign_op.Equal
          rhs: {<'/bin'> <Id.Lit_Colon ':'> <'/usr/bin'>}
        )
      ]
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      blame_tok: <Id.Lit_LBracket '['>
                      more_env: []
                      words: [
                        {<Id.Lit_LBracket '['>}
                        {<-r>}
                        {<'/etc/defaults/rc.conf'>}
                        {<Id.Lit_RBracket ']'>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <.>
              more_env: []
              words: [{<.>} {<'/etc/defaults/rc.conf'>}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <source_rc_confs>
              more_env: []
              words: [{<source_rc_confs>}]
              redirects: [(Redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
              do_fork: T
            )
          ]
          spids: [105 116]
        )
        (IfArm
          keyword: <Id.KW_Elif elif>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      blame_tok: <Id.Lit_LBracket '['>
                      more_env: []
                      words: [{<Id.Lit_LBracket '['>} {<-r>} {<'/etc/rc.conf'>} {<Id.Lit_RBracket ']'>}]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <.>
              more_env: []
              words: [{<.>} {<'/etc/rc.conf'>}]
              redirects: [(Redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
              do_fork: T
            )
          ]
          spids: [129 140]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.AndOr
      children: [
        (command.Simple
          blame_tok: <Id.Lit_LBracket '['>
          more_env: []
          words: [
            {<Id.Lit_LBracket '['>}
            {
              (CommandSub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Simple
                    blame_tok: <'/sbin/sysctl'>
                    more_env: []
                    words: [{<'/sbin/sysctl'>} {<-n>} {<security.jail.jailed>}]
                    redirects: []
                    do_fork: T
                  )
                right: <Id.Eof_RParen _>
              )
            }
            {<Id.Lit_Equals '='>}
            {<0>}
            {<Id.Lit_RBracket ']'>}
          ]
          redirects: []
          do_fork: T
        )
        (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<0>})
      ]
      ops: [<Id.Op_DPipe _>]
    )
    (command.Case
      case_kw: <Id.KW_Case case>
      to_match: (case_arg.Word w:{(${ Id.VSub_Name entropy_dir)})
      arms_start: <Id.KW_In in>
      arms: [
        (CaseArm
          left: <Id.Lit_LBracket '['>
          pattern: 
            (pat.Words
              words: [
                {<Id.Lit_LBracket '['> <Nn> <Id.Lit_RBracket ']'> <Id.Lit_LBracket '['> <Oo> 
                  <Id.Lit_RBracket ']'>
                }
              ]
            )
          middle: <Id.Right_CasePat _>
          action: [(command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<0>})]
          right: <Id.Op_DSemi _>
        )
        (CaseArm
          left: <Id.Lit_Star '*'>
          pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
          middle: <Id.Right_CasePat _>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'entropy_dir='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'entropy_dir='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'entropy_dir='> name:entropy_dir)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (BracedVarSub
                        left: <Id.Left_DollarBrace '${'>
                        token: <Id.VSub_Name entropy_dir>
                        var_name: entropy_dir
                        suffix_op: 
                          (suffix_op.Unary
                            op: <Id.VTest_ColonHyphen _>
                            arg_word: 
                              {<Id.Lit_Slash '/'> <var> <Id.Lit_Slash '/'> <db> <Id.Lit_Slash '/'> 
                                <entropy>
                              }
                          )
                        right: <Id.Right_DollarBrace '}'>
                      )
                    }
                )
              ]
              redirects: []
            )
          ]
          right: <Id.Op_DSemi _>
        )
      ]
      arms_end: <Id.KW_Esac esac>
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'entropy_save_sz='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'entropy_save_sz='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'entropy_save_sz='> name:entropy_save_sz)
          op: assign_op.Equal
          rhs: 
            {
              (BracedVarSub
                left: <Id.Left_DollarBrace '${'>
                token: <Id.VSub_Name entropy_save_sz>
                var_name: entropy_save_sz
                suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<4096>})
                right: <Id.Right_DollarBrace '}'>
              )
            }
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'entropy_save_num='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'entropy_save_num='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'entropy_save_num='> name:entropy_save_num)
          op: assign_op.Equal
          rhs: 
            {
              (BracedVarSub
                left: <Id.Left_DollarBrace '${'>
                token: <Id.VSub_Name entropy_save_num>
                var_name: entropy_save_num
                suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<8>})
                right: <Id.Right_DollarBrace '}'>
              )
            }
        )
      ]
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      blame_tok: <Id.Lit_LBracket '['>
                      more_env: []
                      words: [
                        {<Id.Lit_LBracket '['>}
                        {<Id.KW_Bang '!'>}
                        {<-d>}
                        {(DQ (${ Id.VSub_Name entropy_dir))}
                        {<Id.Lit_RBracket ']'>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <install>
                  more_env: []
                  words: [
                    {<install>}
                    {<-d>}
                    {<-o>}
                    {<operator>}
                    {<-g>}
                    {<operator>}
                    {<-m>}
                    {<0700>}
                    {(DQ (${ Id.VSub_Name entropy_dir))}
                  ]
                  redirects: []
                  do_fork: T
                )
                (BraceGroup
                  left: <Id.Lit_LBrace '{'>
                  children: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <logger>
                          more_env: []
                          words: [
                            {<logger>}
                            {<-is>}
                            {<-t>}
                            {(DQ ($ Id.VSub_Number 0))}
                            {<The>}
                            {<entropy>}
                            {<directory>}
                            {(DQ (${ Id.VSub_Name entropy_dir))}
                            {<does>}
                            {<not>}
                            {<exist> <Id.Lit_Comma ','>}
                            {<and>}
                            {<cannot>}
                            {<be>}
                            {<created.>}
                            {<Therefore>}
                            {<no>}
                            {<entropy>}
                            {<can>}
                            {<be>}
                            {<saved.>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.Sentence
                      child: (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>})
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  redirects: []
                  right: <Id.Lit_RBrace '}'>
                )
              ]
              ops: [<Id.Op_DPipe _>]
            )
          ]
          spids: [237 254]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.AndOr
      children: [
        (command.Simple
          blame_tok: <cd>
          more_env: []
          words: [{<cd>} {(DQ (${ Id.VSub_Name entropy_dir))}]
          redirects: []
          do_fork: T
        )
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <logger>
                  more_env: []
                  words: [
                    {<logger>}
                    {<-is>}
                    {<-t>}
                    {(DQ ($ Id.VSub_Number 0))}
                    {<Cannot>}
                    {<cd>}
                    {<to>}
                    {<the>}
                    {<entropy>}
                    {<directory> <Id.Lit_Colon ':'>}
                    {(DQ (${ Id.VSub_Name entropy_dir)) <.>}
                    {<Entropy>}
                    {<file>}
                    {<rotation>}
                    {<is>}
                    {<aborted.>}
                  ]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence
              child: (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              terminator: <Id.Op_Semi _>
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
      ]
      ops: [<Id.Op_DPipe _>]
    )
    (command.ForEach
      keyword: <Id.KW_For for>
      iter_names: [f]
      iterable: (for_iter.Words words:[{<saved-entropy.> <Id.Lit_Star '*'>}])
      semi_tok: <Id.Op_Semi _>
      body: 
        (command.DoGroup
          left: <Id.KW_Do do>
          children: [
            (command.Case
              case_kw: <Id.KW_Case case>
              to_match: (case_arg.Word w:{(DQ (${ Id.VSub_Name f))})
              arms_start: <Id.KW_In in>
              arms: [
                (CaseArm
                  left: <saved-entropy.>
                  pattern: 
                    (pat.Words
                      words: [
                        {<saved-entropy.> 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\*'>
                            ch: '*'
                          )
                        }
                      ]
                    )
                  middle: <Id.Right_CasePat _>
                  action: [(command.ControlFlow keyword:<Id.ControlFlow_Continue continue>)]
                  right: <Id.Op_DSemi _>
                )
              ]
              arms_end: <Id.KW_Esac esac>
              redirects: []
            )
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <Id.Lit_LBracket '['>
                  more_env: []
                  words: [
                    {<Id.Lit_LBracket '['>}
                    {
                      (BracedVarSub
                        left: <Id.Left_DollarBrace '${'>
                        token: <Id.VSub_Name f>
                        var_name: f
                        suffix_op: 
                          (suffix_op.Unary
                            op: <Id.VOp1_Pound '#'>
                            arg_word: 
                              {<saved-entropy> 
                                (word_part.EscapedLiteral
                                  token: <Id.Lit_EscapedChar '\\.'>
                                  ch: .
                                )
                              }
                          )
                        right: <Id.Right_DollarBrace '}'>
                      )
                    }
                    {<-ge>}
                    {(${ Id.VSub_Name entropy_save_num)}
                    {<Id.Lit_RBracket ']'>}
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <unlink>
                  more_env: []
                  words: [{<unlink>} {(${ Id.VSub_Name f)}]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_DAmp _>]
            )
          ]
          right: <Id.KW_Done done>
        )
      redirects: []
    )
    (command.Simple
      blame_tok: <umask>
      more_env: []
      words: [{<umask>} {<377>}]
      redirects: []
      do_fork: T
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'n='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'n='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'n='> name:n)
          op: assign_op.Equal
          rhs: 
            {
              (word_part.ArithSub
                left: <Id.Left_DollarDParen '$(('>
                anode: 
                  (arith_expr.Binary
                    op_id: Id.Arith_Minus
                    left: {(${ Id.VSub_Name entropy_save_num)}
                    right: {<Id.Lit_Digits 1>}
                  )
                right: <Id.Right_DollarDParen _>
              )
            }
        )
      ]
      redirects: []
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <Id.Lit_LBracket '['>
                  more_env: []
                  words: [
                    {<Id.Lit_LBracket '['>}
                    {(${ Id.VSub_Name n)}
                    {<-ge>}
                    {<1>}
                    {<Id.Lit_RBracket ']'>}
                  ]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
          ]
        )
      body: 
        (command.DoGroup
          left: <Id.KW_Do do>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              blame_tok: <Id.Lit_LBracket '['>
                              more_env: []
                              words: [
                                {<Id.Lit_LBracket '['>}
                                {<-f>}
                                {(DQ <saved-entropy.> (${ Id.VSub_Name n))}
                                {<Id.Lit_RBracket ']'>}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <mv>
                      more_env: []
                      words: [
                        {<mv>}
                        {(DQ <saved-entropy.> (${ Id.VSub_Name n))}
                        {
                          (DQ <saved-entropy.> 
                            (word_part.ArithSub
                              left: <Id.Left_DollarDParen '$(('>
                              anode: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_Plus
                                  left: {(${ Id.VSub_Name n)}
                                  right: {<Id.Lit_Digits 1>}
                                )
                              right: <Id.Right_DollarDParen _>
                            )
                          )
                        }
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [514 530]
                )
                (IfArm
                  keyword: <Id.KW_Elif elif>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              blame_tok: <Id.Lit_LBracket '['>
                              more_env: []
                              words: [
                                {<Id.Lit_LBracket '['>}
                                {<-e>}
                                {(DQ <saved-entropy.> (${ Id.VSub_Name n))}
                                {<-o>}
                                {<-L>}
                                {(DQ <saved-entropy.> (${ Id.VSub_Name n))}
                                {<Id.Lit_RBracket ']'>}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <logger>
                      more_env: []
                      words: [
                        {<logger>}
                        {<-is>}
                        {<-t>}
                        {(DQ ($ Id.VSub_Number 0))}
                        {(DQ (${ Id.VSub_Name entropy_dir) <'/saved-entropy.'> (${ Id.VSub_Name n))}
                        {<is>}
                        {<not>}
                        {<a>}
                        {<regular>}
                        {<file> <Id.Lit_Comma ','>}
                        {<and>}
                        {<so>}
                        {<it>}
                        {<will>}
                        {<not>}
                        {<be>}
                        {<rotated.>}
                        {<Entropy>}
                        {<file>}
                        {<rotation>}
                        {<is>}
                        {<aborted.>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      keyword: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [559 586]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'n='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'n='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'n='> name:n)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (word_part.ArithSub
                        left: <Id.Left_DollarDParen '$(('>
                        anode: 
                          (arith_expr.Binary
                            op_id: Id.Arith_Minus
                            left: {(${ Id.VSub_Name n)}
                            right: {<Id.Lit_Digits 1>}
                          )
                        right: <Id.Right_DollarDParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
          ]
          right: <Id.KW_Done done>
        )
      redirects: []
    )
    (command.Simple
      blame_tok: <dd>
      more_env: []
      words: [
        {<dd>}
        {<Id.Lit_VarLike 'if='> <'/dev/random'>}
        {<Id.Lit_VarLike 'of='> <saved-entropy.1>}
        {<Id.Lit_VarLike 'bs='> (${ Id.VSub_Name entropy_save_sz)}
        {<Id.Lit_VarLike 'count='> <1>}
      ]
      redirects: [(Redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
      do_fork: T
    )
    (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<0>})
  ]
)