(CommandList
  children: [
    (C {(mirror_style)} {(release)})
    (C {(download_style)} {(apt)} {(var-state)})
    (C {(force_md5)})
    (Assignment scope:Global pairs:[(assign_pair lhs:(LeftVar name:LIBC) rhs:{(libc6)})])
    (If
      arms: [
        (if_arm
          cond: 
            (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ARCH"))} {(Lit_Other "=")} {(alpha)} 
              {(Lit_Other "]")}
            )
          action: 
            (Assignment
              scope: Global
              pairs: [(assign_pair lhs:(LeftVar name:LIBC) rhs:{(DQ (libc6.1))})]
            )
        )
      ]
    )
    (FuncDef
      name: work_out_debs
      body: 
        (BraceGroup
          children: [
            (Assignment
              scope: Global
              pairs: [
                (assign_pair
                  lhs: (LeftVar name:required)
                  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"
                        )
                      )
                    }
                )
              ]
            )
            (Assignment
              scope: Global
              pairs: [
                (assign_pair
                  lhs: (LeftVar name:base)
                  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"
                        )
                      )
                    }
                )
              ]
            )
            (FuncDef
              name: without_package
              body: 
                (BraceGroup
                  children: [
                    (Pipeline
                      children: [
                        (C {(echo)} {(DQ ($ VSub_Number "$2"))})
                        (C {(tr)} {(SQ <" ">)} {(SQ <"\\n">)})
                        (C {(grep)} {(-v)} {(DQ ("^") ($ VSub_Number "$1") (Lit_Other "$"))})
                        (C {(tr)} {(SQ <"\\n">)} {(SQ <" ">)})
                      ]
                      negated: False
                    )
                  ]
                )
              spids: [64 68]
            )
            (Case
              to_match: {($ VSub_Name "$ARCH")}
              arms: [
                (case_arm
                  pat_list: [{(DQ (alpha))}]
                  action: 
                    (Assignment
                      scope: Global
                      pairs: [
                        (assign_pair
                          lhs: (LeftVar name:required)
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (C {(without_package)} {(DQ (libc6))} 
                                      {(DQ ($ VSub_Name "$required"))}
                                    )
                                  spids: [135 146]
                                ) (" libc6.1")
                              )
                            }
                        )
                      ]
                    )
                )
                (case_arm
                  pat_list: [{(DQ (i386))}]
                  action: 
                    (Assignment
                      scope: Global
                      pairs: [
                        (assign_pair
                          lhs: (LeftVar name:base)
                          rhs: 
                            {
                              (DQ ($ VSub_Name "$base") 
                                (
" fdflush isapnptools lilo mbr pciutils pcmcia-cs psmisc setserial syslinux"
                                )
                              )
                            }
                        )
                      ]
                    )
                )
                (case_arm pat_list:[{(Lit_Other "*")}] action:(NoOp))
              ]
            )
          ]
        )
      spids: [42 46]
    )
    (FuncDef
      name: first_stage_install
      body: 
        (BraceGroup
          children: [
            (C {(extract)} {($ VSub_Name "$required")})
            (SimpleCommand
              words: [{(Lit_Other ":")}]
              redirects: [
                (Redirect
                  op_id: Redir_Great
                  arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))}
                  fd: -1
                  spids: [204]
                )
              ]
            )
            (SimpleCommand
              words: [{(echo)}]
              redirects: [
                (Redirect
                  op_id: Redir_Great
                  arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/available))}
                  fd: -1
                  spids: [214]
                )
              ]
            )
            (C {(setup_etc)})
            (SimpleCommand
              words: [{(echo)} {(SQ <"# UNCONFIGURED FSTAB FOR BASE SYSTEM">)}]
              redirects: [
                (Redirect
                  op_id: Redir_Great
                  arg_word: {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))}
                  fd: -1
                  spids: [232]
                )
              ]
            )
            (C {(chown)} {(0) (Lit_Other ":") (0)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))})
            (C {(chmod)} {(644)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))})
            (FuncDef
              name: x_feign_install
              body: 
                (BraceGroup
                  children: [
                    (Assignment
                      scope: Local
                      pairs: [(assign_pair lhs:(LeftVar name:pkg) rhs:{($ VSub_Number "$1")})]
                    )
                    (Assignment
                      scope: Local
                      pairs: [
                        (assign_pair
                          lhs: (LeftVar name:deb)
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: (C {(debfor)} {($ VSub_Name "$pkg")})
                                  spids: [281 286]
                                )
                              )
                            }
                        )
                      ]
                    )
                    (Assignment
                      scope: Local
                      pairs: [
                        (assign_pair
                          lhs: (LeftVar name:ver)
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (C {(extract_deb_field)} 
                                      {(DQ ($ VSub_Name "$TARGET") (/) ($ VSub_Name "$deb"))} {(Version)}
                                    )
                                  spids: [294 305]
                                )
                              )
                            }
                        )
                      ]
                    )
                    (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info))})
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {
                          (DQ ("Package: ") ($ VSub_Name "$pkg") ("\n") ("Version: ") 
                            ($ VSub_Name "$ver") ("\n") ("Status: install ok installed")
                          )
                        }
                      ]
                      redirects: [
                        (Redirect
                          op_id: Redir_DGreat
                          arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))}
                          fd: -1
                          spids: [333]
                        )
                      ]
                    )
                    (C {(touch)} 
                      {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))}
                    )
                  ]
                )
              spids: [263 267]
            )
            (C {(x_feign_install)} {(dpkg)})
            (If
              arms: [
                (if_arm
                  cond: 
                    (C {(Lit_Other "[")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/perl-5.005.dist))} 
                      {(Lit_Other "]")}
                    )
                  action: 
                    (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/perl-5.005.dist))} 
                      {(DQ ($ VSub_Name "$TARGET") (/usr/bin/perl-5.005))}
                    )
                )
              ]
            )
            (If
              arms: [
                (if_arm
                  cond: 
                    (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} 
                      {(DQ ($ VSub_Name "$TARGET") (/usr/bin/perl))} {(Lit_Other "]")}
                    )
                  action: 
                    (C {(ln)} {(-sf)} {(perl-5.005)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/perl))})
                )
              ]
            )
          ]
        )
      spids: [189 193]
    )
    (FuncDef
      name: second_stage_install
      body: 
        (BraceGroup
          children: [
            (FuncDef
              name: x_core_install
              body: 
                (BraceGroup
                  children: [
                    (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} 
                      {
                        (CommandSubPart
                          command_list: (C {(debfor)} {(DQ ($ VSub_At "$@"))})
                          spids: [457 464]
                        )
                      }
                    )
                  ]
                )
              spids: [441 445]
            )
            (Assignment
              scope: Global
              flags: [Export]
              pairs: [(assign_pair lhs:(LeftVar name:DEBIAN_FRONTEND) rhs:{(Noninteractive)})]
            )
            (C {(setup_devices)})
            (C {(setup_proc)})
            (C {(ln)} {(DQ ($ VSub_Name "$TARGET") (/sbin/ldconfig.new))} 
              {(DQ ($ VSub_Name "$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 ($ VSub_Name "$TARGET") (/etc/localtime))})
            (C {(x_core_install)} {($ VSub_Name "$LIBC")})
            (Pipeline
              children: [(C {(smallyes)} {(SQ )}) (C {(x_core_install)} {(perl-5.005-base)})]
              negated: False
            )
            (C {(x_core_install)} {(mawk)})
            (C {(x_core_install)} {(debconf-tiny)})
            (C {(in_target)} {(dpkg-preconfigure)} 
              {
                (CommandSubPart
                  command_list: (C {(debfor)} {($ VSub_Name "$required")} {($ VSub_Name "$base")})
                  spids: [563 570]
                )
              }
            )
            (C {(repeatn)} {(5)} {(in_target)} {(dpkg)} {(--force-depends)} {(--unpack)} 
              {
                (CommandSubPart
                  command_list: (C {(debfor)} {($ VSub_Name "$required")})
                  spids: [586 591]
                )
              }
            )
            (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} 
              {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))}
            )
            (C {(cp)} {(DQ ($ VSub_Name "$TARGET") (/bin/true))} 
              {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}
            )
            (C {(setup_dselect_method)} {(apt)})
            (C {(in_target)} {(dpkg)} {(--configure)} {(--pending)} {(--force-configure-any)} 
              {(--force-depends)}
            )
            (Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (C {(repeatn)} {(5)} {(in_target)} {(dpkg)} {(--force-auto-select)} {(--force-overwrite)} 
                  {(--skip-same-version)} {(--install)} {(CommandSubPart command_list:(C {(debfor)} {($ VSub_Name "$base")}) spids:[665670])}
                )
              ]
              negated: False
            )
            (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} 
              {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}
            )
          ]
        )
      spids: [433 437]
    )
  ]
)