(command.CommandList
  children: [
    (C {<mirror_style>} {<release>})
    (C {<download_style>} {<apt>} {<var-state>})
    (C {<force_md5>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:LIBC)
          op: assign_op.Equal
          rhs: {<libc6>}
          spids: [13]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$ARCH'))} 
                      {<Id.Lit_Equals '='>} {<alpha>} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:LIBC)
                  op: assign_op.Equal
                  rhs: {(DQ <libc6.1>)}
                  spids: [34]
                )
              ]
            )
          ]
          spids: [16 31]
        )
      ]
    )
    (command.ShFunction
      name: work_out_debs
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:required)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ 
                        <
'base-files base-passwd bash bsdutils debconf-tiny debianutils diff dpkg e2fsprogs fileutils findutils grep gzip hostname ldso libc6 libdb2 libgdbmg1 libncurses5 libnewt0 libpam-modules libpam-runtime libpam0g libpopt0 libreadline4 libstdc++2.10 login makedev mawk modutils mount ncurses-base ncurses-bin passwd perl-5.005-base perl-base procps sed shellutils slang1 sysklogd sysvinit tar textutils update util-linux whiptail'
                        >
                      )
                    }
                  spids: [50]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:base)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ 
                        <
'adduser ae apt base-config elvis-tiny fbset fdutils gettext-base console-data console-tools console-tools-libs libdb2 libwrap0 locales modconf netbase ftp ppp pppconfig pump tasksel tcpd textutils telnet xviddetect'
                        >
                      )
                    }
                  spids: [57]
                )
              ]
            )
            (command.ShFunction
              name: without_package
              body: 
                (BraceGroup
                  children: [
                    (command.Pipeline
                      children: [
                        (C {<echo>} {(DQ ($ Id.VSub_Number '$2'))})
                        (C {<tr>} {(SQ <' '>)} {(SQ <'\\n'>)})
                        (C {<grep>} {<-v>} {(DQ <'^'> ($ Id.VSub_Number '$1') <Id.Lit_Dollar '$'>)})
                        (C {<tr>} {(SQ <'\\n'>)} {(SQ <' '>)})
                      ]
                      negated: F
                    )
                  ]
                )
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$ARCH')}
              arms: [
                (case_arm
                  pat_list: [{(DQ <alpha>)}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:required)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ 
                                (command_sub
                                  left_token: <Id.Left_DollarParen '$('>
                                  child: 
                                    (C {<without_package>} {(DQ <libc6>)} 
                                      {(DQ ($ Id.VSub_DollarName '$required'))}
                                    )
                                ) <' libc6.1'>
                              )
                            }
                          spids: [132]
                        )
                      ]
                    )
                  ]
                  spids: [126 129 149 -1]
                )
                (case_arm
                  pat_list: [{(DQ <i386>)}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:base)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ ($ Id.VSub_DollarName '$base') 
                                <
' fdflush isapnptools lilo mbr pciutils pcmcia-cs psmisc setserial syslinux'
                                >
                              )
                            }
                          spids: [158]
                        )
                      ]
                    )
                  ]
                  spids: [152 155 165 -1]
                )
                (case_arm pat_list:[{<Id.Lit_Star '*'>}] spids:[168 169 -1 180])
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: first_stage_install
      body: 
        (BraceGroup
          children: [
            (C {<extract>} {($ Id.VSub_DollarName '$required')})
            (command.Simple
              words: [{<Id.Lit_Colon ':'>}]
              redirects: [
                (redir
                  op: <Id.Redir_Great '>'>
                  loc: (redir_loc.Fd fd:1)
                  arg: {(DQ ($ Id.VSub_DollarName '$TARGET') <'/var/lib/dpkg/status'>)}
                )
              ]
              do_fork: T
            )
            (command.Simple
              words: [{<echo>}]
              redirects: [
                (redir
                  op: <Id.Redir_Great '>'>
                  loc: (redir_loc.Fd fd:1)
                  arg: {(DQ ($ Id.VSub_DollarName '$TARGET') <'/var/lib/dpkg/available'>)}
                )
              ]
              do_fork: T
            )
            (C {<setup_etc>})
            (command.Simple
              words: [{<echo>} {(SQ <'# UNCONFIGURED FSTAB FOR BASE SYSTEM'>)}]
              redirects: [
                (redir
                  op: <Id.Redir_Great '>'>
                  loc: (redir_loc.Fd fd:1)
                  arg: {(DQ ($ Id.VSub_DollarName '$TARGET') <'/etc/fstab'>)}
                )
              ]
              do_fork: T
            )
            (command.Sentence
              child: 
                (C {<chown>} {<0> <Id.Lit_Colon ':'> <0>} 
                  {(DQ ($ Id.VSub_DollarName '$TARGET') <'/etc/fstab'>)}
                )
              terminator: <Id.Op_Semi _>
            )
            (C {<chmod>} {<644>} {(DQ ($ Id.VSub_DollarName '$TARGET') <'/etc/fstab'>)})
            (command.ShFunction
              name: x_feign_install
              body: 
                (BraceGroup
                  children: [
                    (C {<local>} {<Id.Lit_VarLike 'pkg='> ($ Id.VSub_Number '$1')})
                    (C {<local>} 
                      {<Id.Lit_VarLike 'deb='> 
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<debfor>} {($ Id.VSub_DollarName '$pkg')})
                          )
                        )
                      }
                    )
                    (C {<local>} 
                      {<Id.Lit_VarLike 'ver='> 
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (C {<extract_deb_field>} 
                                {
                                  (DQ ($ Id.VSub_DollarName '$TARGET') <'/'> 
                                    ($ Id.VSub_DollarName '$deb')
                                  )
                                } {<Version>}
                              )
                          )
                        )
                      }
                    )
                    (C {<mkdir>} {<-p>} {(DQ ($ Id.VSub_DollarName '$TARGET') <'/var/lib/dpkg/info'>)})
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <'Package: '> ($ Id.VSub_DollarName '$pkg') <'\n'> <'Version: '> 
                            ($ Id.VSub_DollarName '$ver') <'\n'> <'Status: install ok installed'>
                          )
                        }
                      ]
                      redirects: [
                        (redir
                          op: <Id.Redir_DGreat '>>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {(DQ ($ Id.VSub_DollarName '$TARGET') <'/var/lib/dpkg/status'>)}
                        )
                      ]
                      do_fork: T
                    )
                    (C {<touch>} 
                      {
                        (DQ ($ Id.VSub_DollarName '$TARGET') <'/var/lib/dpkg/info/'> 
                          (${ Id.VSub_Name pkg) <.list>
                        )
                      }
                    )
                  ]
                )
            )
            (C {<setup_devices>})
            (C {<x_feign_install>} {<dpkg>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-e>} 
                              {(DQ ($ Id.VSub_DollarName '$TARGET') <'/usr/bin/perl-5.005.dist'>)} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<mv>} {(DQ ($ Id.VSub_DollarName '$TARGET') <'/usr/bin/perl-5.005.dist'>)} 
                      {(DQ ($ Id.VSub_DollarName '$TARGET') <'/usr/bin/perl-5.005'>)}
                    )
                  ]
                  spids: [362 376]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-e>} 
                              {(DQ ($ Id.VSub_DollarName '$TARGET') <'/usr/bin/perl'>)} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<ln>} {<-sf>} {<perl-5.005>} 
                      {(DQ ($ Id.VSub_DollarName '$TARGET') <'/usr/bin/perl'>)}
                    )
                  ]
                  spids: [395 411]
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: second_stage_install
      body: 
        (BraceGroup
          children: [
            (command.ShFunction
              name: x_core_install
              body: 
                (BraceGroup
                  children: [
                    (C {<in_target>} {<dpkg>} {<--force-depends>} {<--install>} 
                      {
                        (command_sub
                          left_token: <Id.Left_DollarParen '$('>
                          child: (C {<debfor>} {(DQ ($ Id.VSub_At '$@'))})
                        )
                      }
                    )
                  ]
                )
            )
            (C {<export>} {<Id.Lit_VarLike 'DEBIAN_FRONTEND='> <Noninteractive>})
            (C {<setup_proc>})
            (C {<ln>} {(DQ ($ Id.VSub_DollarName '$TARGET') <'/sbin/ldconfig.new'>)} 
              {(DQ ($ Id.VSub_DollarName '$TARGET') <'/sbin/ldconfig'>)}
            )
            (C {<in_target>} {<'/sbin/ldconfig'>})
            (C {<x_core_install>} {<base-files>} {<base-passwd>} {<ldso>})
            (C {<x_core_install>} {<dpkg>})
            (C {<ln>} {<-sf>} {<'/usr/share/zoneinfo/UTC'>} 
              {(DQ ($ Id.VSub_DollarName '$TARGET') <'/etc/localtime'>)}
            )
            (C {<x_core_install>} {($ Id.VSub_DollarName '$LIBC')})
            (command.Pipeline
              children: [(C {<smallyes>} {(SQ )}) (C {<x_core_install>} {<perl-5.005-base>})]
              negated: F
            )
            (C {<x_core_install>} {<mawk>})
            (C {<x_core_install>} {<debconf-tiny>})
            (C {<in_target>} {<dpkg-preconfigure>} 
              {
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (C {<debfor>} {($ Id.VSub_DollarName '$required')} {($ Id.VSub_DollarName '$base')})
                )
              }
            )
            (C {<repeatn>} {<5>} {<in_target>} {<dpkg>} {<--force-depends>} {<--unpack>} 
              {
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: (C {<debfor>} {($ Id.VSub_DollarName '$required')})
                )
              }
            )
            (C {<mv>} {(DQ ($ Id.VSub_DollarName '$TARGET') <'/sbin/start-stop-daemon'>)} 
              {(DQ ($ Id.VSub_DollarName '$TARGET') <'/sbin/start-stop-daemon.REAL'>)}
            )
            (C {<cp>} {(DQ ($ Id.VSub_DollarName '$TARGET') <'/bin/true'>)} 
              {(DQ ($ Id.VSub_DollarName '$TARGET') <'/sbin/start-stop-daemon'>)}
            )
            (C {<setup_dselect_method>} {<apt>})
            (C {<in_target>} {<dpkg>} {<--configure>} {<--pending>} {<--force-configure-any>} 
              {<--force-depends>}
            )
            (command.Pipeline
              children: [
                (C {<smallyes>} {(SQ )})
                (C {<repeatn>} {<5>} {<in_target>} {<dpkg>} {<--force-auto-select>} {<--force-overwrite>} 
                  {<--skip-same-version>} {<--install>} 
                  {
                    (command_sub
                      left_token: <Id.Left_DollarParen '$('>
                      child: (C {<debfor>} {($ Id.VSub_DollarName '$base')})
                    )
                  }
                )
              ]
              negated: F
            )
            (C {<mv>} {(DQ ($ Id.VSub_DollarName '$TARGET') <'/sbin/start-stop-daemon.REAL'>)} 
              {(DQ ($ Id.VSub_DollarName '$TARGET') <'/sbin/start-stop-daemon'>)}
            )
          ]
        )
    )
  ]
)