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

```asm
<disconts>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r14
  mov    %rsi,0x8(%rsp)
  mov    %rdx,%r15
  mov    %rcx,0x10(%rsp)
  mov    0x60(%rsp),%r12
  mov    0x70(%rsp),%r13
  mov    0xa0(%rsp),%rbp
  mov    0xa8(%rsp),%rbx
  mov    0x80(%rsp),%eax
  push   %rax
  mov    0x80(%rsp),%eax
  push   %rax
  mov    0xa8(%rsp),%rcx
  mov    0xa0(%rsp),%rdx
  mov    0x98(%rsp),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <inten_const@plt>
  mov    0x90(%rsp),%eax
  lea    -0x1(%rax),%edi
  add    $0x10,%rsp
  cmp    $0x1,%edi
  jle    L31
  mov    %edi,%r9d
  mov    0x78(%rsp),%esi
  mov    $0x1,%ecx
  lea    -0x3(%rsi),%r8d
  add    $0x2,%r8
  movsd  D52(%rip),%xmm3
  movss  D36(%rip),%xmm6
  movaps %xmm6,%xmm10
  movaps %xmm6,%xmm9
  mov    %edi,0x1c(%rsp)
  mov    0x10(%rsp),%r10
  mov    %esi,%r11d
  mov    %r8,%rdi
  mov    0x8(%rsp),%r8
  jmp    L139
L21:
  xorps  %xmm6,%xmm11
  jmp    L91
L122:
  xorps  %xmm9,%xmm0
  jmp    L51
L67:
  xorps  %xmm10,%xmm0
  jmp    L70
L69:
  movl   $0x0,(%rbx,%rax,1)
L1:
  add    $0x4,%rax
  cmp    %rdx,%rax
  je     L183
L155:
  pxor   %xmm0,%xmm0
  cvtss2sd (%r12,%rax,1),%xmm0
  mulsd  %xmm3,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  0x0(%r13,%rax,1),%xmm1
  movss  0x0(%rbp,%rax,1),%xmm11
  comiss %xmm11,%xmm2
  ja     L21
L91:
  comiss %xmm0,%xmm11
  jae    L69
  movss  (%r14,%rax,1),%xmm0
  subss  (%r15,%rax,1),%xmm0
  comiss %xmm0,%xmm5
  ja     L122
L51:
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm4,%xmm1
  cvtsd2ss %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jae    L69
  movss  (%r8,%rax,1),%xmm0
  subss  (%r10,%rax,1),%xmm0
  comiss %xmm0,%xmm7
  ja     L67
L70:
  comiss %xmm1,%xmm0
  jae    L69
  movss  %xmm8,(%rbx,%rax,1)
  jmp    L1
L183:
  add    $0x1,%ecx
  add    %r11d,%esi
  cmp    %r9d,%ecx
  je     L59
L139:
  cmp    $0x2,%r11d
  jle    L183
  movslq %esi,%rdx
  lea    0x4(,%rdx,4),%rax
  add    %rdi,%rdx
  shl    $0x2,%rdx
  pxor   %xmm2,%xmm2
  movaps %xmm2,%xmm5
  movsd  D52(%rip),%xmm4
  movaps %xmm2,%xmm7
  movss  D17(%rip),%xmm8
  jmp    L155
L59:
  mov    0x1c(%rsp),%edi
L31:
  cmpl   $0x0,0x80(%rsp)
  jle    L82
  movslq 0x78(%rsp),%rcx
  lea    0x0(,%rcx,4),%rsi
  mov    %rbx,%rax
  mov    $0x0,%edx
  movss  D17(%rip),%xmm0
  mov    0x80(%rsp),%r8d
L11:
  movss  %xmm0,(%rax)
  movl   $0x0,-0x4(%rax,%rcx,4)
  add    $0x1,%edx
  add    %rsi,%rax
  cmp    %edx,%r8d
  jne    L11
L82:
  cmpl   $0x0,0x78(%rsp)
  jle    L125
  imul   0x78(%rsp),%edi
  mov    %rbx,%rax
  mov    0x78(%rsp),%esi
  lea    -0x1(%rsi),%edx
  lea    0x4(%rbx,%rdx,4),%rcx
  movss  D17(%rip),%xmm0
  movslq %edi,%rdx
L132:
  movss  %xmm0,(%rax)
  movl   $0x0,(%rax,%rdx,4)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L132
L125:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D52
type_guessed: f64
name: disassemble_data
arguments: data_label: D36
type_guessed: byte[4]
name: disassemble_data
arguments: data_label: D17
type_guessed: f32

tool: D52: 1.4142136

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

tool: D17: 1

assistant: ```c
void disconts(u, v, prev_u, prev_v, du, dv, s1, s2, s3, nx, ny, Ix, Iy, It, err, discont) float *Ix, *Iy, *It, *u, *v, *du, *dv, *prev_u, *prev_v, *err, *discont;
int nx, ny;
float *s1, *s2, *s3;
{
  float image_abs_max(), variance(), mean();
  int index, nx_max, ny_max, i, j;
  float t1;
  float t3;
  inten_const(err, Ix, Iy, It, du, dv, nx, ny);
  for (i = 1; i < ny - 1; i++) {
    for (j = 1; j < nx - 1; j++) {
      index = i * nx + j;
      t1 = s1[index] * 1.4142136;
      t3 = s3[index] * 1.4142136;
      if ((((err[index]) < 0 ? -(err[index]) : (err[index])) >= t1) || (((u[index] - prev_u[index]) < 0 ? -(u[index] - prev_u[index]) : (u[index] - prev_u[index])) >= t3) || (((v[index] - prev_v[index]) < 0 ? -(v[index] - prev_v[index]) : (v[index] - prev_v[index])) >= t3))
        discont[index] = 0.0;
      else
        discont[index] = 1.0;
    }
  }
  ny_max = ny - 1;
  nx_max = nx - 1;
  for (i = 0; i < ny; i++) {
    discont[(i * nx)] = 1.0;
    discont[(i * nx) + nx_max] = 0.0;
  }
  for (j = 0; j < nx; j++) {
    discont[j] = 1.0;
    discont[(ny_max * nx) + j] = 0.0;
  }
}
```