(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'USAGE='> name:USAGE)
          op: assign_op.Equal
          rhs: 
            {
              (SQ 
                <
'[--tool=tool] [--tool-help] [-y|--no-prompt|--prompt] [-O<orderfile>] [file to merge] ...'
                >
              )
            }
          spids: [31]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SUBDIRECTORY_OK='> name:SUBDIRECTORY_OK)
          op: assign_op.Equal
          rhs: {<Yes>}
          spids: [36]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NONGIT_OK='> name:NONGIT_OK)
          op: assign_op.Equal
          rhs: {<Yes>}
          spids: [39]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'OPTIONS_SPEC='> name:OPTIONS_SPEC)
          op: assign_op.Equal
          rhs: (rhs_word.Empty)
          spids: [42]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TOOL_MODE='> name:TOOL_MODE)
          op: assign_op.Equal
          rhs: {<merge>}
          spids: [44]
        )
      ]
      redirects: []
    )
    (C {<.>} {<git-sh-setup>})
    (C {<.>} {<git-mergetool--lib>})
    (command.ShFunction
      name: is_symlink
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [(C {<test>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} {<120000>})]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: is_submodule
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [(C {<test>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} {<160000>})]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: local_present
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName local_mode))})]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: remote_present
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName remote_mode))})]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: base_present
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [(C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName base_mode))})]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: mergetool_tmpdir_init
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} 
                          {
                            (DQ 
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<git>} {<config>} {<--bool>} {<mergetool.writeToTemp>})
                                right: <Id.Eof_RParen _>
                              )
                            )
                          } {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<true>}
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                              name: MERGETOOL_TMPDIR
                            )
                          op: assign_op.Equal
                          rhs: {<.>}
                          spids: [191]
                        )
                      ]
                      redirects: []
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [166 188]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                                  name: MERGETOOL_TMPDIR
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Simple
                                        words: [{<mktemp>} {<-d>} {<-t>} {(DQ <git-mergetool-XXXXXX>)}]
                                        redirects: [
                                          (redir
                                            op: <Id.Redir_Great '2>'>
                                            loc: (redir_loc.Fd fd:2)
                                            arg: {<'/dev/null'>}
                                          )
                                        ]
                                        more_env: []
                                        do_fork: T
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [205]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  action: [(command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})]
                  spids: [203 222]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<die>} {(DQ <'error: mktemp is needed when \'mergetool.writeToTemp\' is true'>)})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: cleanup_temp_files
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} {<--save-backup>})
                      ]
                    )
                  action: [
                    (C {<rm>} {<-rf>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED) <.orig>)})
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName BACKUP))})
                        (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName BACKUP))} 
                          {(DQ ($ Id.VSub_DollarName MERGED) <.orig>)}
                        )
                      ]
                    )
                    (C {<rm>} {<-f>} {<-->} {(DQ ($ Id.VSub_DollarName LOCAL))} 
                      {(DQ ($ Id.VSub_DollarName REMOTE))} {(DQ ($ Id.VSub_DollarName BASE))}
                    )
                  ]
                  spids: [250 263]
                )
              ]
              else_action: [
                (C {<rm>} {<-f>} {<-->} {(DQ ($ Id.VSub_DollarName LOCAL))} 
                  {(DQ ($ Id.VSub_DollarName REMOTE))} {(DQ ($ Id.VSub_DollarName BASE))} {(DQ ($ Id.VSub_DollarName BACKUP))}
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} {(DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR))} 
                          {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <.>)}
                        )
                      ]
                    )
                  action: [(C {<rmdir>} {(DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR))})]
                  spids: [350 366]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: describe_file
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'mode='> name:mode)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                  spids: [389]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'branch='> name:branch)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 2))}
                  spids: [395]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'file='> name:file)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 3))}
                  spids: [401]
                )
              ]
              redirects: []
            )
            (C {<printf>} {(DQ <'  {%s}: '>)} {(DQ ($ Id.VSub_DollarName branch))})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName mode))})]
                    )
                  action: [(C {<echo>} {(DQ <deleted>)})]
                  spids: [419 430]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<is_symlink>} {(DQ ($ Id.VSub_DollarName mode))})]
                    )
                  action: [
                    (C {<echo>} 
                      {
                        (DQ <'a symbolic link -> \''> 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<cat>} {(DQ ($ Id.VSub_DollarName file))})
                            right: <Id.Eof_RParen _>
                          ) <'\''>
                        )
                      }
                    )
                  ]
                  spids: [440 449]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<is_submodule>} {(DQ ($ Id.VSub_DollarName mode))})]
                    )
                  action: [(C {<echo>} {(DQ <'submodule commit '> ($ Id.VSub_DollarName file))})]
                  spids: [467 476]
                )
                (if_arm
                  cond: (condition.Shell commands:[(C {<base_present>})])
                  action: [(C {<echo>} {(DQ <'modified file'>)})]
                  spids: [487 492]
                )
              ]
              else_action: [(C {<echo>} {(DQ <'created file'>)})]
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: resolve_symlink_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<true>})])
              body: 
                (command.DoGroup
                  children: [
                    (C {<printf>} {(DQ <'Use (l)ocal or (r)emote, or (a)bort? '>)})
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<read>} {<ans>})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                    )
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_DollarName ans))}
                      arms: [
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <lL> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (C {<git>} {<checkout-index>} {<-f>} {<--stage> <Id.Lit_Equals '='> <2>} 
                              {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}
                            )
                            (C {<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                            (C {<cleanup_temp_files>} {<--save-backup>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [560 564 605 -1]
                        )
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <rR> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (C {<git>} {<checkout-index>} {<-f>} {<--stage> <Id.Lit_Equals '='> <3>} 
                              {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}
                            )
                            (C {<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                            (C {<cleanup_temp_files>} {<--save-backup>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [608 612 653 -1]
                        )
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <aA> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [656 660 668 -1]
                        )
                      ]
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: resolve_deleted_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<true>})])
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: (condition.Shell commands:[(C {<base_present>})])
                          action: [
                            (C {<printf>} {(DQ <'Use (m)odified or (d)eleted file, or (a)bort? '>)})
                          ]
                          spids: [695 700]
                        )
                      ]
                      else_action: [
                        (C {<printf>} {(DQ <'Use (c)reated or (d)eleted file, or (a)bort? '>)})
                      ]
                      redirects: []
                    )
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<read>} {<ans>})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                    )
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_DollarName ans))}
                      arms: [
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <mMcC> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (C {<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<test>} {(DQ ($ Id.VSub_DollarName merge_keep_backup))} 
                                          {<Id.Lit_Equals '='>} {(DQ <true>)}
                                        )
                                      ]
                                    )
                                  action: [(C {<cleanup_temp_files>} {<--save-backup>})]
                                  spids: [761 776]
                                )
                              ]
                              else_action: [(C {<cleanup_temp_files>})]
                              redirects: []
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [743 747 798 -1]
                        )
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <dD> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.Simple
                              words: [{<git>} {<rm>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                            (C {<cleanup_temp_files>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [801 805 831 -1]
                        )
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <aA> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<test>} {(DQ ($ Id.VSub_DollarName merge_keep_temporaries))} 
                                          {<Id.Lit_Equals '='>} {(DQ <false>)}
                                        )
                                      ]
                                    )
                                  action: [(C {<cleanup_temp_files>})]
                                  spids: [841 856]
                                )
                              ]
                              else_action: []
                              redirects: []
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [834 838 870 -1]
                        )
                      ]
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: resolve_submodule_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<true>})])
              body: 
                (command.DoGroup
                  children: [
                    (C {<printf>} {(DQ <'Use (l)ocal or (r)emote, or (a)bort? '>)})
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<read>} {<ans>})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                    )
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_DollarName ans))}
                      arms: [
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <lL> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Pipeline
                                          children: [(C {<local_present>})]
                                          negated: T
                                          stderr_indices: []
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (C {<test>} {<-n>} 
                                                  {
                                                    (DQ 
                                                      (command_sub
                                                        left_token: <Id.Left_DollarParen '$('>
                                                        child: 
                                                          (C {<git>} {<ls-tree>} {<HEAD>} {<-->} 
                                                            {(DQ ($ Id.VSub_DollarName MERGED))}
                                                          )
                                                        right: <Id.Eof_RParen _>
                                                      )
                                                    )
                                                  }
                                                )
                                              ]
                                            )
                                          action: [
                                            (command.AndOr
                                              ops: [Id.Op_DPipe]
                                              children: [
                                                (command.Pipeline
                                                  children: [
                                                    (C {<git>} {<ls-tree>} {<--full-name>} {<-r>} {<HEAD>} 
                                                      {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}
                                                    )
                                                    (C {<git>} {<update-index>} {<--index-info>})
                                                  ]
                                                  negated: F
                                                  stderr_indices: []
                                                )
                                                (command.ControlFlow
                                                  token: <Id.ControlFlow_Exit exit>
                                                  arg_word: {($ Id.VSub_QMark '?')}
                                                )
                                              ]
                                            )
                                          ]
                                          spids: [941 964]
                                        )
                                      ]
                                      else_action: [
                                        (command.AndOr
                                          ops: [Id.Op_DAmp]
                                          children: [
                                            (C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName MERGED))})
                                            (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))} 
                                              {(DQ ($ Id.VSub_DollarName BACKUP))}
                                            )
                                          ]
                                        )
                                        (C {<git>} {<update-index>} {<--force-remove>} 
                                          {(DQ ($ Id.VSub_DollarName MERGED))}
                                        )
                                        (C {<cleanup_temp_files>} {<--save-backup>})
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [931 938]
                                )
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<is_submodule>} {(DQ ($ Id.VSub_DollarName local_mode))})
                                      ]
                                    )
                                  action: [
                                    (C {<stage_submodule>} {(DQ ($ Id.VSub_DollarName MERGED))} 
                                      {(DQ ($ Id.VSub_DollarName local_sha1))}
                                    )
                                  ]
                                  spids: [1048 1057]
                                )
                              ]
                              else_action: [
                                (C {<git>} {<checkout-index>} {<-f>} {<--stage> <Id.Lit_Equals '='> <2>} 
                                  {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}
                                )
                                (C {<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                              ]
                              redirects: []
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [924 928 1110 -1]
                        )
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <rR> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Pipeline
                                          children: [(C {<remote_present>})]
                                          negated: T
                                          stderr_indices: []
                                        )
                                      ]
                                    )
                                  action: [
                                    (command.If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (C {<test>} {<-n>} 
                                                  {
                                                    (DQ 
                                                      (command_sub
                                                        left_token: <Id.Left_DollarParen '$('>
                                                        child: 
                                                          (C {<git>} {<ls-tree>} {<MERGE_HEAD>} {<-->} 
                                                            {(DQ ($ Id.VSub_DollarName MERGED))}
                                                          )
                                                        right: <Id.Eof_RParen _>
                                                      )
                                                    )
                                                  }
                                                )
                                              ]
                                            )
                                          action: [
                                            (command.AndOr
                                              ops: [Id.Op_DPipe]
                                              children: [
                                                (command.Pipeline
                                                  children: [
                                                    (C {<git>} {<ls-tree>} {<--full-name>} {<-r>} 
                                                      {<MERGE_HEAD>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}
                                                    )
                                                    (C {<git>} {<update-index>} {<--index-info>})
                                                  ]
                                                  negated: F
                                                  stderr_indices: []
                                                )
                                                (command.ControlFlow
                                                  token: <Id.ControlFlow_Exit exit>
                                                  arg_word: {($ Id.VSub_QMark '?')}
                                                )
                                              ]
                                            )
                                          ]
                                          spids: [1130 1153]
                                        )
                                      ]
                                      else_action: [
                                        (command.AndOr
                                          ops: [Id.Op_DAmp]
                                          children: [
                                            (C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName MERGED))})
                                            (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))} 
                                              {(DQ ($ Id.VSub_DollarName BACKUP))}
                                            )
                                          ]
                                        )
                                        (C {<git>} {<update-index>} {<--force-remove>} 
                                          {(DQ ($ Id.VSub_DollarName MERGED))}
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [1120 1127]
                                )
                                (if_arm
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<is_submodule>} {(DQ ($ Id.VSub_DollarName remote_mode))})
                                      ]
                                    )
                                  action: [
                                    (command.AndOr
                                      ops: [Id.Op_DAmp Id.Op_DAmp]
                                      children: [
                                        (command.Pipeline
                                          children: [
                                            (C {<is_submodule>} {(DQ ($ Id.VSub_DollarName local_mode))})
                                          ]
                                          negated: T
                                          stderr_indices: []
                                        )
                                        (C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName MERGED))})
                                        (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))} 
                                          {(DQ ($ Id.VSub_DollarName BACKUP))}
                                        )
                                      ]
                                    )
                                    (C {<stage_submodule>} {(DQ ($ Id.VSub_DollarName MERGED))} 
                                      {(DQ ($ Id.VSub_DollarName remote_sha1))}
                                    )
                                  ]
                                  spids: [1232 1241]
                                )
                              ]
                              else_action: [
                                (command.AndOr
                                  ops: [Id.Op_DAmp]
                                  children: [
                                    (C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName MERGED))})
                                    (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))} 
                                      {(DQ ($ Id.VSub_DollarName BACKUP))}
                                    )
                                  ]
                                )
                                (C {<git>} {<checkout-index>} {<-f>} {<--stage> <Id.Lit_Equals '='> <3>} 
                                  {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}
                                )
                                (C {<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                              ]
                              redirects: []
                            )
                            (C {<cleanup_temp_files>} {<--save-backup>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [1113 1117 1357 -1]
                        )
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <aA> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [1360 1364 1372 -1]
                        )
                      ]
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: stage_submodule
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'path='> name:path)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                  spids: [1391]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'submodule_sha1='> name:submodule_sha1)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 2))}
                  spids: [1397]
                )
              ]
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<mkdir>} {<-p>} {(DQ ($ Id.VSub_DollarName path))})
                (C {<die>} 
                  {
                    (DQ <'fatal: unable to create directory for module at '> 
                      ($ Id.VSub_DollarName path)
                    )
                  }
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'work_tree_root='> name:work_tree_root)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.AndOr
                            ops: [Id.Op_DAmp]
                            children: [(C {<cd_to_toplevel>}) (C {<pwd>})]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1426]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'work_rel_path='> name:work_rel_path)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.AndOr
                            ops: [Id.Op_DAmp]
                            children: [
                              (C {<cd>} {(DQ ($ Id.VSub_DollarName path))})
                              (command.Simple
                                words: [{<git>} {<rev-parse>} {<--show-prefix>}]
                                redirects: []
                                more_env: [
                                  (env_pair
                                    name: GIT_WORK_TREE
                                    val: {(DQ (${ Id.VSub_Name work_tree_root))}
                                    spids: [1447]
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1436]
                )
              ]
              redirects: []
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName work_rel_path))})
                (C {<die>} 
                  {
                    (DQ <'fatal: unable to get path of module '> ($ Id.VSub_DollarName path) 
                      <' relative to work tree'>
                    )
                  }
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<git>} {<update-index>} {<--add>} {<--replace>} {<--cacheinfo>} {<160000>} 
                  {(DQ ($ Id.VSub_DollarName submodule_sha1))} 
                  {
                    (DQ 
                      (braced_var_sub
                        left: <Id.Left_DollarBrace '${'>
                        token: <Id.VSub_Name work_rel_path>
                        var_name: work_rel_path
                        suffix_op: 
                          (suffix_op.Unary
                            op: <Id.VOp1_Percent '%'>
                            arg_word: {<Id.Lit_Slash '/'>}
                          )
                        right: <Id.Right_DollarBrace '}'>
                      )
                    )
                  }
                )
                (C {<die>})
              ]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: checkout_staged_file
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tmpfile='> name:tmpfile)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<expr>} 
                            {
                              (DQ 
                                (command_sub
                                  left_token: <Id.Left_DollarParen '$('>
                                  child: 
                                    (command.Simple
                                      words: [
                                        {<git>}
                                        {<checkout-index>}
                                        {<--temp>}
                                        {<--stage> <Id.Lit_Equals '='> (DQ ($ Id.VSub_Number 1))}
                                        {(DQ ($ Id.VSub_Number 2))}
                                      ]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_Great '2>'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      more_env: []
                                      do_fork: T
                                    )
                                  right: <Id.Eof_RParen _>
                                )
                              )
                            } {<Id.Lit_Colon ':'>} {(SQ <'\\([^\t]*\\)\t'>)}
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1523]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {($ Id.VSub_QMark '?')} {<-eq>} {<0>})
                            (C {<test>} {<-n>} {(DQ ($ Id.VSub_DollarName tmpfile))})
                          ]
                        )
                      ]
                    )
                  action: [
                    (C {<mv>} {<-->} 
                      {
                        (DQ 
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<git>} {<rev-parse>} {<--show-cdup>})
                            right: <Id.Eof_RParen _>
                          ) ($ Id.VSub_DollarName tmpfile)
                        )
                      } {(DQ ($ Id.VSub_Number 3))}
                    )
                  ]
                  spids: [1563 1584]
                )
              ]
              else_action: [
                (command.Simple
                  words: []
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_Number 3))}
                    )
                  ]
                  more_env: []
                  do_fork: F
                )
              ]
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: merge_file
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'MERGED='> name:MERGED)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                  spids: [1629]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'f='> name:f)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<git>} {<ls-files>} {<-u>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1636]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName f))})]
                    )
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (C {<test>} {<Id.KW_Bang '!'>} {<-f>} {(DQ ($ Id.VSub_DollarName MERGED))})
                              ]
                            )
                          action: [
                            (C {<echo>} {(DQ ($ Id.VSub_DollarName MERGED) <': file not found'>)})
                          ]
                          spids: [1666 1679]
                        )
                      ]
                      else_action: [
                        (C {<echo>} 
                          {(DQ ($ Id.VSub_DollarName MERGED) <': file does not need merging'>)}
                        )
                      ]
                      redirects: []
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [1652 1663]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASE='> name:BASE)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (C {<expr>} {(DQ ($ Id.VSub_DollarName MERGED))} 
                                        {<Id.Lit_Colon ':'>} {(SQ <'\\(.*\\)\\.[^/]*$'>)}
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                              spids: [1715]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ext='> name:ext)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (C {<expr>} {(DQ ($ Id.VSub_DollarName MERGED))} {<Id.Lit_Colon ':'>} 
                                    {(SQ <'.*\\(\\.[^/]*\\)$'>)}
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [1734]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1713 1731]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASE='> name:BASE)
                      op: assign_op.Equal
                      rhs: {($ Id.VSub_DollarName MERGED)}
                      spids: [1753]
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ext='> name:ext)
                      op: assign_op.Equal
                      rhs: (rhs_word.Empty)
                      spids: [1757]
                    )
                  ]
                  redirects: []
                )
              ]
              redirects: []
            )
            (C {<mergetool_tmpdir_init>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} {(DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR))} 
                          {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <.>)}
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASE='> name:BASE)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (braced_var_sub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name BASE>
                                var_name: BASE
                                suffix_op: 
                                  (suffix_op.Unary
                                    op: <Id.VOp1_DPound '##'>
                                    arg_word: {<Id.Lit_Other '*'> <Id.Lit_Slash '/'>}
                                  )
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                          spids: [1795]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1768 1784]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BACKUP='> name:BACKUP)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR) <'/'> (${ Id.VSub_Name BASE) 
                        <_BACKUP_> ($ Id.VSub_Dollar '$') ($ Id.VSub_DollarName ext)
                      )
                    }
                  spids: [1808]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'LOCAL='> name:LOCAL)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR) <'/'> (${ Id.VSub_Name BASE) <_LOCAL_> 
                        ($ Id.VSub_Dollar '$') ($ Id.VSub_DollarName ext)
                      )
                    }
                  spids: [1821]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'REMOTE='> name:REMOTE)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR) <'/'> (${ Id.VSub_Name BASE) 
                        <_REMOTE_> ($ Id.VSub_Dollar '$') ($ Id.VSub_DollarName ext)
                      )
                    }
                  spids: [1834]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASE='> name:BASE)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR) <'/'> (${ Id.VSub_Name BASE) <_BASE_> 
                        ($ Id.VSub_Dollar '$') ($ Id.VSub_DollarName ext)
                      )
                    }
                  spids: [1847]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'base_mode='> name:base_mode)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<git>} {<ls-files>} {<-u>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                              (C {<awk>} {(SQ <'{if ($3==1) print $1;}'>)})
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1861]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'local_mode='> name:local_mode)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<git>} {<ls-files>} {<-u>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                              (C {<awk>} {(SQ <'{if ($3==2) print $1;}'>)})
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1885]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'remote_mode='> name:remote_mode)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<git>} {<ls-files>} {<-u>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
                              (C {<awk>} {(SQ <'{if ($3==3) print $1;}'>)})
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [1909]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<is_submodule>} {(DQ ($ Id.VSub_DollarName local_mode))})
                            (C {<is_submodule>} {(DQ ($ Id.VSub_DollarName remote_mode))})
                          ]
                        )
                      ]
                    )
                  action: [
                    (C {<echo>} 
                      {(DQ <'Submodule merge conflict for \''> ($ Id.VSub_DollarName MERGED) <'\':'>)}
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'local_sha1='> name:local_sha1)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<git>} {<ls-files>} {<-u>} {<-->} 
                                        {(DQ ($ Id.VSub_DollarName MERGED))}
                                      )
                                      (C {<awk>} {(SQ <'{if ($3==2) print $2;}'>)})
                                    ]
                                    negated: F
                                    stderr_indices: []
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [1963]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'remote_sha1='>
                              name: remote_sha1
                            )
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<git>} {<ls-files>} {<-u>} {<-->} 
                                        {(DQ ($ Id.VSub_DollarName MERGED))}
                                      )
                                      (C {<awk>} {(SQ <'{if ($3==3) print $2;}'>)})
                                    ]
                                    negated: F
                                    stderr_indices: []
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [1987]
                        )
                      ]
                      redirects: []
                    )
                    (C {<describe_file>} {(DQ ($ Id.VSub_DollarName local_mode))} {(DQ <local>)} 
                      {(DQ ($ Id.VSub_DollarName local_sha1))}
                    )
                    (C {<describe_file>} {(DQ ($ Id.VSub_DollarName remote_mode))} {(DQ <remote>)} 
                      {(DQ ($ Id.VSub_DollarName remote_sha1))}
                    )
                    (C {<resolve_submodule_merge>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [1934 1951]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-f>} {(DQ ($ Id.VSub_DollarName MERGED))})]
                    )
                  action: [
                    (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))} 
                      {(DQ ($ Id.VSub_DollarName BACKUP))}
                    )
                    (C {<cp>} {<-->} {(DQ ($ Id.VSub_DollarName BACKUP))} 
                      {(DQ ($ Id.VSub_DollarName MERGED))}
                    )
                  ]
                  spids: [2051 2062]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<mkdir>} {<-p>} 
              {
                (DQ 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: (C {<dirname>} {(DQ ($ Id.VSub_DollarName MERGED))})
                    right: <Id.Eof_RParen _>
                  )
                )
              }
            )
            (C {<checkout_staged_file>} {<1>} {(DQ ($ Id.VSub_DollarName MERGED))} 
              {(DQ ($ Id.VSub_DollarName BASE))}
            )
            (C {<checkout_staged_file>} {<2>} {(DQ ($ Id.VSub_DollarName MERGED))} 
              {(DQ ($ Id.VSub_DollarName LOCAL))}
            )
            (C {<checkout_staged_file>} {<3>} {(DQ ($ Id.VSub_DollarName MERGED))} 
              {(DQ ($ Id.VSub_DollarName REMOTE))}
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName local_mode))})
                            (C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName remote_mode))})
                          ]
                        )
                      ]
                    )
                  action: [
                    (C {<echo>} 
                      {(DQ <'Deleted merge conflict for \''> ($ Id.VSub_DollarName MERGED) <'\':'>)}
                    )
                    (C {<describe_file>} {(DQ ($ Id.VSub_DollarName local_mode))} {(DQ <local>)} 
                      {(DQ ($ Id.VSub_DollarName LOCAL))}
                    )
                    (C {<describe_file>} {(DQ ($ Id.VSub_DollarName remote_mode))} {(DQ <remote>)} 
                      {(DQ ($ Id.VSub_DollarName REMOTE))}
                    )
                    (C {<resolve_deleted_merge>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'status='> name:status)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_QMark '?')}
                          spids: [2224]
                        )
                      ]
                      redirects: []
                    )
                    (command.Simple
                      words: [
                        {<rmdir>}
                        {<-p>}
                        {
                          (DQ 
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: (C {<dirname>} {(DQ ($ Id.VSub_DollarName MERGED))})
                              right: <Id.Eof_RParen _>
                            )
                          )
                        }
                      ]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '2>'>
                          loc: (redir_loc.Fd fd:2)
                          arg: {<'/dev/null'>}
                        )
                      ]
                      more_env: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {($ Id.VSub_DollarName status)}
                    )
                  ]
                  spids: [2158 2179]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<is_symlink>} {(DQ ($ Id.VSub_DollarName local_mode))})
                            (C {<is_symlink>} {(DQ ($ Id.VSub_DollarName remote_mode))})
                          ]
                        )
                      ]
                    )
                  action: [
                    (C {<echo>} 
                      {
                        (DQ <'Symbolic link merge conflict for \''> ($ Id.VSub_DollarName MERGED) 
                          <'\':'>
                        )
                      }
                    )
                    (C {<describe_file>} {(DQ ($ Id.VSub_DollarName local_mode))} {(DQ <local>)} 
                      {(DQ ($ Id.VSub_DollarName LOCAL))}
                    )
                    (C {<describe_file>} {(DQ ($ Id.VSub_DollarName remote_mode))} {(DQ <remote>)} 
                      {(DQ ($ Id.VSub_DollarName REMOTE))}
                    )
                    (C {<resolve_symlink_merge>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [2255 2272]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<echo>} {(DQ <'Normal merge conflict for \''> ($ Id.VSub_DollarName MERGED) <'\':'>)})
            (C {<describe_file>} {(DQ ($ Id.VSub_DollarName local_mode))} {(DQ <local>)} 
              {(DQ ($ Id.VSub_DollarName LOCAL))}
            )
            (C {<describe_file>} {(DQ ($ Id.VSub_DollarName remote_mode))} {(DQ <remote>)} 
              {(DQ ($ Id.VSub_DollarName REMOTE))}
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DPipe]
                          children: [
                            (C {<test>} {(DQ ($ Id.VSub_DollarName guessed_merge_tool))} 
                              {<Id.Lit_Equals '='>} {<true>}
                            )
                            (C {<test>} {(DQ ($ Id.VSub_DollarName prompt))} {<Id.Lit_Equals '='>} 
                              {<true>}
                            )
                          ]
                        )
                      ]
                    )
                  action: [
                    (C {<printf>} {(DQ <'Hit return to start merge resolution tool (%s): '>)} 
                      {(DQ ($ Id.VSub_DollarName merge_tool))}
                    )
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<read>} {<ans>})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                    )
                  ]
                  spids: [2363 2388]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: (condition.Shell commands:[(C {<base_present>})])
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'present='> name:present)
                          op: assign_op.Equal
                          rhs: {<true>}
                          spids: [2425]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [2417 2422]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'present='> name:present)
                      op: assign_op.Equal
                      rhs: {<false>}
                      spids: [2432]
                    )
                  ]
                  redirects: []
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Pipeline
                          children: [
                            (C {<run_merge_tool>} {(DQ ($ Id.VSub_DollarName merge_tool))} 
                              {(DQ ($ Id.VSub_DollarName present))}
                            )
                          ]
                          negated: T
                          stderr_indices: []
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [{<echo>} {(DQ <'merge of '> ($ Id.VSub_DollarName MERGED) <' failed'>)}]
                      redirects: [
                        (redir
                          op: <Id.Redir_GreatAnd '1>&'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<2>}
                        )
                      ]
                      more_env: []
                      do_fork: T
                    )
                    (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName BACKUP))} 
                      {(DQ ($ Id.VSub_DollarName MERGED))}
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (C {<test>} {(DQ ($ Id.VSub_DollarName merge_keep_temporaries))} 
                                  {<Id.Lit_Equals '='>} {(DQ <false>)}
                                )
                              ]
                            )
                          action: [(C {<cleanup_temp_files>})]
                          spids: [2484 2499]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [2440 2455]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<test>} {(DQ ($ Id.VSub_DollarName merge_keep_backup))} 
                          {<Id.Lit_Equals '='>} {(DQ <true>)}
                        )
                      ]
                    )
                  action: [
                    (C {<mv>} {<-->} {(DQ ($ Id.VSub_DollarName BACKUP))} 
                      {(DQ ($ Id.VSub_DollarName MERGED) <.orig>)}
                    )
                  ]
                  spids: [2518 2533]
                )
              ]
              else_action: [(C {<rm>} {<-->} {(DQ ($ Id.VSub_DollarName BACKUP))})]
              redirects: []
            )
            (C {<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))})
            (C {<cleanup_temp_files>})
            (command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: prompt_after_failed_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: (condition.Shell commands:[(C {<true>})])
              body: 
                (command.DoGroup
                  children: [
                    (C {<printf>} {(DQ <'Continue merging other unresolved paths [y/n]? '>)})
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<read>} {<ans>})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                    )
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_DollarName ans))}
                      arms: [
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <yY> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [2630 2634 2642 -1]
                        )
                        (case_arm
                          pat_list: [
                            {<Id.Lit_LBracket '['> <nN> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                          ]
                          action: [
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [2645 2649 2657 -1]
                        )
                      ]
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: print_noop_and_exit
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (C {<echo>} {(DQ <'No files need merging'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name: main
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prompt='> name:prompt)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<git>} {<config>} {<--bool>} {<mergetool.prompt>})
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [2698]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'guessed_merge_tool='>
                      name: guessed_merge_tool
                    )
                  op: assign_op.Equal
                  rhs: {<false>}
                  spids: [2710]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'orderfile='> name:orderfile)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [2714]
                )
              ]
              redirects: []
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (C {<test>} {($ Id.VSub_Pound '#')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>})
                  ]
                )
              body: 
                (command.DoGroup
                  children: [
                    (command.Case
                      to_match: {(DQ ($ Id.VSub_Number 1))}
                      arms: [
                        (case_arm
                          pat_list: [{<--tool-help> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'TOOL_MODE='>
                                      name: TOOL_MODE
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (braced_var_sub
                                        left: <Id.Left_DollarBrace '${'>
                                        token: <Id.VSub_Number 1>
                                        var_name: 1
                                        suffix_op: 
                                          (suffix_op.Unary
                                            op: <Id.VOp1_Pound '#'>
                                            arg_word: {<'--tool-help='>}
                                          )
                                        right: <Id.Right_DollarBrace '}'>
                                      )
                                    }
                                  spids: [2748]
                                )
                              ]
                              redirects: []
                            )
                            (C {<show_tool_help>})
                          ]
                          spids: [2742 2745 2759 -1]
                        )
                        (case_arm
                          pat_list: [{<--tool-help>}]
                          action: [(C {<show_tool_help>})]
                          spids: [2762 2763 2769 -1]
                        )
                        (case_arm
                          pat_list: [{<-t>} {<--tool> <Id.Lit_Star '*'>}]
                          action: [
                            (command.Case
                              to_match: {(DQ ($ Id.VSub_Pound '#') <','> ($ Id.VSub_Number 1))}
                              arms: [
                                (case_arm
                                  pat_list: [
                                    {<Id.Lit_Star '*'> <Id.Lit_Comma ','> <Id.Lit_Star '*'> 
                                      <Id.Lit_Equals '='> <Id.Lit_Star '*'>
                                    }
                                  ]
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'merge_tool='>
                                              name: merge_tool
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (C {<expr>} {(DQ <z> ($ Id.VSub_Number 1))} 
                                                    {<Id.Lit_Colon ':'>} {(SQ <'z-[^=]*=\\(.*\\)'>)}
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                          spids: [2798]
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [2790 2795 2815 -1]
                                )
                                (case_arm
                                  pat_list: [{<1> <Id.Lit_Comma ','> <Id.Lit_Star '*'>}]
                                  action: [(C {<usage>})]
                                  spids: [2818 2821 2826 -1]
                                )
                                (case_arm
                                  pat_list: [{<Id.Lit_Star '*'>}]
                                  action: [
                                    (command.ShAssignment
                                      pairs: [
                                        (assign_pair
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'merge_tool='>
                                              name: merge_tool
                                            )
                                          op: assign_op.Equal
                                          rhs: {(DQ ($ Id.VSub_Number 2))}
                                          spids: [2833]
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (C {<shift>})
                                  ]
                                  spids: [2829 2830 2841 -1]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2772 2776 2847 -1]
                        )
                        (case_arm
                          pat_list: [{<-y>} {<--no-prompt>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prompt='> name:prompt)
                                  op: assign_op.Equal
                                  rhs: {<false>}
                                  spids: [2856]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2850 2853 2860 -1]
                        )
                        (case_arm
                          pat_list: [{<--prompt>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prompt='> name:prompt)
                                  op: assign_op.Equal
                                  rhs: {<true>}
                                  spids: [2867]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2863 2864 2871 -1]
                        )
                        (case_arm
                          pat_list: [{<-O> <Id.Lit_Star '*'>}]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'orderfile='>
                                      name: orderfile
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number 1))}
                                  spids: [2879]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2874 2876 2885 -1]
                        )
                        (case_arm
                          pat_list: [{<-->}]
                          action: [
                            (C {<shift>})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Break break>
                            )
                          ]
                          spids: [2888 2889 2898 -1]
                        )
                        (case_arm
                          pat_list: [{<-> <Id.Lit_Star '*'>}]
                          action: [(C {<usage>})]
                          spids: [2901 2903 2909 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                          spids: [2912 2913 2919 -1]
                        )
                      ]
                      redirects: []
                    )
                    (C {<shift>})
                  ]
                )
              redirects: []
            )
            (C {<git_dir_init>})
            (C {<require_work_tree>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName merge_tool))})]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'merge_tool='> name:merge_tool)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: (C {<get_configured_merge_tool>})
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [2957]
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName merge_tool))})]
                            )
                          action: [
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'merge_tool='>
                                          name: merge_tool
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: (C {<guess_merge_tool>})
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                      spids: [2981]
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ControlFlow
                                  token: <Id.ControlFlow_Exit exit>
                                )
                              ]
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'guessed_merge_tool='>
                                      name: guessed_merge_tool
                                    )
                                  op: assign_op.Equal
                                  rhs: {<true>}
                                  spids: [2991]
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2967 2978]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                  ]
                  spids: [2939 2950]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'merge_keep_backup='>
                      name: merge_keep_backup
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ 
                        (command_sub
                          left_token: <Id.Left_DollarParen '$('>
                          child: 
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (C {<git>} {<config>} {<--bool>} {<mergetool.keepBackup>})
                                (C {<echo>} {<true>})
                              ]
                            )
                          right: <Id.Eof_RParen _>
                        )
                      )
                    }
                  spids: [3001]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'merge_keep_temporaries='>
                      name: merge_keep_temporaries
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ 
                        (command_sub
                          left_token: <Id.Left_DollarParen '$('>
                          child: 
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (C {<git>} {<config>} {<--bool>} {<mergetool.keepTemporaries>})
                                (C {<echo>} {<false>})
                              ]
                            )
                          right: <Id.Eof_RParen _>
                        )
                      )
                    }
                  spids: [3021]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (C {<test>} {($ Id.VSub_Pound '#')} {<-eq>} {<0>})
                            (C {<test>} {<-e>} {(DQ ($ Id.VSub_DollarName GIT_DIR) <'/MERGE_RR'>)})
                          ]
                        )
                      ]
                    )
                  action: [
                    (C {<set>} {<-->} 
                      {
                        (command_sub
                          left_token: <Id.Left_DollarParen '$('>
                          child: (C {<git>} {<rerere>} {<remaining>})
                          right: <Id.Eof_RParen _>
                        )
                      }
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [(C {<test>} {($ Id.VSub_Pound '#')} {<-eq>} {<0>})]
                            )
                          action: [(C {<print_noop_and_exit>})]
                          spids: [3080 3091]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                  ]
                  spids: [3042 3064]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'files='> name:files)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<git>} {<-c>} {<core.quotePath> <Id.Lit_Equals '='> <false>} {<diff>} 
                            {<--name-only>} {<--diff-filter> <Id.Lit_Equals '='> <U>} 
                            {
                              (braced_var_sub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name orderfile>
                                var_name: orderfile
                                suffix_op: 
                                  (suffix_op.Unary
                                    op: <Id.VTest_ColonPlus _>
                                    arg_word: {(DQ ($ Id.VSub_DollarName orderfile))}
                                  )
                                right: <Id.Right_DollarBrace '}'>
                              )
                            } {<-->} {(DQ ($ Id.VSub_At '@'))}
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [3104]
                )
              ]
              redirects: []
            )
            (C {<cd_to_toplevel>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [(C {<test>} {<-z>} {(DQ ($ Id.VSub_DollarName files))})]
                    )
                  action: [(C {<print_noop_and_exit>})]
                  spids: [3147 3158]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<printf>} {(DQ <'Merging:'> <Id.Lit_BadBackslash '\\'> <n>)})
            (C {<printf>} {(DQ <'%s'> <Id.Lit_BadBackslash '\\'> <n>)} 
              {(DQ ($ Id.VSub_DollarName files))}
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rc='> name:rc)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [3191]
                )
              ]
              redirects: []
            )
            (command.ForEach
              iter_names: [i]
              iterable: (for_iter.Words words:[{($ Id.VSub_DollarName files)}])
              body: 
                (command.DoGroup
                  children: [
                    (C {<printf>} {(DQ <Id.Lit_BadBackslash '\\'> <n>)})
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Pipeline
                                  children: [(C {<merge_file>} {(DQ ($ Id.VSub_DollarName i))})]
                                  negated: T
                                  stderr_indices: []
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rc='> name:rc)
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                  spids: [3229]
                                )
                              ]
                              redirects: []
                            )
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (C {<prompt_after_failed_merge>})
                                (command.ControlFlow
                                  token: <Id.ControlFlow_Exit exit>
                                  arg_word: {<1>}
                                )
                              ]
                            )
                          ]
                          spids: [3215 3226]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                  ]
                )
              redirects: []
            )
            (command.ControlFlow
              token: <Id.ControlFlow_Exit exit>
              arg_word: {($ Id.VSub_DollarName rc)}
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (C {<main>} {(DQ ($ Id.VSub_At '@'))})
  ]
)