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

```asm
<jitter>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %edx,-0x4c(%rbp)
  mov    %ecx,-0x50(%rbp)
  movsd  %xmm0,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x44(%rbp),%eax
  cltd
  idivl  -0x4c(%rbp)
  mov    %eax,%ecx
  mov    -0x48(%rbp),%eax
  cltd
  idivl  -0x50(%rbp)
  cmp    %eax,%ecx
  jge    L103
  mov    -0x44(%rbp),%eax
  cltd
  idivl  -0x4c(%rbp)
  mov    %eax,-0x2c(%rbp)
  jmp    L192
L103:
  mov    -0x48(%rbp),%eax
  cltd
  idivl  -0x50(%rbp)
  mov    %eax,-0x2c(%rbp)
L192:
  movl   $0x0,-0x34(%rbp)
  jmp    L81
L65:
  movl   $0x0,-0x30(%rbp)
  jmp    L162
L107:
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x18(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L91
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L122
L91:
  movsd  -0x8(%rbp),%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L122
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
L122:
  addl   $0x1,-0x30(%rbp)
L162:
  mov    -0x30(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L107
  movl   $0x0,-0x30(%rbp)
  jmp    L82
L19:
  movsd  -0x20(%rbp),%xmm1
  movsd  D17(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x18(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L211
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L41
L211:
  movsd  -0x8(%rbp),%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L41
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
L41:
  addl   $0x1,-0x30(%rbp)
L82:
  mov    -0x30(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L19
  addl   $0x1,-0x34(%rbp)
L81:
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L65
  movl   $0x0,-0x34(%rbp)
  jmp    L51
L88:
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x18(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L89
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L173
L89:
  movsd  -0x8(%rbp),%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L173
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
L173:
  addl   $0x1,-0x34(%rbp)
L51:
  mov    -0x4c(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  sub    %edx,%eax
  cmp    %eax,-0x34(%rbp)
  jl     L88
  movl   $0x0,-0x34(%rbp)
  jmp    L218
L232:
  movsd  -0x20(%rbp),%xmm1
  movsd  D17(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x28(%rbp),%xmm0
  addsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x18(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L176
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L84
L176:
  movsd  -0x8(%rbp),%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L84
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
L84:
  addl   $0x1,-0x34(%rbp)
L218:
  mov    -0x50(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%eax
  sub    %edx,%eax
  cmp    %eax,-0x34(%rbp)
  jl     L232
  movsd  -0x10(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  D23(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: label: D17
type_guessed: f32[2]
name: retrieve_data
arguments: label: D23
type_guessed: f32[2]

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

tool: {"D23": [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;
}
```