(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<test>} {($ Id.VSub_Pound '#')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<1>})
                        (C {<test>} 
                          {
                            (DQ 
                              (braced_var_sub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Number 1>
                                var_name: 1
                                suffix_op: 
                                  (suffix_op.PatSub
                                    pat: 
                                      {
                                        (word_part.EscapedLiteral
                                          token: <Id.Lit_EscapedChar '\\/'>
                                          ch: '/'
                                        )
                                      }
                                    replace: {}
                                    replace_mode: Id.Undefined_Tok
                                    slash_tok: <Id.VOp2_Slash _>
                                  )
                                right: <Id.Right_DollarBrace '}'>
                              )
                            )
                          } {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ ($ Id.VSub_Number 1))}
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [
                {<echo>}
                {
                  (DQ <'Usage: '> ($ Id.VSub_Number 0) 
                    <': {python2.7-static|stackless2.7-static|stacklessco2.7-static}'>
                  )
                }
              ]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              more_env: []
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [30 62]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<test>} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: (C {<uname>})
                            right: <Id.Backtick_Right '`'>
                          )
                        )
                      } {<Id.Lit_Equals '='>} {<Darwin>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'URL='> name:URL)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ 
                        <
'https://raw.githubusercontent.com/pts/staticpython/master/release.darwin/'
                        > ($ Id.VSub_Number 1)
                      )
                    }
                  spids: [103]
                )
              ]
              redirects: []
            )
          ]
          spids: [83 100]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'URL='> name:URL)
              op: assign_op.Equal
              rhs: 
                {
                  (DQ <'https://raw.githubusercontent.com/pts/staticpython/master/release/'> 
                    ($ Id.VSub_Number 1)
                  )
                }
              spids: [112]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (C {<echo>} {(DQ <'info: downloading: '> ($ Id.VSub_DollarName URL))})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      words: [{<type>} {<-p>} {<curl>}]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<'/dev/null'>}
                        )
                        (redir
                          op: <Id.Redir_GreatAnd '2>&'>
                          loc: (redir_loc.Fd fd:2)
                          arg: {<1>}
                        )
                      ]
                      more_env: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<curl>} {<-o>} {(DQ ($ Id.VSub_Number 1) <.download>)} 
                  {(DQ ($ Id.VSub_DollarName URL))}
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>})
              ]
            )
          ]
          spids: [127 142]
        )
      ]
      else_action: [
        (command.AndOr
          ops: [Id.Op_DPipe]
          children: [
            (C {<wget>} {<-O>} {(DQ ($ Id.VSub_Number 1) <.download>)} {(DQ ($ Id.VSub_DollarName URL))})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>})
          ]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<chmod>} {<Id.Lit_Other '+'> <x>} {(DQ ($ Id.VSub_Number 1) <.download>)})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<mv>} {(DQ ($ Id.VSub_Number 1) <.download>)} {(DQ ($ Id.VSub_Number 1))})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>})
      ]
    )
    (C {<echo>} {(DQ <'info: download OK, run with: ./'> ($ Id.VSub_Number 1))})
  ]
)