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

```asm
<vranlc>:
  endbr64
  movsd  D5(%rip),%xmm5
  movapd %xmm0,%xmm1
  pxor   %xmm7,%xmm7
  movsd  D36(%rip),%xmm4
  mulsd  %xmm5,%xmm1
  cvttsd2si %xmm1,%eax
  cvtsi2sd %eax,%xmm7
  movapd %xmm7,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  movsd  (%rsi),%xmm1
  test   %edi,%edi
  jle    L7
  lea    -0x1(%rdi),%ecx
  movsd  D18(%rip),%xmm6
  lea    0x8(%rdx),%rax
  movsd  D32(%rip),%xmm8
  lea    0x10(%rdx,%rcx,8),%rcx
  nopl   (%rax)
L6:
  movapd %xmm1,%xmm2
  pxor   %xmm3,%xmm3
  add    $0x8,%rax
  mulsd  %xmm5,%xmm2
  cvttsd2si %xmm2,%edx
  cvtsi2sd %edx,%xmm3
  movapd %xmm3,%xmm9
  mulsd  %xmm4,%xmm9
  mulsd  %xmm0,%xmm3
  subsd  %xmm9,%xmm1
  movapd %xmm1,%xmm2
  movapd %xmm7,%xmm1
  mulsd  %xmm2,%xmm1
  mulsd  %xmm0,%xmm2
  addsd  %xmm3,%xmm1
  movapd %xmm1,%xmm3
  mulsd  %xmm5,%xmm3
  cvttsd2si %xmm3,%edx
  pxor   %xmm3,%xmm3
  cvtsi2sd %edx,%xmm3
  mulsd  %xmm4,%xmm3
  subsd  %xmm3,%xmm1
  mulsd  %xmm4,%xmm1
  addsd  %xmm2,%xmm1
  movapd %xmm1,%xmm2
  mulsd  %xmm6,%xmm2
  cvttsd2si %xmm2,%edx
  pxor   %xmm2,%xmm2
  cvtsi2sd %edx,%xmm2
  mulsd  %xmm8,%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm1,%xmm2
  mulsd  %xmm6,%xmm2
  movsd  %xmm2,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L6
L7:
  movsd  %xmm1,(%rsi)
  ret
```

tool_calls: name: read_data
arguments: tag: D5
type: byte[8]
name: read_data
arguments: tag: D36
type: byte[8]
name: read_data
arguments: tag: D18
type: byte[8]
name: read_data
arguments: tag: D32
type: byte[8]

tool: {"D5": [0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x3e]}

tool: {"D36": [0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x41]}

tool: {"D18": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x3d]}

tool: {"D32": [0x00,0x00,0x00,0x00,0x00,0x00,0xd0,0x42]}

assistant: ```c
void vranlc(int n, double *x_seed, double a, double *y) {
  int i;
  double x, t1, t2, t3, t4, a1, a2, x1, x2, z;
  t1 = (0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5) * a;
  a1 = (int)t1;
  a2 = a - (2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0) * a1;
  x = *x_seed;
  for (i = 1; i <= n; i++) {
    t1 = (0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5 * 0.5) * x;
    x1 = (int)t1;
    x2 = x - (2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0) * x1;
    t1 = a1 * x2 + a2 * x1;
    t2 = (int)((0.5 * 0.5 * 0.5 * 0.5 * 0.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