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

```asm
<jitter>:
  endbr64
  mov    %edi,%r8d
  mov    %esi,%edi
  mov    %edx,%esi
  movsd  D5(%rip),%xmm6
  mov    %r8d,%eax
  movapd %xmm0,%xmm5
  pxor   %xmm0,%xmm0
  movapd %xmm0,%xmm3
  movapd %xmm0,%xmm2
  movapd %xmm0,%xmm1
  cltd
  idiv   %esi
  mov    %eax,%r9d
  mov    %edi,%eax
  cltd
  idiv   %ecx
  cmp    %eax,%r9d
  cmovg  %eax,%r9d
  xor    %edx,%edx
  test   %r9d,%r9d
  jle    L213
  nopl   0x0(%rax,%rax,1)
L101:
  xor    %eax,%eax
  test   %esi,%esi
  jg     L214
  jmp    L25
L31:
  maxsd  %xmm0,%xmm4
  add    $0x1,%eax
  movapd %xmm4,%xmm0
  cmp    %eax,%esi
  je     L25
L214:
  addsd  %xmm5,%xmm1
  movapd %xmm2,%xmm4
  subsd  %xmm1,%xmm4
  comisd %xmm4,%xmm3
  jbe    L31
  add    $0x1,%eax
  movapd %xmm4,%xmm3
  cmp    %eax,%esi
  jne    L214
L25:
  test   %ecx,%ecx
  jle    L117
  xor    %eax,%eax
  jmp    L120
  nopl   0x0(%rax)
L199:
  maxsd  %xmm0,%xmm4
  add    $0x1,%eax
  movapd %xmm4,%xmm0
  cmp    %eax,%ecx
  je     L117
L120:
  addsd  %xmm6,%xmm2
  addsd  %xmm5,%xmm1
  movapd %xmm2,%xmm4
  subsd  %xmm1,%xmm4
  comisd %xmm4,%xmm3
  jbe    L199
  add    $0x1,%eax
  movapd %xmm4,%xmm3
  cmp    %eax,%ecx
  jne    L120
L117:
  add    $0x1,%edx
  cmp    %edx,%r9d
  jne    L101
L213:
  imul   %r9d,%esi
  sub    %esi,%r8d
  test   %r8d,%r8d
  jle    L127
  xor    %edx,%edx
  jmp    L98
L102:
  maxsd  %xmm0,%xmm4
  add    $0x1,%edx
  movapd %xmm4,%xmm0
  cmp    %edx,%r8d
  je     L127
L98:
  addsd  %xmm5,%xmm1
  movapd %xmm2,%xmm4
  subsd  %xmm1,%xmm4
  comisd %xmm4,%xmm3
  jbe    L102
  add    $0x1,%edx
  movapd %xmm4,%xmm3
  cmp    %edx,%r8d
  jne    L98
L127:
  imul   %r9d,%ecx
  sub    %ecx,%edi
  test   %edi,%edi
  jle    L156
  movsd  D5(%rip),%xmm6
  xor    %edx,%edx
  jmp    L44
  nopl   0x0(%rax)
L34:
  maxsd  %xmm0,%xmm4
  add    $0x1,%edx
  movapd %xmm4,%xmm0
  cmp    %edi,%edx
  je     L156
L44:
  addsd  %xmm6,%xmm2
  addsd  %xmm5,%xmm1
  movapd %xmm2,%xmm4
  subsd  %xmm1,%xmm4
  comisd %xmm4,%xmm3
  jbe    L34
  add    $0x1,%edx
  movapd %xmm4,%xmm3
  cmp    %edi,%edx
  jne    L44
L156:
  subsd  %xmm3,%xmm0
  divsd  D8(%rip),%xmm0
  ret
```

tool_calls: name: read_data
arguments: label: D5
data_type: f32[2]
name: read_data
arguments: label: D8
data_type: f32[2]

tool: {"D5": [0.0,1.875]}

tool: {"D8": [0.0,15.609325408935547]}

assistant: ```c
double jitter(int ft0, int ft1, int il0, int il1, double frac) {
  int i, j, il_cycles;
  double time = 0, il_time = 0;
  double jit = 0, min_jitter = 0, max_jitter = 0;
  if ((ft0 / il0) < (ft1 / il1)) {
    il_cycles = ft0 / il0;
  } else {
    il_cycles = ft1 / il1;
  }
  for (i = 0; i < il_cycles; i++) {
    for (j = 0; j < il0; j++) {
      time += frac;
      jit = il_time - time;
      if (jit < min_jitter) {
        min_jitter = jit;
      } else if (jit > max_jitter) {
        max_jitter = jit;
      }
    }
    for (j = 0; j < il1; j++) {
      il_time++;
      time += frac;
      jit = il_time - time;
      if (jit < min_jitter) {
        min_jitter = jit;
      } else if (jit > max_jitter) {
        max_jitter = jit;
      }
    }
  }
  for (i = 0; i < (ft0 - il0 * il_cycles); i++) {
    time += frac;
    jit = il_time - time;
    if (jit < min_jitter) {
      min_jitter = jit;
    } else if (jit > max_jitter) {
      max_jitter = jit;
    }
  }
  for (i = 0; i < (ft1 - il1 * il_cycles); i++) {
    il_time++;
    time += frac;
    jit = il_time - time;
    if (jit < min_jitter) {
      min_jitter = jit;
    } else if (jit > max_jitter) {
      max_jitter = jit;
    }
  }
  return (max_jitter - min_jitter) / 27000000;
}
```