user: 请从给定的汇编指令推导出C源代码:

```asm
<make_html_table>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rdx,%r15
  mov    %rcx,%r14
  mov    %r8d,%r13d
  mov    %r9d,0x1c(%rsp)
  mov    0x80(%rsp),%r12
  lea    D140(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L6
L32:
  mov    %rbp,%rcx
  mov    $0x10,%edx
  mov    $0x1,%esi
  lea    D177(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x11,%edx
  mov    $0x1,%esi
  lea    D66(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x7,%edx
  mov    $0x1,%esi
  lea    D157(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x18,%edx
  mov    $0x1,%esi
  lea    D1(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D20(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x8,%edx
  mov    $0x1,%esi
  lea    D5(%rip),%rdi
  call   <fwrite@plt>
  mov    0x60(%rsp),%edx
  lea    D92(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0x27,%edx
  mov    $0x1,%esi
  lea    D13(%rip),%rdi
  call   <fwrite@plt>
  mov    %r15,%rdx
  lea    D187(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0x39,%edx
  mov    $0x1,%esi
  lea    D128(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0xc,%edx
  mov    $0x1,%esi
  lea    D25(%rip),%rdi
  call   <fwrite@plt>
  test   %r13d,%r13d
  jle    L10
  mov    %r14,%rbx
  lea    -0x1(%r13),%eax
  lea    0x8(%r14,%rax,8),%r14
  lea    D131(%rip),%r13
L11:
  mov    (%rbx),%rcx
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x8,%rbx
  cmp    %r14,%rbx
  jne    L11
L10:
  mov    %rbp,%rcx
  mov    $0x15,%edx
  mov    $0x1,%esi
  lea    D123(%rip),%rdi
  call   <fwrite@plt>
  sub    $0x8,%rsp
  mov    0x80(%rsp),%eax
  push   %rax
  mov    0x80(%rsp),%r9
  mov    0x78(%rsp),%r8
  mov    0x2c(%rsp),%ecx
  mov    %r15,%rdx
  mov    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <get_data_for_query@plt>
  mov    %rbp,%rcx
  mov    $0x10,%edx
  mov    $0x1,%esi
  lea    D41(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x8,%edx
  mov    $0x1,%esi
  lea    D93(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x8,%edx
  mov    $0x1,%esi
  lea    D12(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x18(%rsp),%rsi
  lea    D33(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L6:
  lea    D156(%rip),%rdi
  call   <puts@plt>
  jmp    L32
```

tool_calls: name: unpack_data
arguments: tag: D140
type_infered: string
name: unpack_data
arguments: tag: D177
type_infered: string
name: unpack_data
arguments: tag: D66
type_infered: string
name: unpack_data
arguments: tag: D157
type_infered: string
name: unpack_data
arguments: tag: D1
type_infered: string
name: unpack_data
arguments: tag: D20
type_infered: string
name: unpack_data
arguments: tag: D5
type_infered: string
name: unpack_data
arguments: tag: D92
type_infered: string
name: unpack_data
arguments: tag: D13
type_infered: string
name: unpack_data
arguments: tag: D187
type_infered: string
name: unpack_data
arguments: tag: D128
type_infered: string
name: unpack_data
arguments: tag: D25
type_infered: string
name: unpack_data
arguments: tag: D131
type_infered: string
name: unpack_data
arguments: tag: D123
type_infered: string
name: unpack_data
arguments: tag: D41
type_infered: string
name: unpack_data
arguments: tag: D93
type_infered: string
name: unpack_data
arguments: tag: D12
type_infered: string
name: unpack_data
arguments: tag: D33
type_infered: string
name: unpack_data
arguments: tag: D156
type_infered: string

tool: D140: w

tool: D177: <!DOCTYPE html>


tool: D66: <html lang="en">


tool: D157: <head>


tool: D1: <meta charset="UTF-8"/>


tool: D20: <title>Table Test</title>


tool: D5: </head>


tool: D92: <body style="font-size:%ipx">


tool: D13: <h1 align="center">Database Query</h1>


tool: D187: <h4 align="center">%s</h4>


tool: D128: <table align="center" style="border-collapse:collapse;">


tool: D25: <thead><tr>


tool: D131: <th scope="col" bgcolor="%s" style="border:1px solid #000000">&nbsp%s&nbsp</th>


tool: D123: </tr></thead><tbody>


tool: D41: </tbody></table>

tool: D93: </body>


tool: D12: </html>


tool: D33: %s file created.


tool: D156: Error opening file!

assistant: ```c
void make_html_table(char *html_file_name, char *database_name, char *sql, char *field_names[], int fields, int precision, int font_size, char *bg_color1, char *bg_color2, int alternate, char *field_bg_color, bool fields_found) {
  int i = 0;
  FILE *f = fopen(html_file_name, "w");
  if (f == NULL) {
    printf("Error opening file!\n");
  }
  fprintf(f, "<!DOCTYPE html>\n");
  fprintf(f, "<html lang=\"en\">\n");
  fprintf(f, "<head>\n");
  fprintf(f, "<meta charset=\"UTF-8\"/>\n");
  fprintf(f, "<title>Table Test</title>\n");
  fprintf(f, "</head>\n");
  fprintf(f, "<body style=\"font-size:%ipx\">\n", font_size);
  fprintf(f, "<h1 align=\"center\">Database Query</h1>\n");
  fprintf(f, "<h4 align=\"center\">%s</h4>\n", sql);
  fprintf(f, "<table align=\"center\" style=\"border-collapse:collapse;\">\n");
  fprintf(f, "<thead><tr>\n");
  for (i = 0; i < fields; i++) {
    fprintf(f, "<th scope=\"col\" bgcolor=\"%s\" style=\"border:1px solid #000000\">&nbsp%s&nbsp</th>\n", field_bg_color, field_names[i]);
  }
  fprintf(f, "</tr></thead><tbody>\n");
  get_data_for_query(f, database_name, sql, precision, bg_color1, bg_color2, alternate);
  fprintf(f, "</tbody></table>");
  fprintf(f, "</body>\n");
  fprintf(f, "</html>\n");
  fclose(f);
  printf("%s file created.\n", html_file_name);
}
```