user: Translate the below assembly code into C programming language:

```asm
<delta_delta>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdx,0x8(%rsp)
  mov    %rcx,0x10(%rsp)
  test   %esi,%esi
  je     L173
  mov    D2(%rip),%r14
  mov    %esi,%r12d
  mov    %rdi,%rbp
  xor    %ebx,%ebx
  mov    (%r14),%edx
  jmp    L25
  nopl   0x0(%rax,%rax,1)
L151:
  add    $0x4,%rbp
  cmp    %ebx,%r12d
  je     L173
L25:
  mov    0x0(%rbp),%eax
  mov    %ebx,%r13d
  add    $0x1,%ebx
  cmp    %edx,%eax
  je     L151
  mov    %eax,(%r8)
  cmp    %ebx,%r12d
  jbe    L140
  mov    %ebx,%eax
  mov    (%r14),%ecx
  lea    (%rdi,%rax,4),%rax
  jmp    L233
  nopl   0x0(%rax)
L168:
  add    $0x1,%ebx
  add    $0x4,%rax
  cmp    %ebx,%r12d
  je     L140
L233:
  mov    (%rax),%edx
  cmp    %ecx,%edx
  je     L168
  cmp    %ebx,%r12d
  jbe    L140
  mov    %edx,(%r9)
  xor    %eax,%eax
  sub    %r13d,%r12d
  call   <omp_get_num_threads@plt>
  mov    %eax,%r15d
  xor    %eax,%eax
  call   <omp_get_thread_num@plt>
  xor    %edx,%edx
  mov    %eax,%esi
  mov    %eax,%r8d
  imul   %r12d,%esi
  mov    %esi,%eax
  div    %r15d
  lea    -0x1(%r15),%edx
  mov    %eax,%edi
  mov    %r12d,%eax
  mov    %edi,%ecx
  cmp    %r8d,%edx
  je     L275
  lea    (%rsi,%r12,1),%eax
  xor    %edx,%edx
  div    %r15d
L275:
  cmp    %edi,%eax
  jbe    L302
  mov    (%r14),%esi
  lea    0x0(%rbp,%rdi,4),%rdx
  jmp    L278
  nopl   0x0(%rax)
L309:
  add    $0x4,%rdx
  cmp    %eax,%ecx
  je     L78
L278:
  mov    (%rdx),%r8d
  mov    %ecx,%edi
  add    $0x1,%ecx
  cmp    %esi,%r8d
  je     L309
L84:
  lea    0x1(%rdi),%ecx
  cmp    %ecx,%eax
  jbe    L313
  mov    %ecx,%edx
  mov    (%r14),%esi
  lea    0x0(%rbp,%rdx,4),%rdx
  jmp    L227
  nopl   0x0(%rax)
L252:
  add    $0x1,%ecx
  add    $0x4,%rdx
  cmp    %ecx,%eax
  jbe    L313
L227:
  cmp    %esi,(%rdx)
  je     L252
L313:
  cmp    %ecx,%eax
  je     L78
  mov    %ecx,%edx
  lea    0x1(%rcx),%esi
  mov    0x0(%rbp,%rdx,4),%r10d
  cmp    %edi,%eax
  jbe    L78
  cmp    %esi,%r12d
  jbe    L78
  xor    %r11d,%r11d
  xor    %edx,%edx
  mov    %r13d,0x18(%rsp)
  xor    %r15d,%r15d
  mov    %ebx,0x1c(%rsp)
  mov    %r11d,%r13d
  mov    %edx,%ebx
  jmp    L250
  nopw   0x0(%rax,%rax,1)
L219:
  cmp    %edx,%ebx
  mov    %ecx,%edi
  mov    %r10d,%r8d
  mov    %esi,%ecx
  cmovg  %edx,%ebx
  cmp    %edx,%r15d
  mov    %r9d,%r10d
  cmovl  %edx,%r15d
L16:
  add    $0x1,%esi
  cmp    %eax,%edi
  jae    L71
  cmp    %esi,%r12d
  jbe    L71
L250:
  mov    %esi,%edx
  lea    0x0(%rbp,%rdx,4),%r11
  mov    (%r11),%r9d
  cmp    (%r14),%r9d
  je     L16
  mov    %r9d,%edx
  sub    %r10d,%edx
  sub    %r10d,%edx
  add    %r8d,%edx
  mov    %edx,(%r11)
  test   %r13d,%r13d
  jne    L219
  mov    %ecx,%edi
  mov    %r10d,%r8d
  mov    %esi,%ecx
  mov    %r9d,%r10d
  mov    %edx,%r15d
  mov    %edx,%ebx
  mov    $0x1,%r13d
  jmp    L16
  nopl   0x0(%rax)
L140:
  movl   $0x0,0x0(%rbp)
L173:
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L78:
  mov    0x10(%rsp),%rax
  sub    %r13d,%ebx
  movl   $0x0,0x0(%rbp)
  movl   $0x0,0x0(%rbp,%rbx,4)
  movl   $0x0,(%rax)
  mov    0x8(%rsp),%rax
  movl   $0x0,(%rax)
  jmp    L173
  nopw   0x0(%rax,%rax,1)
L71:
  mov    %ebx,%edi
  mov    0x1c(%rsp),%ebx
  mov    %r13d,%esi
  mov    0x18(%rsp),%r13d
  mov    %ebx,%eax
  sub    %r13d,%eax
  lea    0x0(%rbp,%rax,4),%rax
  test   %esi,%esi
  je     L78
  movl   $0x0,0x0(%rbp)
  movl   $0x0,(%rax)
  mov    0x8(%rsp),%rax
  mov    %edi,(%rax)
  mov    0x10(%rsp),%rax
  mov    %r15d,(%rax)
  jmp    L173
L302:
  je     L78
  mov    %edi,%edx
  mov    0x0(%rbp,%rdx,4),%r8d
  jmp    L84
```

