user: 请将以下的汇编代码转换成C语言代码：

```asm
<turbulence>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  movsd  %xmm0,-0x28(%rbp)
  movsd  %xmm1,-0x30(%rbp)
  mov    -0x14(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x1c(%rbp),%eax
  imul   $0xffffffe9,%eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  movapd %xmm0,%xmm2
  addsd  -0x38(%rbp),%xmm2
  movsd  %xmm2,-0x38(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   $0xffffffed,%eax,%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  addsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x14(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   $0xffffffeb,%eax,%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  movapd %xmm0,%xmm4
  addsd  -0x38(%rbp),%xmm4
  movsd  %xmm4,-0x38(%rbp)
  mov    -0x18(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x14(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%edx
  sub    %edx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  addsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x14(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   $0xfffffff5,%eax,%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  movapd %xmm0,%xmm6
  addsd  -0x38(%rbp),%xmm6
  movsd  %xmm6,-0x38(%rbp)
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    0x0(,%rax,8),%ecx
  mov    %esi,%eax
  sub    %ecx,%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  addsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x14(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%eax
  shl    $0x3,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    0x0(,%rax,8),%ecx
  mov    %esi,%eax
  sub    %ecx,%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  D38(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <sin@plt>
  addsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movsd  D35(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x28(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D38
type_infered: f64
name: extract_symbolic_data
arguments: data_tag: D35
type_infered: f64

tool: D38: 3.141592654

tool: D35: 8

assistant: ```c
double turbulence(int x, int y, int seed, double strength, double frequency) {
  double offset = sin((x - seed) * frequency / (3.141592654)) + sin((y - seed * 23) * frequency / (3.141592654)) + sin((x + y - seed * 19) * frequency / (3.141592654)) + sin((2 * x + y - seed * 21) * frequency / (3.141592654)) + sin((x + 2 * y - seed * 14) * frequency / (3.141592654)) + sin((3 * x + y - seed * 11) * frequency / (3.141592654)) + sin((x + 3 * y - seed * 7) * frequency / (3.141592654)) + sin((7 * x + 8 * y - seed * 7) * frequency / (3.141592654));
  offset /= 8;
  return strength * offset;
}
```