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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  movl   $0x280,-0x1c(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L60
L94:
  addl   $0x1,-0x28(%rbp)
  sarl   -0x1c(%rbp)
L60:
  mov    -0x1c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L94
  movsd  D130(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  lea    D167(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x20(%rbp)
  jmp    L72
L27:
  movl   $0x0,-0x24(%rbp)
  jmp    L149
L56:
  cmpl   $0x9,-0x20(%rbp)
  jne    L29
  cmpl   $0x9,-0x24(%rbp)
  jne    L29
  lea    D54(%rip),%rbx
  jmp    L84
L29:
  lea    D49(%rip),%rbx
L84:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x20(%rbp),%xmm1
  movsd  D25(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D33(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x24(%rbp),%xmm2
  movsd  D25(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D72(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm3
  mulsd  -0x18(%rbp),%xmm3
  movq   %xmm3,%rax
  mov    %rbx,%rsi
  movq   %rax,%xmm0
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x24(%rbp)
L149:
  cmpl   $0x9,-0x24(%rbp)
  jle    L56
  addl   $0x1,-0x20(%rbp)
L72:
  cmpl   $0x9,-0x20(%rbp)
  jle    L27
  lea    D215(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movsd  D22(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  lea    D140(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x20(%rbp)
  jmp    L13
L104:
  movl   $0x0,-0x24(%rbp)
  jmp    L82
L145:
  cmpl   $0x9,-0x20(%rbp)
  jne    L105
  cmpl   $0x9,-0x24(%rbp)
  jne    L105
  lea    D54(%rip),%rbx
  jmp    L89
L105:
  lea    D49(%rip),%rbx
L89:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x20(%rbp),%xmm1
  movsd  D25(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D33(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x24(%rbp),%xmm2
  movsd  D25(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D72(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm4
  mulsd  -0x18(%rbp),%xmm4
  movq   %xmm4,%rax
  mov    %rbx,%rsi
  movq   %rax,%xmm0
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x24(%rbp)
L82:
  cmpl   $0x9,-0x24(%rbp)
  jle    L145
  addl   $0x1,-0x20(%rbp)
L13:
  cmpl   $0x9,-0x20(%rbp)
  jle    L104
  lea    D215(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x24(%rbp)
  jmp    L65
L176:
  mov    -0x24(%rbp),%eax
  mov    -0x1c(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edi
  call   <set_up_one_table@plt>
  addl   $0x1,-0x24(%rbp)
L65:
  mov    -0x24(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jle    L176
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D130
datatype: byte[8]
name: disassemble_data
arguments: tag: D167
datatype: string
name: disassemble_data
arguments: tag: D81
datatype: string
name: disassemble_data
arguments: tag: D54
datatype: string
name: disassemble_data
arguments: tag: D49
datatype: string
name: disassemble_data
arguments: tag: D25
datatype: f64
name: disassemble_data
arguments: tag: D33
datatype: f64
name: disassemble_data
arguments: tag: D72
datatype: f64
name: disassemble_data
arguments: tag: D65
datatype: string
name: disassemble_data
arguments: tag: D215
datatype: string
name: disassemble_data
arguments: tag: D22
datatype: byte[8]
name: disassemble_data
arguments: tag: D140
datatype: string

tool: {"D130": [0xd9,0xed,0xbf,0xc5,0x25,0x9f,0xac,0x3f]}

tool: D167: static const float max_dct_core_a[] =

tool: D81: {

tool: 

tool: D49: ,

tool: D25: 0.5

tool: D33: 3.141592653589793

tool: D72: 10

tool: D65:     %22.15ef%s


tool: D215: };


tool: {"D22": [0x0f,0x49,0x48,0x62,0x13,0x3d,0xb4,0x3f]}

tool: D140: static const float dct_core_a[] =

assistant: ```c
int main(int argc, char *argv[]) {
  int length_log;
  int i;
  int k;
  int dct_size;
  double scale;
  dct_size = 640;
  length_log = 0;
  while ((dct_size & 1) == 0) {
    length_log++;
    dct_size >>= 1;
  }
  scale = sqrt(2.0 / 640);
  printf("static const float max_dct_core_a[] =\n");
  printf("{\n");
  for (k = 0; k < 10; ++k) {
    for (i = 0; i < 10; ++i) {
      printf("    %22.15ef%s\n", cos(3.141592653589793238462 * (k + 0.5) * (i + 0.5) / 10.0) * scale, (k == 9 && i == 9) ? "" : ",");
    }
  }
  printf("};\n\n");
  scale = sqrt(2.0 / (640 >> 1));
  printf("static const float dct_core_a[] =\n");
  printf("{\n");
  for (k = 0; k < 10; ++k) {
    for (i = 0; i < 10; ++i) {
      printf("    %22.15ef%s\n", cos(3.141592653589793238462 * (k + 0.5) * (i + 0.5) / 10.0) * scale, (k == 9 && i == 9) ? "" : ",");
    }
  }
  printf("};\n\n");
  for (i = 0; i <= length_log; i++)
    set_up_one_table(dct_size << i);
  return 0;
}
```