(command.CommandList
  children: [
    (command.ShAssignment
      left: <Id.Lit_VarLike 'USAGE='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'USAGE='>
          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] ...'
                >
              )
            }
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'SUBDIRECTORY_OK='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'SUBDIRECTORY_OK='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SUBDIRECTORY_OK='> name:SUBDIRECTORY_OK)
          op: assign_op.Equal
          rhs: {<Yes>}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'NONGIT_OK='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'NONGIT_OK='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NONGIT_OK='> name:NONGIT_OK)
          op: assign_op.Equal
          rhs: {<Yes>}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'OPTIONS_SPEC='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'OPTIONS_SPEC='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'OPTIONS_SPEC='> name:OPTIONS_SPEC)
          op: assign_op.Equal
          rhs: (rhs_word__Empty)
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'TOOL_MODE='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'TOOL_MODE='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TOOL_MODE='> name:TOOL_MODE)
          op: assign_op.Equal
          rhs: {<merge>}
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [{<.>} {<git-sh-setup>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [{<.>} {<git-mergetool--lib>}]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <is_symlink>
      name: is_symlink
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <test>
              more_env: []
              words: [{<test>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} {<120000>}]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <is_submodule>
      name: is_submodule
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <test>
              more_env: []
              words: [{<test>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} {<160000>}]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <local_present>
      name: local_present
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <test>
              more_env: []
              words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName local_mode))}]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <remote_present>
      name: remote_present
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <test>
              more_env: []
              words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName remote_mode))}]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <base_present>
      name: base_present
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <test>
              more_env: []
              words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName base_mode))}]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <mergetool_tmpdir_init>
      name: mergetool_tmpdir_init
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [
                            {<test>}
                            {
                              (DQ 
                                (CommandSub
                                  left_token: <Id.Left_DollarParen '$('>
                                  child: 
                                    (command.Simple
                                      blame_tok: <git>
                                      more_env: []
                                      words: [{<git>} {<config>} {<--bool>} {<mergetool.writeToTemp>}]
                                      redirects: []
                                      do_fork: T
                                    )
                                  right: <Id.Eof_RParen _>
                                )
                              )
                            }
                            {<Id.KW_Bang '!'> <Id.Lit_Equals '='>}
                            {<true>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                              name: MERGETOOL_TMPDIR
                            )
                          op: assign_op.Equal
                          rhs: {<.>}
                        )
                      ]
                      redirects: []
                    )
                    (command.ControlFlow
                      keyword: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [166 188]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'MERGETOOL_TMPDIR='>
                                  name: MERGETOOL_TMPDIR
                                )
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (CommandSub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Simple
                                        blame_tok: <mktemp>
                                        more_env: []
                                        words: [{<mktemp>} {<-d>} {<-t>} {(DQ <git-mergetool-XXXXXX>)}]
                                        redirects: [
                                          (Redir
                                            op: <Id.Redir_Great '2>'>
                                            loc: (redir_loc.Fd fd:2)
                                            arg: {<'/dev/null'>}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [(command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<0>})]
                  spids: [203 222]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <die>
              more_env: []
              words: [{<die>} {(DQ <'error: mktemp is needed when \'mergetool.writeToTemp\' is true'>)}]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <cleanup_temp_files>
      name: cleanup_temp_files
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [
                            {<test>}
                            {(DQ ($ Id.VSub_Number 1))}
                            {<Id.Lit_Equals '='>}
                            {<--save-backup>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <rm>
                      more_env: []
                      words: [{<rm>} {<-rf>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED) <.orig>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [{<test>} {<-e>} {(DQ ($ Id.VSub_DollarName BACKUP))}]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <mv>
                          more_env: []
                          words: [
                            {<mv>}
                            {<-->}
                            {(DQ ($ Id.VSub_DollarName BACKUP))}
                            {(DQ ($ Id.VSub_DollarName MERGED) <.orig>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_DAmp _>]
                    )
                    (command.Simple
                      blame_tok: <rm>
                      more_env: []
                      words: [
                        {<rm>}
                        {<-f>}
                        {<-->}
                        {(DQ ($ Id.VSub_DollarName LOCAL))}
                        {(DQ ($ Id.VSub_DollarName REMOTE))}
                        {(DQ ($ Id.VSub_DollarName BASE))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [250 263]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.Simple
                  blame_tok: <rm>
                  more_env: []
                  words: [
                    {<rm>}
                    {<-f>}
                    {<-->}
                    {(DQ ($ Id.VSub_DollarName LOCAL))}
                    {(DQ ($ Id.VSub_DollarName REMOTE))}
                    {(DQ ($ Id.VSub_DollarName BASE))}
                    {(DQ ($ Id.VSub_DollarName BACKUP))}
                  ]
                  redirects: []
                  do_fork: T
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [
                            {<test>}
                            {(DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR))}
                            {<Id.KW_Bang '!'> <Id.Lit_Equals '='>}
                            {(DQ <.>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <rmdir>
                      more_env: []
                      words: [{<rmdir>} {(DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR))}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [350 366]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <describe_file>
      name: describe_file
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'mode='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'mode='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'mode='> name:mode)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'branch='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'branch='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'branch='> name:branch)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 2))}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'file='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'file='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'file='> name:file)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 3))}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <printf>
              more_env: []
              words: [{<printf>} {(DQ <'  {%s}: '>)} {(DQ ($ Id.VSub_DollarName branch))}]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName mode))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(DQ <deleted>)}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [419 430]
                )
                (IfArm
                  keyword: <Id.KW_Elif elif>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <is_symlink>
                          more_env: []
                          words: [{<is_symlink>} {(DQ ($ Id.VSub_DollarName mode))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [
                        {<echo>}
                        {
                          (DQ <'a symbolic link -> \''> 
                            (CommandSub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (command.Simple
                                  blame_tok: <cat>
                                  more_env: []
                                  words: [{<cat>} {(DQ ($ Id.VSub_DollarName file))}]
                                  redirects: []
                                  do_fork: T
                                )
                              right: <Id.Eof_RParen _>
                            ) <'\''>
                          )
                        }
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [440 449]
                )
                (IfArm
                  keyword: <Id.KW_Elif elif>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <is_submodule>
                          more_env: []
                          words: [{<is_submodule>} {(DQ ($ Id.VSub_DollarName mode))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(DQ <'submodule commit '> ($ Id.VSub_DollarName file))}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [467 476]
                )
                (IfArm
                  keyword: <Id.KW_Elif elif>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <base_present>
                          more_env: []
                          words: [{<base_present>}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [{<echo>} {(DQ <'modified file'>)}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [487 492]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.Simple
                  blame_tok: <echo>
                  more_env: []
                  words: [{<echo>} {(DQ <'created file'>)}]
                  redirects: []
                  do_fork: T
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <resolve_symlink_merge>
      name: resolve_symlink_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Simple
                      blame_tok: <true>
                      more_env: []
                      words: [{<true>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <printf>
                      more_env: []
                      words: [{<printf>} {(DQ <'Use (l)ocal or (r)emote, or (a)bort? '>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <read>
                          more_env: []
                          words: [{<read>} {<ans>}]
                          redirects: []
                          do_fork: T
                        )
                        (command.ControlFlow
                          keyword: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                      ops: [<Id.Op_DPipe _>]
                    )
                    (command.Case
                      case_kw: <Id.KW_Case case>
                      to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName ans))})
                      arms_start: <Id.KW_In in>
                      arms: [
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <lL> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <git>
                              more_env: []
                              words: [
                                {<git>}
                                {<checkout-index>}
                                {<-f>}
                                {<--stage> <Id.Lit_Equals '='> <2>}
                                {<-->}
                                {(DQ ($ Id.VSub_DollarName MERGED))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <git>
                              more_env: []
                              words: [{<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <cleanup_temp_files>
                              more_env: []
                              words: [{<cleanup_temp_files>} {<--save-backup>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <rR> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <git>
                              more_env: []
                              words: [
                                {<git>}
                                {<checkout-index>}
                                {<-f>}
                                {<--stage> <Id.Lit_Equals '='> <3>}
                                {<-->}
                                {(DQ ($ Id.VSub_DollarName MERGED))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <git>
                              more_env: []
                              words: [{<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <cleanup_temp_files>
                              more_env: []
                              words: [{<cleanup_temp_files>} {<--save-backup>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <aA> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                      ]
                      arms_end: <Id.KW_Esac esac>
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <resolve_deleted_merge>
      name: resolve_deleted_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Simple
                      blame_tok: <true>
                      more_env: []
                      words: [{<true>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <base_present>
                                  more_env: []
                                  words: [{<base_present>}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <printf>
                              more_env: []
                              words: [
                                {<printf>}
                                {(DQ <'Use (m)odified or (d)eleted file, or (a)bort? '>)}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          spids: [695 700]
                        )
                      ]
                      else_kw: <Id.KW_Else else>
                      else_action: [
                        (command.Simple
                          blame_tok: <printf>
                          more_env: []
                          words: [{<printf>} {(DQ <'Use (c)reated or (d)eleted file, or (a)bort? '>)}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <read>
                          more_env: []
                          words: [{<read>} {<ans>}]
                          redirects: []
                          do_fork: T
                        )
                        (command.ControlFlow
                          keyword: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                      ops: [<Id.Op_DPipe _>]
                    )
                    (command.Case
                      case_kw: <Id.KW_Case case>
                      to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName ans))})
                      arms_start: <Id.KW_In in>
                      arms: [
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <mMcC> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <git>
                              more_env: []
                              words: [{<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                              redirects: []
                              do_fork: T
                            )
                            (command.If
                              if_kw: <Id.KW_If if>
                              arms: [
                                (IfArm
                                  keyword: <Id.KW_If if>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Simple
                                          blame_tok: <test>
                                          more_env: []
                                          words: [
                                            {<test>}
                                            {(DQ ($ Id.VSub_DollarName merge_keep_backup))}
                                            {<Id.Lit_Equals '='>}
                                            {(DQ <true>)}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.Simple
                                      blame_tok: <cleanup_temp_files>
                                      more_env: []
                                      words: [{<cleanup_temp_files>} {<--save-backup>}]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  spids: [761 776]
                                )
                              ]
                              else_kw: <Id.KW_Else else>
                              else_action: [
                                (command.Simple
                                  blame_tok: <cleanup_temp_files>
                                  more_env: []
                                  words: [{<cleanup_temp_files>}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                              fi_kw: <Id.KW_Fi fi>
                              redirects: []
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <dD> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <git>
                              more_env: []
                              words: [{<git>} {<rm>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                              redirects: [
                                (Redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <cleanup_temp_files>
                              more_env: []
                              words: [{<cleanup_temp_files>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <aA> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.If
                              if_kw: <Id.KW_If if>
                              arms: [
                                (IfArm
                                  keyword: <Id.KW_If if>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Simple
                                          blame_tok: <test>
                                          more_env: []
                                          words: [
                                            {<test>}
                                            {(DQ ($ Id.VSub_DollarName merge_keep_temporaries))}
                                            {<Id.Lit_Equals '='>}
                                            {(DQ <false>)}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.Simple
                                      blame_tok: <cleanup_temp_files>
                                      more_env: []
                                      words: [{<cleanup_temp_files>}]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  spids: [841 856]
                                )
                              ]
                              else_action: []
                              fi_kw: <Id.KW_Fi fi>
                              redirects: []
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                      ]
                      arms_end: <Id.KW_Esac esac>
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <resolve_submodule_merge>
      name: resolve_submodule_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Simple
                      blame_tok: <true>
                      more_env: []
                      words: [{<true>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <printf>
                      more_env: []
                      words: [{<printf>} {(DQ <'Use (l)ocal or (r)emote, or (a)bort? '>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <read>
                          more_env: []
                          words: [{<read>} {<ans>}]
                          redirects: []
                          do_fork: T
                        )
                        (command.ControlFlow
                          keyword: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                      ops: [<Id.Op_DPipe _>]
                    )
                    (command.Case
                      case_kw: <Id.KW_Case case>
                      to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName ans))})
                      arms_start: <Id.KW_In in>
                      arms: [
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <lL> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.If
                              if_kw: <Id.KW_If if>
                              arms: [
                                (IfArm
                                  keyword: <Id.KW_If if>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Pipeline
                                          negated: <Id.KW_Bang '!'>
                                          children: [
                                            (command.Simple
                                              blame_tok: <local_present>
                                              more_env: []
                                              words: [{<local_present>}]
                                              redirects: []
                                              do_fork: T
                                            )
                                          ]
                                          ops: []
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.If
                                      if_kw: <Id.KW_If if>
                                      arms: [
                                        (IfArm
                                          keyword: <Id.KW_If if>
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (command.Simple
                                                  blame_tok: <test>
                                                  more_env: []
                                                  words: [
                                                    {<test>}
                                                    {<-n>}
                                                    {
                                                      (DQ 
                                                        (CommandSub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (command.Simple
                                                              blame_tok: <git>
                                                              more_env: []
                                                              words: [
                                                                {<git>}
                                                                {<ls-tree>}
                                                                {<HEAD>}
                                                                {<-->}
                                                                {(DQ ($ Id.VSub_DollarName MERGED))}
                                                              ]
                                                              redirects: []
                                                              do_fork: T
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  ]
                                                  redirects: []
                                                  do_fork: T
                                                )
                                              ]
                                            )
                                          then_kw: <Id.KW_Then then>
                                          action: [
                                            (command.AndOr
                                              children: [
                                                (command.Pipeline
                                                  children: [
                                                    (command.Simple
                                                      blame_tok: <git>
                                                      more_env: []
                                                      words: [
                                                        {<git>}
                                                        {<ls-tree>}
                                                        {<--full-name>}
                                                        {<-r>}
                                                        {<HEAD>}
                                                        {<-->}
                                                        {(DQ ($ Id.VSub_DollarName MERGED))}
                                                      ]
                                                      redirects: []
                                                      do_fork: T
                                                    )
                                                    (command.Simple
                                                      blame_tok: <git>
                                                      more_env: []
                                                      words: [{<git>} {<update-index>} {<--index-info>}]
                                                      redirects: []
                                                      do_fork: T
                                                    )
                                                  ]
                                                  ops: [<Id.Op_Pipe _>]
                                                )
                                                (command.ControlFlow
                                                  keyword: <Id.ControlFlow_Exit exit>
                                                  arg_word: {($ Id.VSub_QMark '?')}
                                                )
                                              ]
                                              ops: [<Id.Op_DPipe _>]
                                            )
                                          ]
                                          spids: [941 964]
                                        )
                                      ]
                                      else_kw: <Id.KW_Else else>
                                      else_action: [
                                        (command.AndOr
                                          children: [
                                            (command.Simple
                                              blame_tok: <test>
                                              more_env: []
                                              words: [
                                                {<test>}
                                                {<-e>}
                                                {(DQ ($ Id.VSub_DollarName MERGED))}
                                              ]
                                              redirects: []
                                              do_fork: T
                                            )
                                            (command.Simple
                                              blame_tok: <mv>
                                              more_env: []
                                              words: [
                                                {<mv>}
                                                {<-->}
                                                {(DQ ($ Id.VSub_DollarName MERGED))}
                                                {(DQ ($ Id.VSub_DollarName BACKUP))}
                                              ]
                                              redirects: []
                                              do_fork: T
                                            )
                                          ]
                                          ops: [<Id.Op_DAmp _>]
                                        )
                                        (command.Simple
                                          blame_tok: <git>
                                          more_env: []
                                          words: [
                                            {<git>}
                                            {<update-index>}
                                            {<--force-remove>}
                                            {(DQ ($ Id.VSub_DollarName MERGED))}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                        (command.Simple
                                          blame_tok: <cleanup_temp_files>
                                          more_env: []
                                          words: [{<cleanup_temp_files>} {<--save-backup>}]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                      fi_kw: <Id.KW_Fi fi>
                                      redirects: []
                                    )
                                  ]
                                  spids: [931 938]
                                )
                                (IfArm
                                  keyword: <Id.KW_Elif elif>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Simple
                                          blame_tok: <is_submodule>
                                          more_env: []
                                          words: [
                                            {<is_submodule>}
                                            {(DQ ($ Id.VSub_DollarName local_mode))}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.Simple
                                      blame_tok: <stage_submodule>
                                      more_env: []
                                      words: [
                                        {<stage_submodule>}
                                        {(DQ ($ Id.VSub_DollarName MERGED))}
                                        {(DQ ($ Id.VSub_DollarName local_sha1))}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  spids: [1048 1057]
                                )
                              ]
                              else_kw: <Id.KW_Else else>
                              else_action: [
                                (command.Simple
                                  blame_tok: <git>
                                  more_env: []
                                  words: [
                                    {<git>}
                                    {<checkout-index>}
                                    {<-f>}
                                    {<--stage> <Id.Lit_Equals '='> <2>}
                                    {<-->}
                                    {(DQ ($ Id.VSub_DollarName MERGED))}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                                (command.Simple
                                  blame_tok: <git>
                                  more_env: []
                                  words: [{<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                              fi_kw: <Id.KW_Fi fi>
                              redirects: []
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <rR> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.If
                              if_kw: <Id.KW_If if>
                              arms: [
                                (IfArm
                                  keyword: <Id.KW_If if>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Pipeline
                                          negated: <Id.KW_Bang '!'>
                                          children: [
                                            (command.Simple
                                              blame_tok: <remote_present>
                                              more_env: []
                                              words: [{<remote_present>}]
                                              redirects: []
                                              do_fork: T
                                            )
                                          ]
                                          ops: []
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.If
                                      if_kw: <Id.KW_If if>
                                      arms: [
                                        (IfArm
                                          keyword: <Id.KW_If if>
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (command.Simple
                                                  blame_tok: <test>
                                                  more_env: []
                                                  words: [
                                                    {<test>}
                                                    {<-n>}
                                                    {
                                                      (DQ 
                                                        (CommandSub
                                                          left_token: <Id.Left_DollarParen '$('>
                                                          child: 
                                                            (command.Simple
                                                              blame_tok: <git>
                                                              more_env: []
                                                              words: [
                                                                {<git>}
                                                                {<ls-tree>}
                                                                {<MERGE_HEAD>}
                                                                {<-->}
                                                                {(DQ ($ Id.VSub_DollarName MERGED))}
                                                              ]
                                                              redirects: []
                                                              do_fork: T
                                                            )
                                                          right: <Id.Eof_RParen _>
                                                        )
                                                      )
                                                    }
                                                  ]
                                                  redirects: []
                                                  do_fork: T
                                                )
                                              ]
                                            )
                                          then_kw: <Id.KW_Then then>
                                          action: [
                                            (command.AndOr
                                              children: [
                                                (command.Pipeline
                                                  children: [
                                                    (command.Simple
                                                      blame_tok: <git>
                                                      more_env: []
                                                      words: [
                                                        {<git>}
                                                        {<ls-tree>}
                                                        {<--full-name>}
                                                        {<-r>}
                                                        {<MERGE_HEAD>}
                                                        {<-->}
                                                        {(DQ ($ Id.VSub_DollarName MERGED))}
                                                      ]
                                                      redirects: []
                                                      do_fork: T
                                                    )
                                                    (command.Simple
                                                      blame_tok: <git>
                                                      more_env: []
                                                      words: [{<git>} {<update-index>} {<--index-info>}]
                                                      redirects: []
                                                      do_fork: T
                                                    )
                                                  ]
                                                  ops: [<Id.Op_Pipe _>]
                                                )
                                                (command.ControlFlow
                                                  keyword: <Id.ControlFlow_Exit exit>
                                                  arg_word: {($ Id.VSub_QMark '?')}
                                                )
                                              ]
                                              ops: [<Id.Op_DPipe _>]
                                            )
                                          ]
                                          spids: [1130 1153]
                                        )
                                      ]
                                      else_kw: <Id.KW_Else else>
                                      else_action: [
                                        (command.AndOr
                                          children: [
                                            (command.Simple
                                              blame_tok: <test>
                                              more_env: []
                                              words: [
                                                {<test>}
                                                {<-e>}
                                                {(DQ ($ Id.VSub_DollarName MERGED))}
                                              ]
                                              redirects: []
                                              do_fork: T
                                            )
                                            (command.Simple
                                              blame_tok: <mv>
                                              more_env: []
                                              words: [
                                                {<mv>}
                                                {<-->}
                                                {(DQ ($ Id.VSub_DollarName MERGED))}
                                                {(DQ ($ Id.VSub_DollarName BACKUP))}
                                              ]
                                              redirects: []
                                              do_fork: T
                                            )
                                          ]
                                          ops: [<Id.Op_DAmp _>]
                                        )
                                        (command.Simple
                                          blame_tok: <git>
                                          more_env: []
                                          words: [
                                            {<git>}
                                            {<update-index>}
                                            {<--force-remove>}
                                            {(DQ ($ Id.VSub_DollarName MERGED))}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                      fi_kw: <Id.KW_Fi fi>
                                      redirects: []
                                    )
                                  ]
                                  spids: [1120 1127]
                                )
                                (IfArm
                                  keyword: <Id.KW_Elif elif>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Simple
                                          blame_tok: <is_submodule>
                                          more_env: []
                                          words: [
                                            {<is_submodule>}
                                            {(DQ ($ Id.VSub_DollarName remote_mode))}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.AndOr
                                      children: [
                                        (command.Pipeline
                                          negated: <Id.KW_Bang '!'>
                                          children: [
                                            (command.Simple
                                              blame_tok: <is_submodule>
                                              more_env: []
                                              words: [
                                                {<is_submodule>}
                                                {(DQ ($ Id.VSub_DollarName local_mode))}
                                              ]
                                              redirects: []
                                              do_fork: T
                                            )
                                          ]
                                          ops: []
                                        )
                                        (command.Simple
                                          blame_tok: <test>
                                          more_env: []
                                          words: [{<test>} {<-e>} {(DQ ($ Id.VSub_DollarName MERGED))}]
                                          redirects: []
                                          do_fork: T
                                        )
                                        (command.Simple
                                          blame_tok: <mv>
                                          more_env: []
                                          words: [
                                            {<mv>}
                                            {<-->}
                                            {(DQ ($ Id.VSub_DollarName MERGED))}
                                            {(DQ ($ Id.VSub_DollarName BACKUP))}
                                          ]
                                          redirects: []
                                          do_fork: T
                                        )
                                      ]
                                      ops: [<Id.Op_DAmp _> <Id.Op_DAmp _>]
                                    )
                                    (command.Simple
                                      blame_tok: <stage_submodule>
                                      more_env: []
                                      words: [
                                        {<stage_submodule>}
                                        {(DQ ($ Id.VSub_DollarName MERGED))}
                                        {(DQ ($ Id.VSub_DollarName remote_sha1))}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  spids: [1232 1241]
                                )
                              ]
                              else_kw: <Id.KW_Else else>
                              else_action: [
                                (command.AndOr
                                  children: [
                                    (command.Simple
                                      blame_tok: <test>
                                      more_env: []
                                      words: [{<test>} {<-e>} {(DQ ($ Id.VSub_DollarName MERGED))}]
                                      redirects: []
                                      do_fork: T
                                    )
                                    (command.Simple
                                      blame_tok: <mv>
                                      more_env: []
                                      words: [
                                        {<mv>}
                                        {<-->}
                                        {(DQ ($ Id.VSub_DollarName MERGED))}
                                        {(DQ ($ Id.VSub_DollarName BACKUP))}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  ops: [<Id.Op_DAmp _>]
                                )
                                (command.Simple
                                  blame_tok: <git>
                                  more_env: []
                                  words: [
                                    {<git>}
                                    {<checkout-index>}
                                    {<-f>}
                                    {<--stage> <Id.Lit_Equals '='> <3>}
                                    {<-->}
                                    {(DQ ($ Id.VSub_DollarName MERGED))}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                                (command.Simple
                                  blame_tok: <git>
                                  more_env: []
                                  words: [{<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                              fi_kw: <Id.KW_Fi fi>
                              redirects: []
                            )
                            (command.Simple
                              blame_tok: <cleanup_temp_files>
                              more_env: []
                              words: [{<cleanup_temp_files>} {<--save-backup>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <aA> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                      ]
                      arms_end: <Id.KW_Esac esac>
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <stage_submodule>
      name: stage_submodule
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'path='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'path='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'path='> name:path)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'submodule_sha1='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'submodule_sha1='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'submodule_sha1='> name:submodule_sha1)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 2))}
                )
              ]
              redirects: []
            )
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <mkdir>
                  more_env: []
                  words: [{<mkdir>} {<-p>} {(DQ ($ Id.VSub_DollarName path))}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <die>
                  more_env: []
                  words: [
                    {<die>}
                    {
                      (DQ <'fatal: unable to create directory for module at '> 
                        ($ Id.VSub_DollarName path)
                      )
                    }
                  ]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_DPipe _>]
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'work_tree_root='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'work_tree_root='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'work_tree_root='> name:work_tree_root)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.AndOr
                            children: [
                              (command.Simple
                                blame_tok: <cd_to_toplevel>
                                more_env: []
                                words: [{<cd_to_toplevel>}]
                                redirects: []
                                do_fork: T
                              )
                              (command.Simple
                                blame_tok: <pwd>
                                more_env: []
                                words: [{<pwd>}]
                                redirects: []
                                do_fork: T
                              )
                            ]
                            ops: [<Id.Op_DAmp _>]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'work_rel_path='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'work_rel_path='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'work_rel_path='> name:work_rel_path)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.AndOr
                            children: [
                              (command.Simple
                                blame_tok: <cd>
                                more_env: []
                                words: [{<cd>} {(DQ ($ Id.VSub_DollarName path))}]
                                redirects: []
                                do_fork: T
                              )
                              (command.Simple
                                blame_tok: <git>
                                more_env: [
                                  (EnvPair
                                    left: <Id.Lit_VarLike 'GIT_WORK_TREE='>
                                    name: GIT_WORK_TREE
                                    val: {(DQ (${ Id.VSub_Name work_tree_root))}
                                  )
                                ]
                                words: [{<git>} {<rev-parse>} {<--show-prefix>}]
                                redirects: []
                                do_fork: T
                              )
                            ]
                            ops: [<Id.Op_DAmp _>]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <test>
                  more_env: []
                  words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName work_rel_path))}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <die>
                  more_env: []
                  words: [
                    {<die>}
                    {
                      (DQ <'fatal: unable to get path of module '> ($ Id.VSub_DollarName path) 
                        <' relative to work tree'>
                      )
                    }
                  ]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_DPipe _>]
            )
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <git>
                  more_env: []
                  words: [
                    {<git>}
                    {<update-index>}
                    {<--add>}
                    {<--replace>}
                    {<--cacheinfo>}
                    {<160000>}
                    {(DQ ($ Id.VSub_DollarName submodule_sha1))}
                    {
                      (DQ 
                        (BracedVarSub
                          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 '}'>
                        )
                      )
                    }
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <die>
                  more_env: []
                  words: [{<die>}]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_DPipe _>]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <checkout_staged_file>
      name: checkout_staged_file
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'tmpfile='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'tmpfile='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tmpfile='> name:tmpfile)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Simple
                            blame_tok: <expr>
                            more_env: []
                            words: [
                              {<expr>}
                              {
                                (DQ 
                                  (CommandSub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Simple
                                        blame_tok: <git>
                                        more_env: []
                                        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'>}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                              {<Id.Lit_Colon ':'>}
                              {(SQ <'\\([^\t]*\\)\t'>)}
                            ]
                            redirects: []
                            do_fork: T
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          children: [
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [{<test>} {($ Id.VSub_QMark '?')} {<-eq>} {<0>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [{<test>} {<-n>} {(DQ ($ Id.VSub_DollarName tmpfile))}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: [<Id.Op_DAmp _>]
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <mv>
                      more_env: []
                      words: [
                        {<mv>}
                        {<-->}
                        {
                          (DQ 
                            (CommandSub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (command.Simple
                                  blame_tok: <git>
                                  more_env: []
                                  words: [{<git>} {<rev-parse>} {<--show-cdup>}]
                                  redirects: []
                                  do_fork: T
                                )
                              right: <Id.Eof_RParen _>
                            ) ($ Id.VSub_DollarName tmpfile)
                          )
                        }
                        {(DQ ($ Id.VSub_Number 3))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [1563 1584]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.Simple
                  blame_tok: <Id.Redir_Great '>'>
                  more_env: []
                  words: []
                  redirects: [
                    (Redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(DQ ($ Id.VSub_Number 3))}
                    )
                  ]
                  do_fork: F
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <merge_file>
      name: merge_file
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'MERGED='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'MERGED='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'MERGED='> name:MERGED)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number 1))}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'f='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'f='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'f='> name:f)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Simple
                            blame_tok: <git>
                            more_env: []
                            words: [{<git>} {<ls-files>} {<-u>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
                            redirects: []
                            do_fork: T
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName f))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [
                                    {<test>}
                                    {<Id.KW_Bang '!'>}
                                    {<-f>}
                                    {(DQ ($ Id.VSub_DollarName MERGED))}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <echo>
                              more_env: []
                              words: [{<echo>} {(DQ ($ Id.VSub_DollarName MERGED) <': file not found'>)}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          spids: [1666 1679]
                        )
                      ]
                      else_kw: <Id.KW_Else else>
                      else_action: [
                        (command.Simple
                          blame_tok: <echo>
                          more_env: []
                          words: [
                            {<echo>}
                            {(DQ ($ Id.VSub_DollarName MERGED) <': file does not need merging'>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.ControlFlow
                      keyword: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [1652 1663]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'BASE='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'BASE='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASE='> name:BASE)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (CommandSub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Simple
                                        blame_tok: <expr>
                                        more_env: []
                                        words: [
                                          {<expr>}
                                          {(DQ ($ Id.VSub_DollarName MERGED))}
                                          {<Id.Lit_Colon ':'>}
                                          {(SQ <'\\(.*\\)\\.[^/]*$'>)}
                                        ]
                                        redirects: []
                                        do_fork: T
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'ext='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'ext='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ext='> name:ext)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (CommandSub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Simple
                                    blame_tok: <expr>
                                    more_env: []
                                    words: [
                                      {<expr>}
                                      {(DQ ($ Id.VSub_DollarName MERGED))}
                                      {<Id.Lit_Colon ':'>}
                                      {(SQ <'.*\\(\\.[^/]*\\)$'>)}
                                    ]
                                    redirects: []
                                    do_fork: T
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1713 1731]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'BASE='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'BASE='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASE='> name:BASE)
                      op: assign_op.Equal
                      rhs: {($ Id.VSub_DollarName MERGED)}
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'ext='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'ext='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ext='> name:ext)
                      op: assign_op.Equal
                      rhs: (rhs_word__Empty)
                    )
                  ]
                  redirects: []
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <mergetool_tmpdir_init>
              more_env: []
              words: [{<mergetool_tmpdir_init>}]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [
                            {<test>}
                            {(DQ ($ Id.VSub_DollarName MERGETOOL_TMPDIR))}
                            {<Id.KW_Bang '!'> <Id.Lit_Equals '='>}
                            {(DQ <.>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'BASE='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'BASE='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BASE='> name:BASE)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (BracedVarSub
                                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 '}'>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1768 1784]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'BACKUP='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'BACKUP='>
                  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)
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'LOCAL='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'LOCAL='>
                  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)
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'REMOTE='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'REMOTE='>
                  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)
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'BASE='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'BASE='>
                  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)
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'base_mode='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'base_mode='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'base_mode='> name:base_mode)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (command.Simple
                                blame_tok: <git>
                                more_env: []
                                words: [
                                  {<git>}
                                  {<ls-files>}
                                  {<-u>}
                                  {<-->}
                                  {(DQ ($ Id.VSub_DollarName MERGED))}
                                ]
                                redirects: []
                                do_fork: T
                              )
                              (command.Simple
                                blame_tok: <awk>
                                more_env: []
                                words: [{<awk>} {(SQ <'{if ($3==1) print $1;}'>)}]
                                redirects: []
                                do_fork: T
                              )
                            ]
                            ops: [<Id.Op_Pipe _>]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'local_mode='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'local_mode='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'local_mode='> name:local_mode)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (command.Simple
                                blame_tok: <git>
                                more_env: []
                                words: [
                                  {<git>}
                                  {<ls-files>}
                                  {<-u>}
                                  {<-->}
                                  {(DQ ($ Id.VSub_DollarName MERGED))}
                                ]
                                redirects: []
                                do_fork: T
                              )
                              (command.Simple
                                blame_tok: <awk>
                                more_env: []
                                words: [{<awk>} {(SQ <'{if ($3==2) print $1;}'>)}]
                                redirects: []
                                do_fork: T
                              )
                            ]
                            ops: [<Id.Op_Pipe _>]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'remote_mode='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'remote_mode='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'remote_mode='> name:remote_mode)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (command.Simple
                                blame_tok: <git>
                                more_env: []
                                words: [
                                  {<git>}
                                  {<ls-files>}
                                  {<-u>}
                                  {<-->}
                                  {(DQ ($ Id.VSub_DollarName MERGED))}
                                ]
                                redirects: []
                                do_fork: T
                              )
                              (command.Simple
                                blame_tok: <awk>
                                more_env: []
                                words: [{<awk>} {(SQ <'{if ($3==3) print $1;}'>)}]
                                redirects: []
                                do_fork: T
                              )
                            ]
                            ops: [<Id.Op_Pipe _>]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          children: [
                            (command.Simple
                              blame_tok: <is_submodule>
                              more_env: []
                              words: [{<is_submodule>} {(DQ ($ Id.VSub_DollarName local_mode))}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <is_submodule>
                              more_env: []
                              words: [{<is_submodule>} {(DQ ($ Id.VSub_DollarName remote_mode))}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: [<Id.Op_DPipe _>]
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [
                        {<echo>}
                        {
                          (DQ <'Submodule merge conflict for \''> ($ Id.VSub_DollarName MERGED) <'\':'>)
                        }
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'local_sha1='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'local_sha1='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'local_sha1='> name:local_sha1)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (CommandSub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (command.Simple
                                        blame_tok: <git>
                                        more_env: []
                                        words: [
                                          {<git>}
                                          {<ls-files>}
                                          {<-u>}
                                          {<-->}
                                          {(DQ ($ Id.VSub_DollarName MERGED))}
                                        ]
                                        redirects: []
                                        do_fork: T
                                      )
                                      (command.Simple
                                        blame_tok: <awk>
                                        more_env: []
                                        words: [{<awk>} {(SQ <'{if ($3==2) print $2;}'>)}]
                                        redirects: []
                                        do_fork: T
                                      )
                                    ]
                                    ops: [<Id.Op_Pipe _>]
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'remote_sha1='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'remote_sha1='>
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'remote_sha1='>
                              name: remote_sha1
                            )
                          op: assign_op.Equal
                          rhs: 
                            {
                              (CommandSub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (command.Simple
                                        blame_tok: <git>
                                        more_env: []
                                        words: [
                                          {<git>}
                                          {<ls-files>}
                                          {<-u>}
                                          {<-->}
                                          {(DQ ($ Id.VSub_DollarName MERGED))}
                                        ]
                                        redirects: []
                                        do_fork: T
                                      )
                                      (command.Simple
                                        blame_tok: <awk>
                                        more_env: []
                                        words: [{<awk>} {(SQ <'{if ($3==3) print $2;}'>)}]
                                        redirects: []
                                        do_fork: T
                                      )
                                    ]
                                    ops: [<Id.Op_Pipe _>]
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <describe_file>
                      more_env: []
                      words: [
                        {<describe_file>}
                        {(DQ ($ Id.VSub_DollarName local_mode))}
                        {(DQ <local>)}
                        {(DQ ($ Id.VSub_DollarName local_sha1))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <describe_file>
                      more_env: []
                      words: [
                        {<describe_file>}
                        {(DQ ($ Id.VSub_DollarName remote_mode))}
                        {(DQ <remote>)}
                        {(DQ ($ Id.VSub_DollarName remote_sha1))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <resolve_submodule_merge>
                      more_env: []
                      words: [{<resolve_submodule_merge>}]
                      redirects: []
                      do_fork: T
                    )
                    (command.ControlFlow keyword:<Id.ControlFlow_Return return>)
                  ]
                  spids: [1934 1951]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [{<test>} {<-f>} {(DQ ($ Id.VSub_DollarName MERGED))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <mv>
                      more_env: []
                      words: [
                        {<mv>}
                        {<-->}
                        {(DQ ($ Id.VSub_DollarName MERGED))}
                        {(DQ ($ Id.VSub_DollarName BACKUP))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <cp>
                      more_env: []
                      words: [
                        {<cp>}
                        {<-->}
                        {(DQ ($ Id.VSub_DollarName BACKUP))}
                        {(DQ ($ Id.VSub_DollarName MERGED))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [2051 2062]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <mkdir>
              more_env: []
              words: [
                {<mkdir>}
                {<-p>}
                {
                  (DQ 
                    (CommandSub
                      left_token: <Id.Left_DollarParen '$('>
                      child: 
                        (command.Simple
                          blame_tok: <dirname>
                          more_env: []
                          words: [{<dirname>} {(DQ ($ Id.VSub_DollarName MERGED))}]
                          redirects: []
                          do_fork: T
                        )
                      right: <Id.Eof_RParen _>
                    )
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <checkout_staged_file>
              more_env: []
              words: [
                {<checkout_staged_file>}
                {<1>}
                {(DQ ($ Id.VSub_DollarName MERGED))}
                {(DQ ($ Id.VSub_DollarName BASE))}
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <checkout_staged_file>
              more_env: []
              words: [
                {<checkout_staged_file>}
                {<2>}
                {(DQ ($ Id.VSub_DollarName MERGED))}
                {(DQ ($ Id.VSub_DollarName LOCAL))}
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <checkout_staged_file>
              more_env: []
              words: [
                {<checkout_staged_file>}
                {<3>}
                {(DQ ($ Id.VSub_DollarName MERGED))}
                {(DQ ($ Id.VSub_DollarName REMOTE))}
              ]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          children: [
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName local_mode))}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName remote_mode))}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: [<Id.Op_DPipe _>]
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [
                        {<echo>}
                        {(DQ <'Deleted merge conflict for \''> ($ Id.VSub_DollarName MERGED) <'\':'>)}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <describe_file>
                      more_env: []
                      words: [
                        {<describe_file>}
                        {(DQ ($ Id.VSub_DollarName local_mode))}
                        {(DQ <local>)}
                        {(DQ ($ Id.VSub_DollarName LOCAL))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <describe_file>
                      more_env: []
                      words: [
                        {<describe_file>}
                        {(DQ ($ Id.VSub_DollarName remote_mode))}
                        {(DQ <remote>)}
                        {(DQ ($ Id.VSub_DollarName REMOTE))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <resolve_deleted_merge>
                      more_env: []
                      words: [{<resolve_deleted_merge>}]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'status='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'status='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'status='> name:status)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_QMark '?')}
                        )
                      ]
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <rmdir>
                      more_env: []
                      words: [
                        {<rmdir>}
                        {<-p>}
                        {
                          (DQ 
                            (CommandSub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (command.Simple
                                  blame_tok: <dirname>
                                  more_env: []
                                  words: [{<dirname>} {(DQ ($ Id.VSub_DollarName MERGED))}]
                                  redirects: []
                                  do_fork: T
                                )
                              right: <Id.Eof_RParen _>
                            )
                          )
                        }
                      ]
                      redirects: [
                        (Redir
                          op: <Id.Redir_Great '2>'>
                          loc: (redir_loc.Fd fd:2)
                          arg: {<'/dev/null'>}
                        )
                      ]
                      do_fork: T
                    )
                    (command.ControlFlow
                      keyword: <Id.ControlFlow_Return return>
                      arg_word: {($ Id.VSub_DollarName status)}
                    )
                  ]
                  spids: [2158 2179]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          children: [
                            (command.Simple
                              blame_tok: <is_symlink>
                              more_env: []
                              words: [{<is_symlink>} {(DQ ($ Id.VSub_DollarName local_mode))}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <is_symlink>
                              more_env: []
                              words: [{<is_symlink>} {(DQ ($ Id.VSub_DollarName remote_mode))}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: [<Id.Op_DPipe _>]
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      words: [
                        {<echo>}
                        {
                          (DQ <'Symbolic link merge conflict for \''> ($ Id.VSub_DollarName MERGED) 
                            <'\':'>
                          )
                        }
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <describe_file>
                      more_env: []
                      words: [
                        {<describe_file>}
                        {(DQ ($ Id.VSub_DollarName local_mode))}
                        {(DQ <local>)}
                        {(DQ ($ Id.VSub_DollarName LOCAL))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <describe_file>
                      more_env: []
                      words: [
                        {<describe_file>}
                        {(DQ ($ Id.VSub_DollarName remote_mode))}
                        {(DQ <remote>)}
                        {(DQ ($ Id.VSub_DollarName REMOTE))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <resolve_symlink_merge>
                      more_env: []
                      words: [{<resolve_symlink_merge>}]
                      redirects: []
                      do_fork: T
                    )
                    (command.ControlFlow keyword:<Id.ControlFlow_Return return>)
                  ]
                  spids: [2255 2272]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <echo>
              more_env: []
              words: [
                {<echo>}
                {(DQ <'Normal merge conflict for \''> ($ Id.VSub_DollarName MERGED) <'\':'>)}
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <describe_file>
              more_env: []
              words: [
                {<describe_file>}
                {(DQ ($ Id.VSub_DollarName local_mode))}
                {(DQ <local>)}
                {(DQ ($ Id.VSub_DollarName LOCAL))}
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <describe_file>
              more_env: []
              words: [
                {<describe_file>}
                {(DQ ($ Id.VSub_DollarName remote_mode))}
                {(DQ <remote>)}
                {(DQ ($ Id.VSub_DollarName REMOTE))}
              ]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          children: [
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [
                                {<test>}
                                {(DQ ($ Id.VSub_DollarName guessed_merge_tool))}
                                {<Id.Lit_Equals '='>}
                                {<true>}
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [
                                {<test>}
                                {(DQ ($ Id.VSub_DollarName prompt))}
                                {<Id.Lit_Equals '='>}
                                {<true>}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: [<Id.Op_DPipe _>]
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <printf>
                      more_env: []
                      words: [
                        {<printf>}
                        {(DQ <'Hit return to start merge resolution tool (%s): '>)}
                        {(DQ ($ Id.VSub_DollarName merge_tool))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <read>
                          more_env: []
                          words: [{<read>} {<ans>}]
                          redirects: []
                          do_fork: T
                        )
                        (command.ControlFlow
                          keyword: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                      ops: [<Id.Op_DPipe _>]
                    )
                  ]
                  spids: [2363 2388]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <base_present>
                          more_env: []
                          words: [{<base_present>}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'present='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'present='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'present='> name:present)
                          op: assign_op.Equal
                          rhs: {<true>}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [2417 2422]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'present='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'present='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'present='> name:present)
                      op: assign_op.Equal
                      rhs: {<false>}
                    )
                  ]
                  redirects: []
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Pipeline
                          negated: <Id.KW_Bang '!'>
                          children: [
                            (command.Simple
                              blame_tok: <run_merge_tool>
                              more_env: []
                              words: [
                                {<run_merge_tool>}
                                {(DQ ($ Id.VSub_DollarName merge_tool))}
                                {(DQ ($ Id.VSub_DollarName present))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: []
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <echo>
                      more_env: []
                      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>}
                        )
                      ]
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <mv>
                      more_env: []
                      words: [
                        {<mv>}
                        {<-->}
                        {(DQ ($ Id.VSub_DollarName BACKUP))}
                        {(DQ ($ Id.VSub_DollarName MERGED))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [
                                    {<test>}
                                    {(DQ ($ Id.VSub_DollarName merge_keep_temporaries))}
                                    {<Id.Lit_Equals '='>}
                                    {(DQ <false>)}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <cleanup_temp_files>
                              more_env: []
                              words: [{<cleanup_temp_files>}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          spids: [2484 2499]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.ControlFlow
                      keyword: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [2440 2455]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [
                            {<test>}
                            {(DQ ($ Id.VSub_DollarName merge_keep_backup))}
                            {<Id.Lit_Equals '='>}
                            {(DQ <true>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <mv>
                      more_env: []
                      words: [
                        {<mv>}
                        {<-->}
                        {(DQ ($ Id.VSub_DollarName BACKUP))}
                        {(DQ ($ Id.VSub_DollarName MERGED) <.orig>)}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [2518 2533]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.Simple
                  blame_tok: <rm>
                  more_env: []
                  words: [{<rm>} {<-->} {(DQ ($ Id.VSub_DollarName BACKUP))}]
                  redirects: []
                  do_fork: T
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <git>
              more_env: []
              words: [{<git>} {<add>} {<-->} {(DQ ($ Id.VSub_DollarName MERGED))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <cleanup_temp_files>
              more_env: []
              words: [{<cleanup_temp_files>}]
              redirects: []
              do_fork: T
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <prompt_after_failed_merge>
      name: prompt_after_failed_merge
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Simple
                      blame_tok: <true>
                      more_env: []
                      words: [{<true>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <printf>
                      more_env: []
                      words: [{<printf>} {(DQ <'Continue merging other unresolved paths [y/n]? '>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <read>
                          more_env: []
                          words: [{<read>} {<ans>}]
                          redirects: []
                          do_fork: T
                        )
                        (command.ControlFlow
                          keyword: <Id.ControlFlow_Return return>
                          arg_word: {<1>}
                        )
                      ]
                      ops: [<Id.Op_DPipe _>]
                    )
                    (command.Case
                      case_kw: <Id.KW_Case case>
                      to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName ans))})
                      arms_start: <Id.KW_In in>
                      arms: [
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <yY> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_LBracket '['>
                          pattern: 
                            (pat.Words
                              words: [
                                {<Id.Lit_LBracket '['> <nN> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'>}
                              ]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                      ]
                      arms_end: <Id.KW_Esac esac>
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <print_noop_and_exit>
      name: print_noop_and_exit
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <echo>
              more_env: []
              words: [{<echo>} {(DQ <'No files need merging'>)}]
              redirects: []
              do_fork: T
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<0>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <main>
      name: main
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'prompt='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'prompt='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prompt='> name:prompt)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Simple
                            blame_tok: <git>
                            more_env: []
                            words: [{<git>} {<config>} {<--bool>} {<mergetool.prompt>}]
                            redirects: []
                            do_fork: T
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'guessed_merge_tool='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'guessed_merge_tool='>
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'guessed_merge_tool='>
                      name: guessed_merge_tool
                    )
                  op: assign_op.Equal
                  rhs: {<false>}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'orderfile='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'orderfile='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'orderfile='> name:orderfile)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Simple
                      blame_tok: <test>
                      more_env: []
                      words: [
                        {<test>}
                        {($ Id.VSub_Pound '#')}
                        {<Id.KW_Bang '!'> <Id.Lit_Equals '='>}
                        {<0>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Case
                      case_kw: <Id.KW_Case case>
                      to_match: (case_arg.Word w:{(DQ ($ Id.VSub_Number 1))})
                      arms_start: <Id.KW_In in>
                      arms: [
                        (CaseArm
                          left: <--tool-help>
                          pattern: 
                            (pat.Words
                              words: [{<--tool-help> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                            )
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'TOOL_MODE='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'TOOL_MODE='>
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'TOOL_MODE='>
                                      name: TOOL_MODE
                                    )
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (BracedVarSub
                                        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 '}'>
                                      )
                                    }
                                )
                              ]
                              redirects: []
                            )
                            (command.Simple
                              blame_tok: <show_tool_help>
                              more_env: []
                              words: [{<show_tool_help>}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <--tool-help>
                          pattern: (pat.Words words:[{<--tool-help>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <show_tool_help>
                              more_env: []
                              words: [{<show_tool_help>}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <-t>
                          pattern: (pat.Words words:[{<-t>} {<--tool> <Id.Lit_Star '*'>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Case
                              case_kw: <Id.KW_Case case>
                              to_match: 
                                (case_arg.Word
                                  w: {(DQ ($ Id.VSub_Pound '#') <','> ($ Id.VSub_Number 1))}
                                )
                              arms_start: <Id.KW_In in>
                              arms: [
                                (CaseArm
                                  left: <Id.Lit_Star '*'>
                                  pattern: 
                                    (pat.Words
                                      words: [
                                        {<Id.Lit_Star '*'> <Id.Lit_Comma ','> <Id.Lit_Star '*'> 
                                          <Id.Lit_Equals '='> <Id.Lit_Star '*'>
                                        }
                                      ]
                                    )
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.ShAssignment
                                      left: <Id.Lit_VarLike 'merge_tool='>
                                      pairs: [
                                        (AssignPair
                                          left: <Id.Lit_VarLike 'merge_tool='>
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'merge_tool='>
                                              name: merge_tool
                                            )
                                          op: assign_op.Equal
                                          rhs: 
                                            {
                                              (CommandSub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.Simple
                                                    blame_tok: <expr>
                                                    more_env: []
                                                    words: [
                                                      {<expr>}
                                                      {(DQ <z> ($ Id.VSub_Number 1))}
                                                      {<Id.Lit_Colon ':'>}
                                                      {(SQ <'z-[^=]*=\\(.*\\)'>)}
                                                    ]
                                                    redirects: []
                                                    do_fork: T
                                                  )
                                                right: <Id.Eof_RParen _>
                                              )
                                            }
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  right: <Id.Op_DSemi _>
                                )
                                (CaseArm
                                  left: <1>
                                  pattern: 
                                    (pat.Words
                                      words: [{<1> <Id.Lit_Comma ','> <Id.Lit_Star '*'>}]
                                    )
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.Simple
                                      blame_tok: <usage>
                                      more_env: []
                                      words: [{<usage>}]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  right: <Id.Op_DSemi _>
                                )
                                (CaseArm
                                  left: <Id.Lit_Star '*'>
                                  pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.ShAssignment
                                      left: <Id.Lit_VarLike 'merge_tool='>
                                      pairs: [
                                        (AssignPair
                                          left: <Id.Lit_VarLike 'merge_tool='>
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike 'merge_tool='>
                                              name: merge_tool
                                            )
                                          op: assign_op.Equal
                                          rhs: {(DQ ($ Id.VSub_Number 2))}
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.Simple
                                      blame_tok: <shift>
                                      more_env: []
                                      words: [{<shift>}]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  right: <Id.Op_DSemi _>
                                )
                              ]
                              arms_end: <Id.KW_Esac esac>
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <-y>
                          pattern: (pat.Words words:[{<-y>} {<--no-prompt>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'prompt='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'prompt='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prompt='> name:prompt)
                                  op: assign_op.Equal
                                  rhs: {<false>}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <--prompt>
                          pattern: (pat.Words words:[{<--prompt>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'prompt='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'prompt='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prompt='> name:prompt)
                                  op: assign_op.Equal
                                  rhs: {<true>}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <-O>
                          pattern: (pat.Words words:[{<-O> <Id.Lit_Star '*'>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'orderfile='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'orderfile='>
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'orderfile='>
                                      name: orderfile
                                    )
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number 1))}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <-->
                          pattern: (pat.Words words:[{<-->}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <shift>
                              more_env: []
                              words: [{<shift>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Break break>
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <->
                          pattern: (pat.Words words:[{<-> <Id.Lit_Star '*'>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <usage>
                              more_env: []
                              words: [{<usage>}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_Star '*'>
                          pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
                          middle: <Id.Right_CasePat _>
                          action: [(command.ControlFlow keyword:<Id.ControlFlow_Break break>)]
                          right: <Id.Op_DSemi _>
                        )
                      ]
                      arms_end: <Id.KW_Esac esac>
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <shift>
                      more_env: []
                      words: [{<shift>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
            (command.Simple
              blame_tok: <git_dir_init>
              more_env: []
              words: [{<git_dir_init>}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <require_work_tree>
              more_env: []
              words: [{<require_work_tree>}]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName merge_tool))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'merge_tool='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'merge_tool='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'merge_tool='> name:merge_tool)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (CommandSub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Simple
                                    blame_tok: <get_configured_merge_tool>
                                    more_env: []
                                    words: [{<get_configured_merge_tool>}]
                                    redirects: []
                                    do_fork: T
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName merge_tool))}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.AndOr
                              children: [
                                (command.ShAssignment
                                  left: <Id.Lit_VarLike 'merge_tool='>
                                  pairs: [
                                    (AssignPair
                                      left: <Id.Lit_VarLike 'merge_tool='>
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'merge_tool='>
                                          name: merge_tool
                                        )
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (CommandSub
                                            left_token: <Id.Left_DollarParen '$('>
                                            child: 
                                              (command.Simple
                                                blame_tok: <guess_merge_tool>
                                                more_env: []
                                                words: [{<guess_merge_tool>}]
                                                redirects: []
                                                do_fork: T
                                              )
                                            right: <Id.Eof_RParen _>
                                          )
                                        }
                                    )
                                  ]
                                  redirects: []
                                )
                                (command.ControlFlow
                                  keyword: <Id.ControlFlow_Exit exit>
                                )
                              ]
                              ops: [<Id.Op_DPipe _>]
                            )
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'guessed_merge_tool='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'guessed_merge_tool='>
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'guessed_merge_tool='>
                                      name: guessed_merge_tool
                                    )
                                  op: assign_op.Equal
                                  rhs: {<true>}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [2967 2978]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                  ]
                  spids: [2939 2950]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'merge_keep_backup='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'merge_keep_backup='>
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'merge_keep_backup='>
                      name: merge_keep_backup
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ 
                        (CommandSub
                          left_token: <Id.Left_DollarParen '$('>
                          child: 
                            (command.AndOr
                              children: [
                                (command.Simple
                                  blame_tok: <git>
                                  more_env: []
                                  words: [{<git>} {<config>} {<--bool>} {<mergetool.keepBackup>}]
                                  redirects: []
                                  do_fork: T
                                )
                                (command.Simple
                                  blame_tok: <echo>
                                  more_env: []
                                  words: [{<echo>} {<true>}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                              ops: [<Id.Op_DPipe _>]
                            )
                          right: <Id.Eof_RParen _>
                        )
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'merge_keep_temporaries='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'merge_keep_temporaries='>
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'merge_keep_temporaries='>
                      name: merge_keep_temporaries
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ 
                        (CommandSub
                          left_token: <Id.Left_DollarParen '$('>
                          child: 
                            (command.AndOr
                              children: [
                                (command.Simple
                                  blame_tok: <git>
                                  more_env: []
                                  words: [{<git>} {<config>} {<--bool>} {<mergetool.keepTemporaries>}]
                                  redirects: []
                                  do_fork: T
                                )
                                (command.Simple
                                  blame_tok: <echo>
                                  more_env: []
                                  words: [{<echo>} {<false>}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                              ops: [<Id.Op_DPipe _>]
                            )
                          right: <Id.Eof_RParen _>
                        )
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.AndOr
                          children: [
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [{<test>} {($ Id.VSub_Pound '#')} {<-eq>} {<0>}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <test>
                              more_env: []
                              words: [{<test>} {<-e>} {(DQ ($ Id.VSub_DollarName GIT_DIR) <'/MERGE_RR'>)}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: [<Id.Op_DAmp _>]
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <set>
                      more_env: []
                      words: [
                        {<set>}
                        {<-->}
                        {
                          (CommandSub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (command.Simple
                                blame_tok: <git>
                                more_env: []
                                words: [{<git>} {<rerere>} {<remaining>}]
                                redirects: []
                                do_fork: T
                              )
                            right: <Id.Eof_RParen _>
                          )
                        }
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Simple
                                  blame_tok: <test>
                                  more_env: []
                                  words: [{<test>} {($ Id.VSub_Pound '#')} {<-eq>} {<0>}]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <print_noop_and_exit>
                              more_env: []
                              words: [{<print_noop_and_exit>}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          spids: [3080 3091]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                  ]
                  spids: [3042 3064]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'files='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'files='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'files='> name:files)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Simple
                            blame_tok: <git>
                            more_env: []
                            words: [
                              {<git>}
                              {<-c>}
                              {<core.quotePath> <Id.Lit_Equals '='> <false>}
                              {<diff>}
                              {<--name-only>}
                              {<--diff-filter> <Id.Lit_Equals '='> <U>}
                              {
                                (BracedVarSub
                                  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 '@'))}
                            ]
                            redirects: []
                            do_fork: T
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <cd_to_toplevel>
              more_env: []
              words: [{<cd_to_toplevel>}]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Simple
                          blame_tok: <test>
                          more_env: []
                          words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName files))}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <print_noop_and_exit>
                      more_env: []
                      words: [{<print_noop_and_exit>}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [3147 3158]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <printf>
              more_env: []
              words: [{<printf>} {(DQ <'Merging:'> <Id.Lit_BadBackslash '\\'> <n>)}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <printf>
              more_env: []
              words: [
                {<printf>}
                {(DQ <'%s'> <Id.Lit_BadBackslash '\\'> <n>)}
                {(DQ ($ Id.VSub_DollarName files))}
              ]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'rc='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'rc='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rc='> name:rc)
                  op: assign_op.Equal
                  rhs: {<0>}
                )
              ]
              redirects: []
            )
            (command.ForEach
              keyword: <Id.KW_For for>
              iter_names: [i]
              iterable: (for_iter.Words words:[{($ Id.VSub_DollarName files)}])
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <printf>
                      more_env: []
                      words: [{<printf>} {(DQ <Id.Lit_BadBackslash '\\'> <n>)}]
                      redirects: []
                      do_fork: T
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Pipeline
                                  negated: <Id.KW_Bang '!'>
                                  children: [
                                    (command.Simple
                                      blame_tok: <merge_file>
                                      more_env: []
                                      words: [{<merge_file>} {(DQ ($ Id.VSub_DollarName i))}]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  ops: []
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'rc='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'rc='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rc='> name:rc)
                                  op: assign_op.Equal
                                  rhs: {<1>}
                                )
                              ]
                              redirects: []
                            )
                            (command.AndOr
                              children: [
                                (command.Simple
                                  blame_tok: <prompt_after_failed_merge>
                                  more_env: []
                                  words: [{<prompt_after_failed_merge>}]
                                  redirects: []
                                  do_fork: T
                                )
                                (command.ControlFlow
                                  keyword: <Id.ControlFlow_Exit exit>
                                  arg_word: {<1>}
                                )
                              ]
                              ops: [<Id.Op_DPipe _>]
                            )
                          ]
                          spids: [3215 3226]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
            (command.ControlFlow
              keyword: <Id.ControlFlow_Exit exit>
              arg_word: {($ Id.VSub_DollarName rc)}
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.Simple
      blame_tok: <main>
      more_env: []
      words: [{<main>} {(DQ ($ Id.VSub_At '@'))}]
      redirects: []
      do_fork: T
    )
  ]
)