(CommandList
  children: [
    (AndOr children:[(C {(source)} {(sources/include.sh)})(C {(exit)} {(1)})] op_id:Op_DPipe)
    (SimpleCommand
      words: [{(load_target)} {(DQ ($ VSub_Number "$1"))}]
      more_env: [(env_pair name:KEEP_STAGEDIR val:{(1)} spids:[29])]
    )
    (FuncDef
      name: is_newer
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LeftVar name:X) rhs:{(DQ ($ VSub_Number "$1"))} spids:[50])]
              spids: [50]
            )
            (C {(shift)})
            (AndOr
              children: [
                (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$X"))} {(Lit_Other "]")})
                (C {(return)} {(0)})
              ]
              op_id: Op_DAmp
            )
            (AndOr
              children: [
                (C {(Lit_Other "[")} 
                  {
                    (DQ 
                      (CommandSubPart
                        command_list: (C {(which)} {(DQ (${ VSub_Name CC_PREFIX) (cc))})
                        spids: [81 90]
                      )
                    )
                  } {(-nt)} {(DQ ($ VSub_Name "$X"))} {(Lit_Other "]")}
                )
                (C {(return)} {(0)})
              ]
              op_id: Op_DAmp
            )
            (While
              cond: 
                (C {(Lit_Other "[")} {(KW_Bang "!")} {(-z)} {(DQ ($ VSub_Number "$1"))} {(Lit_Other "]")})
              body: 
                (DoGroup
                  child: 
                    (CommandList
                      children: [
                        (AndOr
                          children: [
                            (C {(Lit_Other "[")} {(KW_Bang "!")} {(-z)} 
                              {
                                (DQ 
                                  (CommandSubPart
                                    command_list: 
                                      (SimpleCommand
                                        words: [
                                          {(find)}
                                          {(DQ ($ VSub_Number "$1"))}
                                          {(-newer)}
                                          {(DQ ($ VSub_Name "$X"))}
                                        ]
                                        redirects: [
                                          (Redirect
                                            op_id: Redir_Great
                                            arg_word: {(/dev/null)}
                                            fd: 2
                                            spids: [146]
                                          )
                                        ]
                                      )
                                    spids: [133 148]
                                  )
                                )
                              } {(Lit_Other "]")}
                            )
                            (C {(return)} {(0)})
                          ]
                          op_id: Op_DAmp
                        )
                        (C {(shift)})
                      ]
                    )
                  spids: [123 163]
                )
            )
            (C {(echo)} 
              {
                (DQ ("Keeping ") 
                  (CommandSubPart
                    command_list: (C {(basename)} {(DQ ($ VSub_Name "$X"))})
                    spids: [171 177]
                  )
                )
              }
            )
            (C {(return)} {(1)})
          ]
          spids: [47]
        )
      spids: [43 46]
    )
    (FuncDef
      name: qemu_defaults
      body: 
        (BraceGroup
          children: [
            (C {(echo)} {(-n)} {(DQ ("-nographic -no-reboot -kernel linux"))})
            (AndOr
              children: [
                (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$SYSIMAGE_TYPE"))} 
                  {(KW_Bang "!") (Lit_Other "=")} {(DQ (rootfs))} {(Lit_Other "]")}
                )
                (C {(echo)} {(-n)} {(DQ (" -initrd rootfs.cpio.gz"))})
              ]
              op_id: Op_DAmp
            )
            (C {(echo)} {(-n)} 
              {
                (DQ (" -append ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) 
                  ("panic=1 console=") ($ VSub_Name "$CONSOLE") (" HOST=") ($ VSub_Name "$ARCH") (" ") 
                  (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) (KERNEL_EXTRA) (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">)
                )
              }
            )
            (C {(echo)} {(-n)} 
              {(DQ (" ") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) (QEMU_EXTRA))}
            )
          ]
          spids: [196]
        )
      spids: [192 195]
    )
    (AndOr
      children: [
        (SimpleCommand
          words: [{(cat)}]
          redirects: [
            (Redirect
              op_id: Redir_Great
              arg_word: {(DQ ($ VSub_Name "$STAGE_DIR") (/run-emulator.sh))}
              fd: -1
              spids: [277]
            )
            (HereDoc
              op_id: Redir_DLess
              arg_word: 
                {
                  (DQ ("#!/bin/bash\n") ("\n") ("# Boot the emulated system to a shell prompt.\n") 
                    ("\n") ("ARCH=") ($ VSub_Name "$ARCH") ("\n") ("run_emulator()\n") ("{\n") ("  [ ! -z ") (Right_DoubleQuote "\"") 
                    (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) (DEBUG) (Right_DoubleQuote "\"") (" ] && set -x\n") ("  ") 
                    (CommandSubPart
                      command_list: (C {(emulator_command)})
                      spids: [-1 -1]
                    ) ("\n") ("}\n") ("\n") ("if [ ") (Right_DoubleQuote "\"") (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) 
                    (1) (Right_DoubleQuote "\"") (" != ") (Right_DoubleQuote "\"") (--norun) (Right_DoubleQuote "\"") (" ]\n") 
                    ("then\n") ("  run_emulator\n") ("fi\n")
                  )
                }
              fd: -1
              do_expansion: True
              here_end: EOF
              was_filled: True
              spids: [284]
            )
          ]
        )
        (AndOr
          children: [
            (C {(chmod)} {(Lit_Other "+") (x)} {(DQ ($ VSub_Name "$STAGE_DIR") (/run-emulator.sh))})
            (ForEach
              iter_name: FILE
              iter_words: [{(dev-environment.sh)} {(native-build.sh)}]
              do_arg_iter: False
              body: 
                (DoGroup
                  child: 
                    (CommandList
                      children: [
                        (Subshell
                          children: [
                            (CommandList
                              children: [
                                (Assignment
                                  keyword: Assign_Export
                                  pairs: [
                                    (assign_pair
                                      lhs: (LeftVar name:IFS)
                                      rhs: 
                                        {
                                          (DQ 
                                            (CommandSubPart
                                              command_list: 
                                                (C {(echo)} {(-e)} 
                                                  {
                                                    (DQ 
                                                      (EscapedLiteralPart
                                                        token: <Lit_EscapedChar "\\n">
                                                      )
                                                    )
                                                  }
                                                )
                                              spids: [325 333]
                                            )
                                          )
                                        }
                                      spids: [323]
                                    )
                                  ]
                                  spids: [321]
                                )
                                (Pipeline
                                  children: [
                                    (C {(cat)} 
                                      {(DQ ($ VSub_Name "$SOURCES") (/toys/) ($ VSub_Name "$FILE"))}
                                    )
                                    (While
                                      cond: (C {(read)} {(-r)} {(i)})
                                      body: 
                                        (DoGroup
                                          child: 
                                            (If
                                              arms: [
                                                (if_arm
                                                  cond: 
                                                    (C {(Lit_Other "[")} 
                                                      {
                                                        (DQ 
                                                          (BracedVarSub
                                                            token: <VSub_Name i>
                                                            suffix_op: 
                                                              (Slice
                                                                begin: (ArithWord w:{(Lit_Digits 0)})
                                                                length: (ArithWord w:{(Lit_Digits 8)})
                                                              )
                                                            spids: [364 370]
                                                          )
                                                        )
                                                      } {(Lit_Other "=") (Lit_Other "=")} {(DQ ("INCLUDE "))} {(Lit_Other "]")}
                                                    )
                                                  action: 
                                                    (AndOr
                                                      children: [
                                                        (C {(cat)} 
                                                          {
                                                            (DQ ($ VSub_Name "$SOURCES") (/toys/) 
                                                              (BracedVarSub
                                                                token: <VSub_Name i>
                                                                suffix_op: 
                                                                  (Slice
                                                                    begin: 
                                                                      (ArithWord
                                                                        w: {(Lit_Digits 8)}
                                                                      )
                                                                  )
                                                                spids: [391 395]
                                                              )
                                                            )
                                                          }
                                                        )
                                                        (C {(dienow)})
                                                      ]
                                                      op_id: Op_DPipe
                                                    )
                                                  spids: [-1 383]
                                                )
                                              ]
                                              else_action: 
                                                (AndOr
                                                  children: [
                                                    (C {(echo)} {(DQ ($ VSub_Name "$i"))})
                                                    (C {(dienow)})
                                                  ]
                                                  op_id: Op_DPipe
                                                )
                                              spids: [403 421]
                                            )
                                          spids: [356 424]
                                        )
                                    )
                                  ]
                                  negated: False
                                )
                              ]
                            )
                          ]
                          redirects: [
                            (Redirect
                              op_id: Redir_Great
                              arg_word: {(DQ ($ VSub_Name "$STAGE_DIR") (/) ($ VSub_Name "$FILE"))}
                              fd: -1
                              spids: [429]
                            )
                          ]
                          spids: [320 427]
                        )
                        (AndOr
                          children: [
                            (C {(chmod)} {(Lit_Other "+") (x)} 
                              {(DQ ($ VSub_Name "$STAGE_DIR") (/) ($ VSub_Name "$FILE"))}
                            )
                            (C {(dienow)})
                          ]
                          op_id: Op_DPipe
                        )
                      ]
                    )
                  spids: [317 454]
                )
              spids: [312 -1]
            )
          ]
          op_id: Op_DAmp
        )
      ]
      op_id: Op_DAmp
    )
    (If
      arms: [
        (if_arm
          cond: 
            (C {(is_newer)} {(DQ ($ VSub_Name "$STAGE_DIR") (/rootfs.cpio.gz))} 
              {(DQ ($ VSub_Name "$BUILD") (/root-filesystem-) ($ VSub_Name "$ARCH"))}
            )
          action: 
            (CommandList
              children: [
                (AndOr
                  children: [
                    (SimpleCommand
                      words: [
                        {(image_filesystem)}
                        {(DQ ($ VSub_Name "$BUILD") (/root-filesystem-) ($ VSub_Name "$ARCH"))}
                        {(DQ ($ VSub_Name "$STAGE_DIR") (/temp))}
                      ]
                      more_env: [(env_pair name:SYSIMAGE_TYPE val:{(cpio)} spids:[479])]
                    )
                    (AndOr
                      children: [
                        (C {(mv)} {(-f)} 
                          {(DQ ($ VSub_Name "$STAGE_DIR")) (/) (Lit_LBrace "{") (temp) (Lit_Comma ",") 
                            (rootfs) (Lit_RBrace "}") (.cpio.gz)
                          }
                        )
                        (C {(dienow)})
                      ]
                      op_id: Op_DPipe
                    )
                  ]
                  op_id: Op_DAmp
                )
                (AndOr
                  children: [
                    (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$SYSIMAGE_TYPE"))} 
                      {(Lit_Other "=") (Lit_Other "=")} {(rootfs)} {(Lit_Other "]")}
                    )
                    (C {(rm)} {(-f)} {(DQ ($ VSub_Name "$STAGE_DIR") (/linux))})
                  ]
                  op_id: Op_DAmp
                )
              ]
            )
          spids: [-1 476]
        )
      ]
      spids: [-1 544]
    )
    (If
      arms: [
        (if_arm
          cond: 
            (AndOr
              children: [
                (C {(Lit_Other "[")} {(-e)} 
                  {(DQ ($ VSub_Name "$BUILD") (/native-compiler-) ($ VSub_Name "$ARCH"))} {(Lit_Other "]")}
                )
                (C {(is_newer)} {(DQ ($ VSub_Name "$STAGE_DIR") (/toolchain.sqf))} 
                  {(DQ ($ VSub_Name "$BUILD") (/native-compiler-) ($ VSub_Name "$ARCH"))}
                )
              ]
              op_id: Op_DAmp
            )
          action: 
            (AndOr
              children: [
                (SimpleCommand
                  words: [
                    {(image_filesystem)}
                    {(DQ ($ VSub_Name "$BUILD") (/native-compiler-) ($ VSub_Name "$ARCH"))}
                    {(DQ ($ VSub_Name "$STAGE_DIR") (/temp))}
                  ]
                  more_env: [(env_pair name:SYSIMAGE_TYPE val:{(squashfs)} spids:[584])]
                )
                (AndOr
                  children: [
                    (C {(mv)} {(-f)} 
                      {(DQ ($ VSub_Name "$STAGE_DIR")) (/) (Lit_LBrace "{") (temp) (Lit_Comma ",") 
                        (toolchain) (Lit_RBrace "}") (.sqf)
                      }
                    )
                    (C {(dienow)})
                  ]
                  op_id: Op_DPipe
                )
              ]
              op_id: Op_DAmp
            )
          spids: [-1 581]
        )
      ]
      spids: [-1 624]
    )
    (If
      arms: [
        (if_arm
          cond: 
            (C {(is_newer)} {(DQ ($ VSub_Name "$STAGE_DIR") (/linux))} 
              {(DQ ($ VSub_Name "$BUILD") (/root-filesystem-) ($ VSub_Name "$ARCH"))} {(CommandSubPart command_list:(C {(package_cache)} {(linux)}) spids:[648652])}
            )
          action: 
            (CommandList
              children: [
                (C {(setupfor)} {(linux)})
                (SimpleCommand
                  words: [
                    {(echo)}
                    {
                      (DQ ("# make allnoconfig ARCH=") 
                        (BracedVarSub
                          token: <VSub_Name BOOT_KARCH>
                          suffix_op: 
                            (StringUnary
                              op_id: VTest_ColonHyphen
                              arg_word: {($ VSub_Name "$KARCH")}
                            )
                          spids: [666 670]
                        ) (" KCONFIG_ALLCONFIG=mini.config")
                      )
                    }
                  ]
                  redirects: [
                    (Redirect
                      op_id: Redir_Great
                      arg_word: {($ VSub_Name "$STAGE_DIR") (/mini.config)}
                      fd: -1
                      spids: [676]
                    )
                  ]
                )
                (SimpleCommand
                  words: [{(getconfig)} {(linux)}]
                  redirects: [
                    (Redirect
                      op_id: Redir_DGreat
                      arg_word: {(DQ ($ VSub_Name "$STAGE_DIR")) (/mini.config)}
                      fd: -1
                      spids: [686]
                    )
                  ]
                )
                (AndOr
                  children: [
                    (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$SYSIMAGE_TYPE"))} 
                      {(Lit_Other "=") (Lit_Other "=")} {(rootfs)} {(Lit_Other "]")}
                    )
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {(-e)}
                        {
                          (DQ ("CONFIG_INITRAMFS_SOURCE=") 
                            (EscapedLiteralPart
                              token: <Lit_EscapedChar "\\\"">
                            ) ($ VSub_Name "$STAGE_DIR") (/rootfs.cpio.gz) (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) 
                            (EscapedLiteralPart
                              token: <Lit_EscapedChar "\\n">
                            )
                          )
                        }
                      ]
                      redirects: [
                        (Redirect
                          op_id: Redir_DGreat
                          arg_word: {(DQ ($ VSub_Name "$STAGE_DIR")) (/mini.config)}
                          fd: -1
                          spids: [725]
                        )
                      ]
                    )
                  ]
                  op_id: Op_DAmp
                )
                (AndOr
                  children: [
                    (SimpleCommand
                      words: [
                        {(make)}
                        {(allnoconfig)}
                        {(Lit_VarLike "ARCH=") 
                          (BracedVarSub
                            token: <VSub_Name BOOT_KARCH>
                            suffix_op: 
                              (StringUnary
                                op_id: VTest_ColonHyphen
                                arg_word: {($ VSub_Name "$KARCH")}
                              )
                            spids: [738 742]
                          )
                        }
                        {($ VSub_Name "$LINUX_FLAGS")}
                        {(Lit_VarLike "KCONFIG_ALLCONFIG=") (DQ ($ VSub_Name "$STAGE_DIR")) 
                          (/mini.config)
                        }
                      ]
                      redirects: [
                        (Redirect
                          op_id: Redir_Great
                          arg_word: {(/dev/null)}
                          fd: -1
                          spids: [754]
                        )
                      ]
                    )
                    (AndOr
                      children: [
                        (C {(make)} {(-j)} {($ VSub_Name "$CPUS")} 
                          {(Lit_VarLike "ARCH=") 
                            (BracedVarSub
                              token: <VSub_Name BOOT_KARCH>
                              suffix_op: 
                                (StringUnary
                                  op_id: VTest_ColonHyphen
                                  arg_word: {($ VSub_Name "$KARCH")}
                                )
                              spids: [767 771]
                            )
                          } {($ VSub_Name "$DO_CROSS")} {($ VSub_Name "$LINUX_FLAGS")} {($ VSub_Name "$VERBOSITY")}
                        )
                        (C {(cp)} {(DQ ($ VSub_Name "$KERNEL_PATH"))} 
                          {(DQ ($ VSub_Name "$STAGE_DIR") (/linux))}
                        )
                      ]
                      op_id: Op_DAmp
                    )
                  ]
                  op_id: Op_DAmp
                )
                (C {(cleanup)})
              ]
            )
          spids: [-1 654]
        )
      ]
      spids: [-1 796]
    )
    (SimpleCommand
      words: [{(create_stage_tarball)}]
      more_env: [(env_pair name:ARCH val:{(DQ ($ VSub_Name "$ARCH_NAME"))} spids:[803])]
    )
    (C {(announce)} {(DQ ("Packaging complete"))})
  ]
)