(CommandList
  children: [
    (C {(.)} {(git-sh-setup)})
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} {(-d)} {(DQ ($ VSub_Name '$GIT_DIR')) (/remotes)} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Rewriting ') ($ VSub_Name '$GIT_DIR') (/remotes))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[38])]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:error) op:Equal rhs:{(0)} spids:[42])]
              spids: [42]
            )
            (Pipeline
              children: [
                (BraceGroup
                  children: [
                    (C {(cd)} {(DQ ($ VSub_Name '$GIT_DIR')) (/remotes)})
                    (Pipeline
                      children: [
                        (C {(ls)})
                        (While
                          cond: [(Sentence child:(C {(read)} {(f)}) terminator:<Op_Semi ';'>)]
                          body: 
                            (DoGroup
                              children: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:name)
                                      op: Equal
                                      rhs: 
                                        {
                                          (CommandSubPart
                                            command_list: 
                                              (CommandList
                                                children: [
                                                  (Pipeline
                                                    children: [
                                                      (C {(printf)} {(DQ ($ VSub_Name '$f'))})
                                                      (C {(tr)} {(-c)} {(DQ (A-Za-z0-9-))} {(DQ (.))})
                                                    ]
                                                    negated: F
                                                  )
                                                ]
                                              )
                                            left_token: <Left_CommandSub '$('>
                                            spids: [76 96]
                                          )
                                        }
                                      spids: [75]
                                    )
                                  ]
                                  spids: [75]
                                )
                                (SimpleCommand
                                  words: [
                                    {(sed)}
                                    {(-n)}
                                    {(-e)}
                                    {
                                      (DQ ('s/^URL:[ \t]*') (Lit_Other '\\') ('(.*') (Lit_Other '\\') 
                                        (')') (Lit_Other '$') (/remote.) ($ VSub_Name '$name') ('.url ') (Lit_Other '\\') ('1 ./p')
                                      )
                                    }
                                    {(-e)}
                                    {
                                      (DQ ('s/^Pull:[ \t]*') (Lit_Other '\\') ('(.*') (Lit_Other '\\') 
                                        (')') (Lit_Other '$') (/remote.) ($ VSub_Name '$name') ('.fetch ') (Lit_Other '\\') ('1 ^') (Lit_Other '$') 
                                        (' /p')
                                      )
                                    }
                                    {(-e)}
                                    {
                                      (DQ ('s/^Push:[ \t]*') (Lit_Other '\\') ('(.*') (Lit_Other '\\') 
                                        (')') (Lit_Other '$') (/remote.) ($ VSub_Name '$name') ('.push ') (Lit_Other '\\') ('1 ^') (Lit_Other '$') (' /p')
                                      )
                                    }
                                  ]
                                  redirects: [
                                    (Redir
                                      op_id: Redir_Less
                                      fd: 16777215
                                      arg_word: {(DQ ($ VSub_Name '$f'))}
                                      spids: [163]
                                    )
                                  ]
                                )
                              ]
                              spids: [72 170]
                            )
                        )
                      ]
                      negated: F
                    )
                    (C {(echo)} {(KW_Done done)})
                  ]
                  spids: [50]
                )
                (While
                  cond: [
                    (Sentence
                      child: (C {(read)} {(key)} {(value)} {(regex)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  body: 
                    (DoGroup
                      children: [
                        (Case
                          to_match: {($ VSub_Name '$key')}
                          arms: [
                            (case_arm
                              pat_list: [{(KW_Done done)}]
                              action: [
                                (If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (Sentence
                                          child: 
                                            (C {(Lit_Other '[')} {($ VSub_Name '$error')} 
                                              {(Lit_Other '=')} {(0)} {(Lit_Other ']')}
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (C {(mv)} {(DQ ($ VSub_Name '$GIT_DIR')) (/remotes)} 
                                          {(DQ ($ VSub_Name '$GIT_DIR')) (/remotes.old)}
                                        )
                                      ]
                                      spids: [16777215 220]
                                    )
                                  ]
                                  spids: [16777215 236]
                                )
                              ]
                              spids: [203 204 238 16777215]
                            )
                            (case_arm
                              pat_list: [{(Lit_Other '*')}]
                              action: [
                                (C {(echo)} 
                                  {(DQ ('git config ') ($ VSub_Name '$key') (' ')) 
                                    ($ VSub_Name '$value') (DQ (' ') ($ VSub_Name '$regex'))
                                  }
                                )
                                (AndOr
                                  ops: [Op_DPipe]
                                  children: [
                                    (C {(git)} {(config)} {($ VSub_Name '$key')} 
                                      {(DQ ($ VSub_Name '$value'))} {($ VSub_Name '$regex')}
                                    )
                                    (Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (LhsName name:error)
                                          op: Equal
                                          rhs: {(1)}
                                          spids: [273]
                                        )
                                      ]
                                      spids: [273]
                                    )
                                  ]
                                )
                              ]
                              spids: [241 242 276 16777215]
                            )
                          ]
                          spids: [196 200 279]
                        )
                      ]
                      spids: [193 282]
                    )
                )
              ]
              negated: F
            )
          ]
          spids: [16777215 27]
        )
      ]
      spids: [16777215 284]
    )
  ]
)