user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    D127(%rip),%rax
  movq   %rax,%xmm0
  lea    D110(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D112(%rip),%rdi
  call   <puts@plt>
  mov    D127(%rip),%rax
  movq   %rax,%xmm1
  pxor   %xmm0,%xmm0
  mov    $0x8000,%edx
  mov    $0x8000,%esi
  lea    D38(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x5b,%ebp
  pxor   %xmm7,%xmm7
  movss  %xmm7,0x8(%rsp)
  mov    $0x8000,%r12d
  mov    $0x0,%r13d
  movss  %xmm7,0xc(%rsp)
  jmp    L24
L23:
  mov    %eax,%r13d
  movss  0x8(%rsp),%xmm5
  movss  %xmm5,0xc(%rsp)
L43:
  mov    %ebx,%r12d
L24:
  movss  D59(%rip),%xmm4
  addss  0x8(%rsp),%xmm4
  movss  %xmm4,0x8(%rsp)
  sub    $0x1,%ebp
  je     L13
  pxor   %xmm2,%xmm2
  cvtss2sd 0x8(%rsp),%xmm2
  movsd  %xmm2,(%rsp)
  movapd %xmm2,%xmm3
  mulsd  D114(%rip),%xmm3
  movapd %xmm3,%xmm0
  divsd  D1(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  call   <cosf@plt>
  movaps %xmm0,%xmm1
  mulss  D100(%rip),%xmm1
  addss  D11(%rip),%xmm1
  cvttss2si %xmm1,%ebx
  sar    %ebx
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  (%rsp),%xmm0
  mov    %ebx,%edx
  mov    %ebx,%esi
  lea    D38(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    %r12d,%edx
  sub    %ebx,%edx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  cmp    $0xffffffff,%r12d
  je     L43
  cmp    %r13d,%eax
  jg     L23
  jmp    L43
L13:
  lea    D66(%rip),%rdi
  call   <puts@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  mov    %r13d,%edx
  mov    %r13d,%esi
  lea    D69(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: unpack_data
arguments: label: D127
data_type: f32[2]
name: unpack_data
arguments: label: D110
data_type: string
name: unpack_data
arguments: label: D112
data_type: string
name: unpack_data
arguments: label: D38
data_type: string
name: unpack_data
arguments: label: D59
data_type: byte[4]
name: unpack_data
arguments: label: D114
data_type: f64
name: unpack_data
arguments: label: D1
data_type: f32[2]
name: unpack_data
arguments: label: D100
data_type: byte[4]
name: unpack_data
arguments: label: D11
data_type: byte[4]
name: unpack_data
arguments: label: D66
data_type: string
name: unpack_data
arguments: label: D69
data_type: string

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

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


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

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


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

tool: D114: 3.141592653589793

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

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

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

tool: D66: };

tool: D69: // 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;
}
```