user: Converte this assembly snippet into its equivalent C code:

```asm
<mkftable>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  lea    D172(%rip),%r14
  push   %r13
  lea    D139(%rip),%r13
  push   %r12
  lea    D26(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  lea    D34(%rip),%rdi
  call   <puts@plt>
  lea    D11(%rip),%rdi
  call   <puts@plt>
  lea    D167(%rip),%rdi
  call   <puts@plt>
  lea    D123(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D133(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  nop
L141:
  lea    D25(%rip),%rdi
  mov    $0x1,%ebp
  mov    %r15d,%ebx
  call   <puts@plt>
  mov    %r15d,%eax
  mov    %ebp,%r15d
  shl    $0x4,%eax
  mov    %eax,0x4(%rsp)
  xor    %eax,%eax
  mov    %eax,%ebp
  jmp    L123
  nopw   0x0(%rax,%rax,1)
L142:
  mov    $0xccffcc,%esi
  cmp    $0x100,%eax
  je     L66
  mov    %eax,%esi
  sar    %eax
  shl    $0x8,%esi
  or     %eax,%esi
  or     $0xff0000,%esi
L66:
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  mov    %ebp,%r8d
  mov    %ebx,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <puts@plt>
L127:
  cmp    $0x10,%r15d
  je     L119
L14:
  add    $0x1,%ebp
  add    $0x1,%r15d
L123:
  mov    0x4(%rsp),%eax
  mov    0x8(%rsp),%rdx
  or     %ebp,%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0xc,%ebx
  jle    L142
  cmp    $0xd,%ebx
  jne    L153
  cmp    $0x7,%ebp
  jle    L142
L153:
  cmp    $0xf,%ebx
  jne    L64
  cmp    $0x8,%ebp
  jg     L142
L64:
  cmp    $0xd,%ebx
  je     L72
  cmp    $0xe,%ebx
  je     L47
  test   %ebp,%ebp
  jne    L127
  lea    D6(%rip),%rdi
L46:
  xor    %eax,%eax
  call   <printf@plt>
  lea    D62(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  jmp    L14
  nopw   0x0(%rax,%rax,1)
L119:
  mov    %ebx,%r15d
  lea    D142(%rip),%rdi
  call   <puts@plt>
  add    $0x1,%r15d
  cmp    $0x10,%r15d
  jne    L141
  lea    D145(%rip),%rdi
  call   <puts@plt>
  lea    D159(%rip),%rdi
  call   <puts@plt>
  add    $0x18,%rsp
  lea    D50(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <puts@plt>
L72:
  cmp    $0x8,%ebp
  jne    L127
  lea    D177(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D119(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  jmp    L14
L47:
  lea    D2(%rip),%rdi
  test   %ebp,%ebp
  jne    L127
  jmp    L46
```

tool_calls: name: parse_data
arguments: data_label: D172
type: string
name: parse_data
arguments: data_label: D139
type: string
name: parse_data
arguments: data_label: D26
type: string
name: parse_data
arguments: data_label: D34
type: string
name: parse_data
arguments: data_label: D11
type: string
name: parse_data
arguments: data_label: D167
type: string
name: parse_data
arguments: data_label: D123
type: string
name: parse_data
arguments: data_label: D133
type: string
name: parse_data
arguments: data_label: D25
type: string
name: parse_data
arguments: data_label: D6
type: string
name: parse_data
arguments: data_label: D62
type: string
name: parse_data
arguments: data_label: D142
type: string
name: parse_data
arguments: data_label: D145
type: string
name: parse_data
arguments: data_label: D159
type: string
name: parse_data
arguments: data_label: D50
type: string
name: parse_data
arguments: data_label: D177
type: string
name: parse_data
arguments: data_label: D119
type: string
name: parse_data
arguments: data_label: D2
type: string

tool: D172:     <td bgcolor="#%06X">

tool: D139: <a href="bmp/uni%X%X.bmp">%X%X</a>

tool: D26: </td>

tool: D34: <html>

tool: D11: <body>

tool: D167: <table border="3" align="center">

tool: D123:   <tr><th colspan="16" bgcolor="#ffcc80">

tool: D133: GNU Unifont Page Coverage<br>(Green=100%%, Red=0%%)</th></tr>


tool: D25:   <tr>

tool: D6:     <td align="center" colspan="9" bgcolor="#cccccc">

tool: D62: <b>Private Use</b>

tool: D142:   </tr>

tool: D145: </table>

tool: D159: </body>

tool: D50: </html>

tool: D177:     <td align="center" colspan="8" bgcolor="#cccccc">

tool: D119: <b>Surrogate Pairs</b>

tool: D2:     <td align="center" colspan="16" bgcolor="#cccccc">

assistant: ```c
void mkftable(int pagecount[256], int links) {
  int i, j;
  int count;
  unsigned bgcolor;
  printf("<html>\n");
  printf("<body>\n");
  printf("<table border=\"3\" align=\"center\">\n");
  printf("  <tr><th colspan=\"16\" bgcolor=\"#ffcc80\">");
  printf("GNU Unifont Page Coverage<br>(Green=100%%, Red=0%%)</th></tr>\n");
  for (i = 0x0; i <= 0xF; i++) {
    printf("  <tr>\n");
    for (j = 0x0; j <= 0xF; j++) {
      count = pagecount[(i << 4) | j];
      if (i < 0xd || (i == 0xd && j < 0x8) || (i == 0xf && j > 0x8)) {
        if (count == 0x100)
          bgcolor = 0xccffcc;
        else
          bgcolor = 0xff0000 | (count << 8) | (count >> 1);
        printf("    <td bgcolor=\"#%06X\">", bgcolor);
        printf("<a href=\"bmp/uni%X%X.bmp\">%X%X</a>", i, j, i, j);
        printf("</td>\n");
      } else if (i == 0xd) {
        if (j == 0x8) {
          printf("    <td align=\"center\" colspan=\"8\" bgcolor=\"#cccccc\">");
          printf("<b>Surrogate Pairs</b>");
          printf("</td>\n");
        }
      } else if (i == 0xe) {
        if (j == 0x0) {
          printf("    <td align=\"center\" colspan=\"16\" bgcolor=\"#cccccc\">");
          printf("<b>Private Use</b>");
          printf("</td>\n");
        }
      } else if (i == 0xf) {
        if (j == 0x0) {
          printf("    <td align=\"center\" colspan=\"9\" bgcolor=\"#cccccc\">");
          printf("<b>Private Use</b>");
          printf("</td>\n");
        }
      }
    }
    printf("  </tr>\n");
  }
  printf("</table>\n");
  printf("</body>\n");
  printf("</html>\n");
  return;
}
```