user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<sor>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movsd  %xmm0,-0x40(%rbp)
  movsd  %xmm1,-0x48(%rbp)
  mov    %ecx,-0x4c(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L58
L49:
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%esi
  movslq %edi,%rax
  movsd  (%rcx,%rax,8),%xmm0
  movslq %esi,%rax
  movsd  %xmm0,(%rdx,%rax,8)
  mov    -0x4c(%rbp),%eax
  cltq
  add    $0x1,%rax
  imul   $0xfb0,%rax,%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x4c(%rbp),%eax
  cltq
  add    $0x1,%rax
  imul   $0xfb0,%rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  cltq
  movsd  (%rcx,%rax,8),%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  mov    -0x28(%rbp),%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x14(%rbp)
L58:
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x14(%rbp)
  jle    L49
  movl   $0x0,-0xc(%rbp)
  mov    -0x4c(%rbp),%edx
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <compute_error@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L61
L29:
  movl   $0x1,-0x14(%rbp)
  jmp    L56
L3:
  movl   $0x1,-0x10(%rbp)
  jmp    L87
L22:
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm1
  movsd  -0x40(%rbp),%xmm2
  movsd  D14(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rax
  lea    -0xfb0(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm3
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  addsd  %xmm0,%xmm3
  mov    -0x14(%rbp),%eax
  cltq
  add    $0x1,%rax
  imul   $0xfb0,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  addsd  %xmm0,%xmm3
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  add    $0x1,%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  addsd  %xmm3,%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm4
  movsd  D7(%rip),%xmm3
  mulsd  %xmm4,%xmm3
  subsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  addsd  %xmm1,%xmm0
  mov    -0x10(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x10(%rbp)
L87:
  mov    -0x4c(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jge    L22
  addl   $0x1,-0x14(%rbp)
L56:
  mov    -0x4c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jge    L3
  movl   $0x1,-0x14(%rbp)
  jmp    L55
L57:
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  lea    0x8(%rax),%rcx
  mov    -0x14(%rbp),%eax
  cltq
  imul   $0xfb0,%rax,%rsi
  mov    -0x30(%rbp),%rax
  add    %rsi,%rax
  add    $0x8,%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addl   $0x1,-0x14(%rbp)
L55:
  mov    -0x4c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jge    L57
  addl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  shl    $0x2,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  test   %edx,%edx
  jne    L61
  mov    -0x4c(%rbp),%edx
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <compute_error@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
L61:
  movsd  -0x8(%rbp),%xmm0
  comisd -0x48(%rbp),%xmm0
  ja     L29
  mov    -0xc(%rbp),%eax
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D14
type: f64
name: extract_symbolic_data
arguments: tag: D7
type: f64

tool: D14: 0.25

tool: D7: 4

assistant: ```c
int sor(double unew[][500 + 2], double uold[][500 + 2], double solution[][500 + 2], const double omega, const double tol, const int m) {
  int i, j;
  for (i = 0; i < m + 2; ++i) {
    unew[i][m + 1] = uold[i][m + 1];
    unew[m + 1][i] = uold[m + 1][i];
    unew[i][0] = uold[i][0];
    unew[0][i] = uold[0][i];
  }
  int iters = 0;
  double error = compute_error(solution, uold, m);
  while (error > tol) {
    for (i = 1; i < m + 1; ++i) {
      for (j = 1; j < m + 1; ++j) {
        unew[i][j] = uold[i][j] + 0.25 * omega * (unew[i - 1][j] + unew[i][j - 1] + uold[i + 1][j] + uold[i][j + 1] - 4.0 * uold[i][j]);
      }
    }
    for (i = 1; i < m + 1; ++i) {
      memcpy(&uold[i][1], &unew[i][1], m * sizeof(double));
    }
    ++iters;
    if (iters % 20 == 0) {
      error = compute_error(solution, uold, m);
    }
  }
  return iters;
}
```