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

```asm
<compute_ref_coefs>:
  endbr64
  sub    $0x3d8,%rsp
  mov    %esi,%r9d
  mov    %rdx,%r8
  movsd  (%rdi),%xmm0
  mov    %fs:0x28,%rdx
  mov    %rdx,0x3c8(%rsp)
  xor    %edx,%edx
  and    $0xff,%r9d
  je     L4
  lea    0x8(%rdi),%rdx
  movzbl %sil,%ecx
  lea    0x1e0(%rsp),%r10
  movq   D35(%rip),%xmm5
  mov    %rcx,%rax
  mov    %r10,%rdi
  mov    %rdx,%rsi
  mov    %rsp,%r10
  rep movsq %ds:(%rsi),%es:(%rdi)
  mov    %eax,%ecx
  mov    %rdx,%rsi
  mov    %r10,%rdi
  lea    0x8(%rsp),%r11
  xor    %eax,%eax
  rep movsq %ds:(%rsi),%es:(%rdi)
  lea    -0x1(%r9),%esi
  mov    $0x1,%edi
  mov    %esi,%edx
  movsd  0x1e0(%rsp),%xmm1
  movapd %xmm1,%xmm4
  xorpd  %xmm5,%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,(%r8)
  mulsd  %xmm1,%xmm4
  addsd  %xmm0,%xmm4
  cmp    $0x1,%r9d
  je     L115
  nopl   (%rax)
L100:
  lea    -0x1(%rdx),%ecx
  test   %edx,%edx
  jle    L1
  sub    $0x1,%edx
  movsd  -0x8(%r8,%rdi,8),%xmm3
  mov    %r10,%rax
  mov    %rdx,%rcx
  lea    (%r11,%rdx,8),%rdx
  nopl   0x0(%rax,%rax,1)
L16:
  movsd  (%rax),%xmm2
  movapd %xmm3,%xmm1
  movsd  0x1e8(%rax),%xmm0
  add    $0x8,%rax
  mulsd  %xmm2,%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm0
  movsd  %xmm1,0x1d8(%rax)
  addsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rdx,%rax
  jne    L16
  movsd  0x1e0(%rsp),%xmm1
L1:
  movapd %xmm1,%xmm0
  mov    %ecx,%edx
  xorpd  %xmm5,%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%r8,%rdi,8)
  mulsd  %xmm1,%xmm0
  add    $0x1,%rdi
  addsd  %xmm0,%xmm4
  cmp    %edi,%r9d
  jg     L100
L27:
  movslq %esi,%rax
  cmp    $0xffffffff,%eax
  je     L75
L115:
  movq   D7(%rip),%xmm2
  movsd  D33(%rip),%xmm1
  jmp    L5
  nopw   0x0(%rax,%rax,1)
L68:
  sub    $0x1,%rax
  cmp    $0xffffffff,%eax
  je     L75
L5:
  movsd  (%r8,%rax,8),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L68
  add    $0x1,%eax
  jmp    L13
L75:
  mov    $0x1,%eax
L13:
  mov    0x3c8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L111
  add    $0x3d8,%rsp
  ret
L4:
  movsd  0x1e0(%rsp),%xmm1
  mov    $0xffffffff,%esi
  xorpd  D35(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%r8)
  jmp    L27
L111:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D35
data_type: byte[16]
name: parse_data
arguments: tag: D7
data_type: qword
name: parse_data
arguments: tag: D33
data_type: f64

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

tool: D7: 9223372036854775807

tool: D33: 0.1

assistant: ```c
unsigned char compute_ref_coefs(double *autoc, unsigned char max_order, double *ref) {
  int i, j;
  double error;
  double gen[2][60];
  unsigned char order_est;
  for (i = 0; i < max_order; i++)
    gen[0][i] = gen[1][i] = autoc[i + 1];
  error = autoc[0];
  ref[0] = -gen[1][0] / error;
  error += gen[1][0] * ref[0];
  for (i = 1; i < max_order; i++) {
    for (j = 0; j < max_order - i; j++) {
      gen[1][j] = gen[1][j + 1] + ref[i - 1] * gen[0][j];
      gen[0][j] = gen[1][j + 1] * ref[i - 1] + gen[0][j];
    }
    ref[i] = -gen[1][0] / error;
    error += gen[1][0] * ref[i];
  }
  order_est = 1;
  for (i = max_order - 1; i >= 0; i--) {
    if (fabs(ref[i]) > 0.10) {
      order_est = i + 1;
      break;
    }
  }
  return (order_est);
}
```