(CommandList
  children: [
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(DQ ($ VSub_Pound '$#'))} {(-ne)} {(1)} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(echo)} {(DQ ('Usage: appsign.sh *build dir*'))}) (C {(exit)} {(1)})]
          spids: [16777215 19]
        )
      ]
      spids: [16777215 33]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:BUILD) op:Equal rhs:{($ VSub_Number '$1')} spids:[39])]
      spids: [39]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} 
                  {
                    (CommandSubPart
                      command_list: (CommandList children:[(C {(uname)} {(-s)})])
                      left_token: <Left_Backtick '`'>
                      spids: [53 57]
                    )
                  } {(Lit_Other '=')} {(DQ (Darwin))} {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [
                {(echo)}
                {(-n)}
                {
                  (CommandSubPart
                    command_list: 
                      (CommandList
                        children: [(C {(md5)} {(-q)} {($ VSub_Name '$BUILD') (/application.bin)})]
                      )
                    left_token: <Left_Backtick '`'>
                    spids: [74 81]
                  )
                }
              ]
              redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(__md5hash.bin)} spids:[83])]
            )
          ]
          spids: [16777215 68]
        )
      ]
      else_action: [
        (SimpleCommand
          words: [
            {(echo)}
            {(-n)}
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [
                          (C {(md5sum)} {(--binary)} {($ VSub_Name '$BUILD') (/application.bin)})
                          (C {(awk)} {(SQ <'{ print $1 }'>)})
                        ]
                        negated: False
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [93 108]
              )
            }
          ]
          redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(__md5hash.bin)} spids:[110])]
        )
      ]
      spids: [87 114]
    )
    (SimpleCommand
      words: [{(cat)} {($ VSub_Name '$BUILD') (/application.bin)} {(__md5hash.bin)}]
      redirects: [
        (Redir
          op_id: Redir_Great
          fd: 16777215
          arg_word: {($ VSub_Name '$BUILD') (/mcuimg.bin)}
          spids: [127]
        )
      ]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:RET) op:Equal rhs:{($ VSub_QMark '$?')} spids:[132])]
      spids: [132]
    )
    (C {(rm)} {(-f)} {(__md5hash.bin)})
    (C {(rm)} {(-f)} {($ VSub_Name '$BUILD') (/application.bin)})
    (C {(exit)} {($ VSub_Name '$RET')})
  ]
)