user: Converte this assembly snippet into its equivalent C code:

```asm
<Jac2D>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  cvttsd2si (%rdx),%ecx
  mov    %rdi,0x48(%rsp)
  cvttsd2si 0x8(%rdx),%edi
  mov    %rsi,0x50(%rsp)
  lea    0x1(%rcx),%edx
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  lea    0x1(%rdi),%eax
  mov    %edi,0x2c(%rsp)
  imul   %edx,%eax
  test   %ecx,%ecx
  jle    L31
  movslq %edx,%rdx
  lea    0x8(,%rdx,8),%r15
  test   %edi,%edi
  jle    L31
  cltq
  lea    -0x8(%r15),%r11
  lea    0x70(%rsp),%r14
  mov    %r15,%r8
  lea    (%rsi,%rax,8),%rax
  lea    0xa0(%rsp),%rbx
  movq   $0x0,0x38(%rsp)
  mov    %rax,0x40(%rsp)
  movslq %ecx,%rax
  lea    0x60(%rsp),%r13
  lea    0x90(%rsp),%r12
  mov    %rax,0x58(%rsp)
  lea    -0x10(%r15),%rax
  mov    %r11,%r15
  lea    0x80(%rsp),%rbp
  mov    %rax,0x30(%rsp)
  nopl   0x0(%rax)
L47:
  mov    0x38(%rsp),%rax
  xor    %r10d,%r10d
  lea    0x0(,%rax,8),%r9
  mov    0x50(%rsp),%rax
  lea    (%rax,%r9,1),%rcx
  mov    0x40(%rsp),%rax
  add    0x48(%rsp),%r9
  nopl   0x0(%rax,%rax,1)
L12:
  movsd  (%rcx),%xmm4
  movsd  0x8(%rcx),%xmm3
  mov    %rbx,%rdx
  mov    %r14,%rsi
  movsd  -0x8(%rcx,%r8,1),%xmm1
  movsd  (%rcx,%r8,1),%xmm2
  mov    %r13,%rdi
  mov    %r9,0x20(%rsp)
  movapd %xmm4,%xmm0
  mov    %r10d,0x28(%rsp)
  addsd  %xmm3,%xmm0
  mov    %rcx,0x18(%rsp)
  mov    %r8,0x10(%rsp)
  mov    %rax,0x8(%rsp)
  addsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  mulsd  D14(%rip),%xmm0
  movsd  %xmm0,0xa0(%rsp)
  movsd  (%rax),%xmm0
  unpcklpd %xmm0,%xmm4
  movaps %xmm4,0x60(%rsp)
  movsd  0x8(%rax),%xmm4
  unpcklpd %xmm4,%xmm3
  addsd  %xmm4,%xmm0
  movaps %xmm3,0x70(%rsp)
  movsd  (%rax,%r8,1),%xmm3
  unpcklpd %xmm3,%xmm2
  movaps %xmm2,0x90(%rsp)
  movsd  -0x8(%rax,%r8,1),%xmm2
  addsd  %xmm2,%xmm0
  unpcklpd %xmm2,%xmm1
  movaps %xmm1,0x80(%rsp)
  addsd  %xmm3,%xmm0
  mulsd  D14(%rip),%xmm0
  movsd  %xmm0,0xa8(%rsp)
  call   <volTriangle2D@plt>
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %r14,%rdi
  movsd  %xmm0,(%rsp)
  call   <volTriangle2D@plt>
  movsd  (%rsp),%xmm5
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  addsd  %xmm0,%xmm5
  movsd  %xmm5,(%rsp)
  call   <volTriangle2D@plt>
  addsd  (%rsp),%xmm0
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  movsd  %xmm0,(%rsp)
  call   <volTriangle2D@plt>
  addsd  (%rsp),%xmm0
  mov    0x20(%rsp),%r9
  mov    0x28(%rsp),%r10d
  mov    0x18(%rsp),%rcx
  mov    0x8(%rsp),%rax
  mov    0x10(%rsp),%r8
  movsd  %xmm0,(%r9)
  add    $0x1,%r10d
  add    %r15,%rcx
  add    0x30(%rsp),%r9
  add    %r15,%rax
  cmp    %r10d,0x2c(%rsp)
  jne    L12
  addq   $0x1,0x38(%rsp)
  mov    0x38(%rsp),%rax
  addq   $0x8,0x40(%rsp)
  cmp    %rax,0x58(%rsp)
  jne    L47
L31:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L32
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D14
type_guessed: f64

tool: D14: 0.25

assistant: ```c
void Jac2D(double *volu, const double *yc, const double *m, const int n) {
  double yA[2], yB[2], yC[2], yD[2], yM[2], vol;
  int i1, i2, r, id, idn, comp;
  const int m1 = m[0], m2 = m[1];
  const int nn = (m1 + 1) * (m2 + 1);
  const int inc_x = 1;
  const int inc_y = m1 + 1;
  const double *ptr;
#pragma omp parallel for default(shared) private(ptr, i1, i2, r, id, idn, comp, vol, yA, yB, yC, yD, yM)
  for (i1 = 0; i1 < m1; i1++) {
    for (i2 = 0; i2 < m2; i2++) {
      comp = 0;
      idn = i1 + i2 * inc_y;
      for (r = 0; r < 2; r++) {
        ptr = yc + idn + comp;
        yA[r] = *ptr;
        ptr = ptr + inc_x;
        yB[r] = *ptr;
        ptr = ptr + inc_y;
        yD[r] = *ptr;
        ptr = ptr - inc_x;
        yC[r] = *ptr;
        yM[r] = 0.25 * (yA[r] + yB[r] + yC[r] + yD[r]);
        comp += nn;
      }
      vol = volTriangle2D(yA, yB, yM);
      vol += volTriangle2D(yB, yD, yM);
      vol += volTriangle2D(yD, yC, yM);
      vol += volTriangle2D(yC, yA, yM);
      id = i1 + i2 * m1;
      volu[id] = vol;
    }
  }
  return;
}
```