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

```asm
<disconts>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    0x70(%rsp),%eax
  mov    0x68(%rsp),%r15d
  mov    %rcx,(%rsp)
  mov    0x50(%rsp),%rbp
  mov    0x60(%rsp),%r12
  mov    %rsi,0x8(%rsp)
  mov    0x90(%rsp),%rdi
  mov    0x98(%rsp),%rbx
  push   %rax
  xor    %eax,%eax
  push   %r15
  mov    0x98(%rsp),%rcx
  mov    0x90(%rsp),%rdx
  mov    0x88(%rsp),%rsi
  mov    %rdi,0xa0(%rsp)
  call   <inten_const@plt>
  mov    0x80(%rsp),%eax
  pop    %rdx
  pop    %rcx
  lea    -0x1(%rax),%r8d
  cmp    $0x1,%r8d
  jle    L90
  lea    -0x3(%r15),%r9d
  mov    0x8(%rsp),%r10
  mov    (%rsp),%r11
  mov    %r15d,%esi
  movss  D1(%rip),%xmm5
  mov    $0x1,%ecx
  add    $0x2,%r9
  movsd  D8(%rip),%xmm4
  mov    0x90(%rsp),%rdi
  movaps %xmm5,%xmm8
  movaps %xmm5,%xmm7
  nopl   (%rax)
L28:
  cmp    $0x2,%r15d
  jle    L93
  movslq %esi,%rdx
  movss  D45(%rip),%xmm6
  pxor   %xmm3,%xmm3
  lea    0x4(,%rdx,4),%rax
  add    %r9,%rdx
  shl    $0x2,%rdx
  jmp    L46
  nopw   0x0(%rax,%rax,1)
L40:
  movss  0x0(%r13,%rax,1),%xmm0
  subss  (%r14,%rax,1),%xmm0
  comiss %xmm0,%xmm3
  jbe    L110
  xorps  %xmm7,%xmm0
L110:
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm4,%xmm1
  cvtsd2ss %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jae    L4
  movss  (%r10,%rax,1),%xmm0
  subss  (%r11,%rax,1),%xmm0
  comiss %xmm0,%xmm3
  jbe    L145
  xorps  %xmm8,%xmm0
L145:
  comiss %xmm1,%xmm0
  jae    L4
  movss  %xmm6,(%rbx,%rax,1)
  add    $0x4,%rax
  cmp    %rax,%rdx
  je     L93
  xchg   %ax,%ax
L46:
  pxor   %xmm0,%xmm0
  movss  (%rdi,%rax,1),%xmm2
  movss  (%r12,%rax,1),%xmm1
  cvtss2sd 0x0(%rbp,%rax,1),%xmm0
  mulsd  %xmm4,%xmm0
  comiss %xmm2,%xmm3
  cvtsd2ss %xmm0,%xmm0
  jbe    L150
  xorps  %xmm5,%xmm2
L150:
  comiss %xmm0,%xmm2
  jb     L40
L4:
  movl   $0x0,(%rbx,%rax,1)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L46
L93:
  add    $0x1,%ecx
  add    %r15d,%esi
  cmp    %r8d,%ecx
  jne    L28
L90:
  mov    0x70(%rsp),%eax
  test   %eax,%eax
  jle    L82
  movslq %r15d,%rcx
  movss  D45(%rip),%xmm0
  mov    %rbx,%rax
  xor    %edx,%edx
  mov    0x70(%rsp),%edi
  lea    0x0(,%rcx,4),%rsi
  nopl   (%rax)
L58:
  add    $0x1,%edx
  movss  %xmm0,(%rax)
  movl   $0x0,-0x4(%rax,%rcx,4)
  add    %rsi,%rax
  cmp    %edx,%edi
  jne    L58
L82:
  test   %r15d,%r15d
  jle    L62
  imul   %r15d,%r8d
  lea    -0x1(%r15),%eax
  movss  D45(%rip),%xmm0
  lea    0x4(%rbx,%rax,4),%rdx
  movslq %r8d,%rax
  nopl   0x0(%rax,%rax,1)
L112:
  movss  %xmm0,(%rbx)
  movl   $0x0,(%rbx,%rax,4)
  add    $0x4,%rbx
  cmp    %rdx,%rbx
  jne    L112
L62:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: tag: D1
datatype: byte[4]
name: parse_data
arguments: tag: D8
datatype: f64
name: parse_data
arguments: tag: D45
datatype: f32

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

tool: D8: 1.4142136

tool: D45: 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;
  }
}
```