user: Translate the below assembly code into C programming language:

```asm
<bitmapxpm>:
  endbr64
  push   %r15
  mov    %r8d,%eax
  lea    D67(%rip),%r15
  push   %r14
  lea    D43(%rip),%r14
  push   %r13
  push   %r12
  mov    $0xff,%r12d
  push   %rbp
  mov    $0x31,%ebp
  push   %rbx
  mov    %rsi,%rbx
  lea    D52(%rip),%rsi
  sub    $0x28,%rsp
  mov    %edi,(%rsp)
  mov    %rbx,%rdi
  mov    %rdx,0x8(%rsp)
  mov    %ecx,%edx
  mov    %ecx,0x14(%rsp)
  mov    %eax,%ecx
  xor    %eax,%eax
  mov    %r8d,0x1c(%rsp)
  mov    $0x30,%r8d
  call   <fprintf@plt>
  jmp    L38
  nop
L32:
  mov    $0x102,%edx
  sub    %r12d,%edx
  cmp    $0x34,%ebp
  jle    L95
  mov    %r14,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D0(%rip),%rdi
  call   <fwrite@plt>
  cmp    $0x6c,%ebp
  jg     L113
L121:
  mov    %r12d,%edx
  lea    D1(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  add    $0x1,%ebp
  sub    $0x4,%r12d
  cmp    $0x71,%ebp
  je     L134
L38:
  mov    %ebp,%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    (%rsp),%edx
  test   %edx,%edx
  jne    L32
  mov    $0x3,%r13d
  cmp    $0x6c,%ebp
  jg     L107
L153:
  xor    %eax,%eax
  mov    %r12d,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  sub    $0x1,%r13d
  jne    L153
L18:
  mov    %rbx,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  add    $0x1,%ebp
  lea    D20(%rip),%rdi
  sub    $0x4,%r12d
  call   <fwrite@plt>
  cmp    $0x71,%ebp
  jne    L38
L134:
  mov    %rbx,%rcx
  mov    $0xd,%edx
  mov    $0x1,%esi
  lea    D31(%rip),%rdi
  call   <fwrite@plt>
  movslq 0x1c(%rsp),%rax
  test   %eax,%eax
  jle    L130
  mov    %rax,(%rsp)
  lea    -0x1(%rax),%r14d
  mov    0x14(%rsp),%eax
  xor    %ebp,%ebp
  mov    0x8(%rsp),%rcx
  lea    D20(%rip),%r15
  sub    $0x1,%eax
  lea    0x8(%rcx,%rax,8),%r12
  nopl   0x0(%rax,%rax,1)
L93:
  mov    %rbx,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  mov    0x14(%rsp),%eax
  mov    0x8(%rsp),%r13
  test   %eax,%eax
  jle    L87
  nopw   0x0(%rax,%rax,1)
L145:
  mov    0x0(%r13),%rax
  mov    %rbx,%rsi
  add    $0x8,%r13
  movsbl (%rax,%rbp,1),%edi
  call   <fputc@plt>
  cmp    %r13,%r12
  jne    L145
L87:
  cmp    %ebp,%r14d
  je     L156
  mov    %rbx,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  mov    %r15,%rdi
  call   <fwrite@plt>
L96:
  add    $0x1,%rbp
  cmp    %rbp,(%rsp)
  jne    L93
L130:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L107:
  mov    %rbx,%rsi
  mov    $0x30,%edi
  call   <fputc@plt>
  xor    %eax,%eax
  mov    %r12d,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  sub    $0x1,%r13d
  jne    L107
  jmp    L18
  nopl   0x0(%rax,%rax,1)
L113:
  mov    %rbx,%rsi
  mov    $0x30,%edi
  call   <fputc@plt>
  jmp    L121
  nopw   0x0(%rax,%rax,1)
L95:
  mov    %rbx,%rsi
  mov    $0x30,%edi
  mov    %edx,0x18(%rsp)
  call   <fputc@plt>
  mov    0x18(%rsp),%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D0(%rip),%rdi
  call   <fwrite@plt>
  jmp    L121
  nopl   0x0(%rax,%rax,1)
L156:
  mov    %rbx,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D50(%rip),%rdi
  call   <fwrite@plt>
  jmp    L96
```

tool_calls: name: extract_symbolic_data
arguments: label: D67
datatype: string
name: extract_symbolic_data
arguments: label: D43
datatype: string
name: extract_symbolic_data
arguments: label: D52
datatype: string
name: extract_symbolic_data
arguments: label: D0
datatype: string
name: extract_symbolic_data
arguments: label: D1
datatype: string
name: extract_symbolic_data
arguments: label: D20
datatype: string
name: extract_symbolic_data
arguments: label: D31
datatype: string
name: extract_symbolic_data
arguments: label: D50
datatype: string

tool: D67: "%c	c #

tool: D43: %x

tool: D52: /* XPM */
static char * bitmap [] = {
/* size height ncolors cpp [x_hot y_hot] */
"%d %d 65 1 0 0",
/* colours */
"%c	c #ffffff",


tool: D0: 00

tool: D1: %x",


tool: D20: ",


tool: D31: /* pixels */


tool: D50: "};


assistant: ```c
void bitmapxpm(int cl, FILE *fp, char **bitmap, int lx, int ly) {
  int i, j, x, y, r;
  fprintf(fp,
          "/* XPM */\n"
          "static char * bitmap [] = {\n"
          "/* size height ncolors cpp [x_hot y_hot] */\n"
          "\"%d %d 65 1 0 0\",\n"
          "/* colours */\n"
          "\"%c\tc #ffffff\",\n",
          lx, ly, 48);
  for (i = 49; i <= 112; i++) {
    fprintf(fp, "\"%c\tc #", i);
    if (cl) {
      if (i <= 52)
        fprintf(fp, "0");
      fprintf(fp, "%x", 4 * (i - 49) + 3);
      fprintf(fp, "00");
      if (i >= 109)
        fprintf(fp, "0");
      fprintf(fp, "%x\",\n", 4 * (112 - i) + 3);
    } else {
      for (j = 0; j < 3; j++) {
        if (i >= 109)
          fprintf(fp, "0");
        fprintf(fp, "%x", 4 * (112 - i) + 3);
      }
      fprintf(fp, "\",\n");
    }
  }
  fprintf(fp, "/* pixels */\n");
  for (i = 0; i < ly; i++) {
    fprintf(fp, "\"");
    for (j = 0; j < lx; j++)
      fprintf(fp, "%c", bitmap[j][i]);
    if (i == ly - 1)
      fprintf(fp, "\"};\n");
    else
      fprintf(fp, "\",\n");
  }
}
```