user: What is the c source code of the assembly code below:

```asm
<create_codebook_text_file>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D27(%rip),%rsi
  push   %rbp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x68,%rsp
  mov    %edx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L55
  mov    0x8(%rsp),%ecx
  test   %ecx,%ecx
  jle    L73
L63:
  movslq 0x8(%rsp),%rdx
  lea    0x30(%rsp),%rdi
  xor    %esi,%esi
  mov    %rdi,0x18(%rsp)
  shl    $0x2,%rdx
  call   <memset@plt>
L94:
  mov    0x8(%rsp),%r14d
  mov    %ebx,%edi
  lea    D7(%rip),%r13
  mov    %r14d,%esi
  call   <pow@plt>
  lea    D1(%rip),%rsi
  mov    %rbp,%rdi
  mov    %r14d,%edx
  mov    %eax,%ecx
  xor    %eax,%eax
  call   <fprintf@plt>
  lea    -0x1(%r14),%eax
  lea    0x34(%rsp),%rsi
  mov    %rax,%rdi
  mov    %eax,0xc(%rsp)
  lea    (%rsi,%rax,4),%rax
  mov    %rax,(%rsp)
  lea    -0x2(%r14),%eax
  lea    (%rsi,%rax,4),%rax
  mov    %rsi,0x28(%rsp)
  mov    %rax,0x20(%rsp)
  movslq %edi,%rax
  mov    %rax,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L71:
  mov    0x8(%rsp),%edx
  mov    0x18(%rsp),%r15
  xor    %r14d,%r14d
  test   %edx,%edx
  jle    L42
L72:
  mov    (%r15),%eax
  pxor   %xmm0,%xmm0
  mov    %r13,%rsi
  mov    %rbp,%rdi
  add    $0x4,%r15
  add    %r14d,%eax
  add    %ebx,%r14d
  cltq
  cvtss2sd (%r12,%rax,4),%xmm0
  mov    $0x1,%eax
  call   <fprintf@plt>
  cmp    (%rsp),%r15
  jne    L72
L42:
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x30(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    0xc(%rsp),%eax
  mov    %edx,0x30(%rsp)
  test   %eax,%eax
  jle    L13
  mov    0x28(%rsp),%rax
  mov    0x20(%rsp),%rcx
  jmp    L24
  nopl   0x0(%rax,%rax,1)
L61:
  mov    (%rax),%edx
  add    $0x4,%rax
L24:
  cmp    %edx,%ebx
  jne    L39
  addl   $0x1,(%rax)
  movl   $0x0,-0x4(%rax)
L39:
  cmp    %rax,%rcx
  jne    L61
L13:
  mov    0x10(%rsp),%rax
  cmp    %ebx,0x30(%rsp,%rax,4)
  jne    L71
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  add    $0x68,%rsp
  mov    %rbp,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10d0 <fclose@plt>
L55:
  mov    %r13,%rsi
  lea    D29(%rip),%rdi
  call   <printf@plt>
  xor    %edi,%edi
  call   <exit@plt>
  mov    0x8(%rsp),%ecx
  test   %ecx,%ecx
  jg     L63
L73:
  lea    0x30(%rsp),%rax
  mov    %rax,0x18(%rsp)
  jmp    L94
L69:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D27
datatype: string
name: disassemble_data
arguments: tag: D7
datatype: string
name: disassemble_data
arguments: tag: D1
datatype: string
name: disassemble_data
arguments: tag: D29
datatype: string

tool: D27: wt

tool: D7: %4.0f 

tool: D1: %d %d


tool: D29: Can't open codebook text file %s


assistant: ```c
void create_codebook_text_file(char filename[], float lsp[], int rows, int cols) {
  FILE *f;
  int i, digits[10];
  f = fopen(filename, "wt");
  if (f == NULL) {
    printf("Can't open codebook text file %s\n", filename);
    exit(0);
  }
  for (i = 0; i < rows; i++)
    digits[i] = 0;
  fprintf(f, "%d %d\n", rows, (int)pow(cols, rows));
  do {
    for (i = 0; i < rows; i++)
      fprintf(f, "%4.0f ", lsp[cols * i + digits[i]]);
    fprintf(f, "\n");
    digits[0]++;
    for (i = 0; i < rows - 1; i++)
      if (digits[i] == cols) {
        digits[i] = 0;
        digits[i + 1]++;
      }
  } while (digits[rows - 1] != cols);
  fclose(f);
}
```