user: What is the c source code of the assembly code below:

```asm
<updateMatrix>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm4
  push   %r14
  mulsd  %xmm0,%xmm4
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rsi,0x88(%rsp)
  mov    %edx,0x7c(%rsp)
  test   %edx,%edx
  jle    L60
  lea    0x1(%rdx),%eax
  mov    $0x1,%r13d
  movapd %xmm0,%xmm5
  mov    %ecx,%r15d
  mov    %rax,0x80(%rsp)
  lea    0x8(%rdi),%r12
  pxor   %xmm7,%xmm7
  mov    %r13,%r14
  movq   D6(%rip),%xmm6
  nopl   0x0(%rax)
L66:
  mov    0x7c(%rsp),%esi
  lea    0x1(%r14),%eax
  lea    -0x1(%r14),%edx
  mov    $0x1,%ecx
  cmp    %r14d,%esi
  cmove  %esi,%eax
  cmp    $0x1,%r14
  cmove  %ecx,%edx
  test   %r15d,%r15d
  jle    L107
  movslq %edx,%rdx
  cltq
  mov    %r14,0x70(%rsp)
  mov    $0x1,%ebx
  mov    0x88(%rsp),%rdi
  mov    (%rdi,%r14,8),%rbp
  mov    (%rdi,%rdx,8),%r10
  mov    %r12,%r14
  mov    %r8d,%r12d
  mov    (%rdi,%rax,8),%r9
  lea    0x1(%r15),%edi
  jmp    L84
  nopl   0x0(%rax)
L20:
  movapd %xmm11,%xmm0
  movapd %xmm7,%xmm2
  andpd  %xmm6,%xmm0
  comisd %xmm5,%xmm0
  ja     L31
  movapd %xmm11,%xmm2
  movsd  D126(%rip),%xmm0
  mulsd  %xmm11,%xmm2
  divsd  %xmm4,%xmm2
  subsd  %xmm2,%xmm0
  movsd  D94(%rip),%xmm2
  mulsd  %xmm0,%xmm2
  mulsd  %xmm0,%xmm2
L31:
  movapd %xmm10,%xmm0
  pxor   %xmm13,%xmm13
  andpd  %xmm6,%xmm0
  comisd %xmm5,%xmm0
  ja     L96
  movapd %xmm10,%xmm12
  movsd  D126(%rip),%xmm0
  movsd  D94(%rip),%xmm13
  mulsd  %xmm10,%xmm12
  divsd  %xmm4,%xmm12
  subsd  %xmm12,%xmm0
  mulsd  %xmm0,%xmm13
  mulsd  %xmm0,%xmm13
L96:
  movapd %xmm9,%xmm0
  pxor   %xmm12,%xmm12
  andpd  %xmm6,%xmm0
  comisd %xmm5,%xmm0
  ja     L52
  movapd %xmm9,%xmm12
  movsd  D126(%rip),%xmm0
  mulsd  %xmm9,%xmm12
  divsd  %xmm4,%xmm12
  subsd  %xmm12,%xmm0
  movsd  D94(%rip),%xmm12
  mulsd  %xmm0,%xmm12
  mulsd  %xmm0,%xmm12
L52:
  movapd %xmm8,%xmm14
  pxor   %xmm0,%xmm0
  andpd  %xmm6,%xmm14
  comisd %xmm5,%xmm14
  ja     L29
  movsd  D126(%rip),%xmm14
  movapd %xmm8,%xmm0
  mulsd  %xmm8,%xmm0
  divsd  %xmm4,%xmm0
  subsd  %xmm0,%xmm14
  movsd  D94(%rip),%xmm0
  mulsd  %xmm14,%xmm0
  mulsd  %xmm14,%xmm0
L29:
  mulsd  %xmm11,%xmm2
  cvtss2sd %xmm3,%xmm3
  mov    (%r14),%rdx
  add    $0x1,%rbx
  mulsd  %xmm10,%xmm13
  mulsd  %xmm9,%xmm12
  mulsd  %xmm8,%xmm0
  addsd  %xmm13,%xmm2
  addsd  %xmm12,%xmm2
  addsd  %xmm0,%xmm2
  mulsd  %xmm1,%xmm2
  addsd  %xmm3,%xmm2
  cvtsd2ss %xmm2,%xmm2
  movss  %xmm2,(%rdx,%r13,1)
  cmp    %rdi,%rbx
  je     L13
L84:
  cmp    %ebx,%r15d
  lea    0x1(%rbx),%edx
  mov    $0x4,%esi
  movss  0x0(%rbp,%rbx,4),%xmm3
  cmove  %r15d,%edx
  cmp    $0x1,%rbx
  lea    0x0(,%rbx,4),%r13
  movss  (%r10,%rbx,4),%xmm11
  lea    -0x4(%r13),%rcx
  movss  (%r9,%rbx,4),%xmm10
  cmove  %rsi,%rcx
  movslq %edx,%rdx
  subss  %xmm3,%xmm11
  movss  0x0(%rbp,%rdx,4),%xmm9
  subss  %xmm3,%xmm10
  movss  0x0(%rbp,%rcx,1),%xmm8
  subss  %xmm3,%xmm9
  cvtss2sd %xmm11,%xmm11
  subss  %xmm3,%xmm8
  cvtss2sd %xmm10,%xmm10
  cvtss2sd %xmm9,%xmm9
  cvtss2sd %xmm8,%xmm8
  cmp    $0x1,%r12d
  je     L28
  cmp    $0x2,%r12d
  jne    L20
  movapd %xmm11,%xmm12
  movsd  D126(%rip),%xmm0
  movapd %xmm9,%xmm14
  mulsd  %xmm11,%xmm12
  mulsd  %xmm9,%xmm14
  movapd %xmm0,%xmm2
  movapd %xmm0,%xmm13
  divsd  %xmm4,%xmm12
  divsd  %xmm4,%xmm14
  addsd  %xmm0,%xmm12
  divsd  %xmm12,%xmm2
  movapd %xmm10,%xmm12
  mulsd  %xmm10,%xmm12
  addsd  %xmm0,%xmm14
  divsd  %xmm4,%xmm12
  addsd  %xmm0,%xmm12
  divsd  %xmm12,%xmm13
  movapd %xmm0,%xmm12
  divsd  %xmm14,%xmm12
  movapd %xmm8,%xmm14
  mulsd  %xmm8,%xmm14
  divsd  %xmm4,%xmm14
  addsd  %xmm0,%xmm14
  divsd  %xmm14,%xmm0
  jmp    L29
  nop
L28:
  movapd %xmm11,%xmm0
  xorpd  D110(%rip),%xmm0
  mov    %r9,0x58(%rsp)
  mov    %r10,0x50(%rsp)
  mulsd  %xmm11,%xmm0
  mov    %rdi,0x48(%rsp)
  movsd  %xmm1,0x68(%rsp)
  movsd  %xmm5,0x60(%rsp)
  movss  %xmm3,0x78(%rsp)
  movsd  %xmm11,0x38(%rsp)
  divsd  %xmm4,%xmm0
  movsd  %xmm8,0x40(%rsp)
  movsd  %xmm9,0x10(%rsp)
  movsd  %xmm10,0x8(%rsp)
  movsd  %xmm4,(%rsp)
  call   <exp@plt>
  movsd  0x8(%rsp),%xmm10
  movsd  (%rsp),%xmm4
  movsd  %xmm0,0x30(%rsp)
  movapd %xmm10,%xmm0
  xorpd  D110(%rip),%xmm0
  movsd  %xmm10,0x28(%rsp)
  mulsd  %xmm10,%xmm0
  divsd  %xmm4,%xmm0
  call   <exp@plt>
  movsd  0x10(%rsp),%xmm9
  movsd  (%rsp),%xmm4
  movsd  %xmm0,0x20(%rsp)
  movapd %xmm9,%xmm0
  xorpd  D110(%rip),%xmm0
  movsd  %xmm9,0x18(%rsp)
  mulsd  %xmm9,%xmm0
  divsd  %xmm4,%xmm0
  call   <exp@plt>
  movsd  0x40(%rsp),%xmm8
  movsd  (%rsp),%xmm4
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm8,%xmm0
  xorpd  D110(%rip),%xmm0
  movsd  %xmm8,0x8(%rsp)
  mulsd  %xmm8,%xmm0
  divsd  %xmm4,%xmm0
  call   <exp@plt>
  movsd  (%rsp),%xmm4
  pxor   %xmm7,%xmm7
  movsd  0x8(%rsp),%xmm8
  movsd  0x10(%rsp),%xmm12
  movsd  0x18(%rsp),%xmm9
  movsd  0x20(%rsp),%xmm13
  movsd  0x28(%rsp),%xmm10
  movsd  0x30(%rsp),%xmm2
  movsd  0x38(%rsp),%xmm11
  movss  0x78(%rsp),%xmm3
  movq   D6(%rip),%xmm6
  mov    0x48(%rsp),%rdi
  mov    0x50(%rsp),%r10
  mov    0x58(%rsp),%r9
  movsd  0x60(%rsp),%xmm5
  movsd  0x68(%rsp),%xmm1
  jmp    L29
L13:
  mov    %r12d,%r8d
  mov    %r14,%r12
  mov    0x70(%rsp),%r14
L107:
  add    $0x1,%r14
  add    $0x8,%r12
  cmp    %r14,0x80(%rsp)
  jne    L66
L60:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D6
data_type: qword
name: unpack_data
arguments: label: D126
data_type: byte[8]
name: unpack_data
arguments: label: D94
data_type: f64
name: unpack_data
arguments: label: D110
data_type: byte[16]

tool: D6: 9223372036854775807

tool: {"D126": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D94: 0.5

tool: {"D110": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
void updateMatrix(float **image, float **imageOld, int m, int n, int CC, double k, double lambda) {
  double diffN;
  double diffS;
  double diffE;
  double diffW;
  double cN;
  double cS;
  double cE;
  double cW;
  double gradN, gradS, gradE, gradW;
  double wCen = 0.5;
  double wSide = 0.25;
  double ksq = k * k;
  int i, j, ip1, im1, jp1, jm1;
  for (i = 1; i < m + 1; i++) {
    ip1 = i == m ? m : i + 1;
    im1 = i == 1 ? 1 : i - 1;
    for (j = 1; j < n + 1; j++) {
      jp1 = j == n ? n : j + 1;
      jm1 = j == 1 ? 1 : j - 1;
      gradN = diffN = imageOld[im1][j] - imageOld[i][j];
      gradS = diffS = imageOld[ip1][j] - imageOld[i][j];
      gradE = diffE = imageOld[i][jp1] - imageOld[i][j];
      gradW = diffW = imageOld[i][jm1] - imageOld[i][j];
      if (CC == 1) {
        cN = exp(-gradN * gradN / ksq);
        cS = exp(-gradS * gradS / ksq);
        cE = exp(-gradE * gradE / ksq);
        cW = exp(-gradW * gradW / ksq);
      } else if (CC == 2) {
        cN = 1 / (1 + gradN * gradN / ksq);
        cS = 1 / (1 + gradS * gradS / ksq);
        cE = 1 / (1 + gradE * gradE / ksq);
        cW = 1 / (1 + gradW * gradW / ksq);
      } else {
        if (fabs(diffN) > k)
          cN = 0;
        else
          cN = 0.5 * (1 - gradN * gradN / ksq) * (1 - gradN * gradN / ksq);
        if (fabs(diffS) > k)
          cS = 0;
        else
          cS = 0.5 * (1 - gradS * gradS / ksq) * (1 - gradS * gradS / ksq);
        if (fabs(diffE) > k)
          cE = 0;
        else
          cE = 0.5 * (1 - gradE * gradE / ksq) * (1 - gradE * gradE / ksq);
        if (fabs(diffW) > k)
          cW = 0;
        else
          cW = 0.5 * (1 - gradW * gradW / ksq) * (1 - gradW * gradW / ksq);
      }
      image[i][j] = imageOld[i][j] + lambda * (cN * diffN + cS * diffS + cE * diffE + cW * diffW);
    }
  }
}
```