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

```asm
<main>:
  endbr64
  push   %r15
  lea    D28(%rip),%rdi
  mov    $0x1,%eax
  push   %r14
  push   %r13
  lea    D106(%rip),%r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  mov    $0x5a,%ebp
  push   %rbx
  mov    $0x8000,%ebx
  sub    $0x18,%rsp
  movsd  D37(%rip),%xmm1
  movapd %xmm1,%xmm0
  call   <printf@plt>
  lea    D16(%rip),%rdi
  call   <puts@plt>
  mov    D37(%rip),%rax
  pxor   %xmm0,%xmm0
  mov    %r13,%rdi
  mov    $0x8000,%edx
  mov    $0x8000,%esi
  movq   %rax,%xmm1
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm4,%xmm4
  movss  D55(%rip),%xmm2
  movd   %xmm4,%r15d
  nopw   0x0(%rax,%rax,1)
L9:
  movsd  D31(%rip),%xmm0
  pxor   %xmm3,%xmm3
  movss  %xmm2,0xc(%rsp)
  mov    %ebx,%r14d
  cvtss2sd %xmm2,%xmm3
  movsd  %xmm3,(%rsp)
  mulsd  %xmm3,%xmm0
  divsd  D5(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  call   <cosf@plt>
  mov    %r13,%rdi
  movaps %xmm0,%xmm1
  movss  D3(%rip),%xmm0
  movsd  (%rsp),%xmm3
  mov    $0x2,%eax
  mulss  %xmm1,%xmm0
  cvtss2sd %xmm1,%xmm1
  addss  D24(%rip),%xmm0
  cvttss2si %xmm0,%ebx
  movapd %xmm3,%xmm0
  sar    %ebx
  mov    %ebx,%edx
  mov    %ebx,%esi
  call   <printf@plt>
  mov    %r14d,%edx
  movss  0xc(%rsp),%xmm2
  sub    %ebx,%edx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  cmp    $0xffffffff,%r14d
  je     L24
  cmp    %r12d,%eax
  jle    L24
  mov    %eax,%r12d
  movd   %xmm2,%r15d
L24:
  addss  D55(%rip),%xmm2
  sub    $0x1,%ebp
  jne    L9
  lea    D86(%rip),%rdi
  call   <puts@plt>
  movd   %r15d,%xmm5
  mov    %r12d,%edx
  mov    %r12d,%esi
  pxor   %xmm0,%xmm0
  lea    D43(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd %xmm5,%xmm0
  call   <printf@plt>
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D28
datatype: string
name: extract_symbolic_data
arguments: tag: D106
datatype: string
name: extract_symbolic_data
arguments: tag: D37
datatype: f32[2]
name: extract_symbolic_data
arguments: tag: D16
datatype: string
name: extract_symbolic_data
arguments: tag: D55
datatype: byte[4]
name: extract_symbolic_data
arguments: tag: D31
datatype: f64
name: extract_symbolic_data
arguments: tag: D5
datatype: f32[2]
name: extract_symbolic_data
arguments: tag: D3
datatype: byte[4]
name: extract_symbolic_data
arguments: tag: D24
datatype: byte[4]
name: extract_symbolic_data
arguments: tag: D86
datatype: string
name: extract_symbolic_data
arguments: tag: D43
datatype: string

tool: D28: // cos table in 1.15 fixed point format in units of %f degrees


tool: D106:   %8d, // 0x%04x, cos(%2.f)=%f


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

tool: D16: static const int NvSFx_cos_fx_table[] = {

tool: {"D55": [0x00,0x00,0x80,0x3f]}

tool: D31: 3.141592653589793

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

tool: {"D3": [0x00,0x00,0x80,0x47]}

tool: {"D24": [0x00,0x00,0xc0,0x3f]}

tool: D86: };

tool: D43: // biggest delta is %d [0x%x] at degree %f


assistant: ```c
int main() {
  float deg, cos_deg;
  float biggestDeltaDegree = 0;
  int fxCos;
  int lastCos = -1;
  int biggestDelta = 0;
  printf("// cos table in 1.15 fixed point format in units of %f degrees\n", (1.0f));
  printf("static const int NvSFx_cos_fx_table[] = {\n");
  for (deg = 0.0f; deg <= 90.0f + (0.0001f); deg += (1.0f)) {
    cos_deg = cosf((float)(deg * 3.14159265358979323846 / 180.0f));
    fxCos = (int)(cos_deg * 65536.0f + 1.5f) >> 1;
    printf("  %8d, // 0x%04x, cos(%2.f)=%f\n", fxCos, fxCos, deg, cos_deg);
    if ((biggestDelta < abs(lastCos - fxCos)) && (lastCos != -1)) {
      biggestDelta = abs(lastCos - fxCos);
      biggestDeltaDegree = deg;
    }
    lastCos = fxCos;
  }
  printf("};\n");
  printf("// biggest delta is %d [0x%x] at degree %f\n", biggestDelta, biggestDelta, biggestDeltaDegree);
  return 0;
}
```