assistant: ```c
int delta_delta(int *data, unsigned int n, int *min, int *max, int *first_val, int *second_val) {
  int nthreads, thread_id, tmp, mn, mx, mn_thread, mx_thread, mx_set, mx_set_thread, penultimate_val, last_val;
  unsigned int first, second, j, penultimate, last, istart, iend;
  for (first = 0; first < n; first++) {
    if (data[first] != INT_MAX) {
      break;
    }
  }
  if (first >= n)
    return 0;
  *first_val = data[first];
  for (second = first + 1; second < n; second++) {
    if (data[second] != INT_MAX) {
      break;
    }
  }
  if (second >= n) {
    data[first] = 0;
    return 0;
  }
  *second_val = data[second];
  mx_set = mn = mx = 0;
  n -= first;
  data += first;
#pragma omp parallel private(nthreads, thread_id, istart, iend, penultimate_val, penultimate, last_val, last, j, tmp, mn_thread, mx_thread, mx_set_thread)
  {
    nthreads = omp_get_num_threads();
    thread_id = omp_get_thread_num();
    istart = (thread_id * n) / nthreads;
    iend = ((thread_id + 1) * n) / nthreads;
    if (thread_id == nthreads - 1)
      iend = n;
    mx_set_thread = mx_thread = mn_thread = 0;
    for (penultimate = istart; penultimate < iend; penultimate++) {
      if (data[penultimate] != INT_MAX)
        break;
    }
    if (penultimate != iend) {
      penultimate_val = data[penultimate];
      for (last = penultimate + 1; last < iend; last++) {
        if (data[last] != INT_MAX)
          break;
      }
      if (last != iend)
        last_val = data[last];
    } else {
      last = iend;
    }
#pragma omp barrier
    if (last != iend) {
      j = last + 1;
      while (penultimate < iend && j < n) {
        if (data[j] != INT_MAX) {
          tmp = data[j];
          data[j] = data[j] - last_val - last_val + penultimate_val;
          if (mx_set_thread) {
            mn_thread = mn_thread <= data[j] ? mn_thread : data[j];
            mx_thread = mx_thread >= data[j] ? mx_thread : data[j];
          } else {
            mx_set_thread = 1;
            mn_thread = mx_thread = data[j];
          }
          penultimate = last;
          last = j;
          penultimate_val = last_val;
          last_val = tmp;
        }
        j++;
      }
    }
    if (mx_set_thread) {
#pragma omp critical
      {
        if (mx_set) {
          mn = mn <= mn_thread ? mn : mn_thread;
          mx = mx >= mx_thread ? mx : mx_thread;
        } else {
          mx_set = 1;
          mn = mn_thread;
          mx = mx_thread;
        }
      }
    }
  }
  data[0] = 0;
  data[second - first] = 0;
  if (mx_set) {
    *min = mn;
    *max = mx;
  } else
    *min = *max = 0;
  return 0;
}
```