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

```asm
<bitmapxpm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,-0x18(%rbp)
  mov    %r8d,-0x2c(%rbp)
  mov    -0x2c(%rbp),%ecx
  mov    -0x18(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    $0x30,%r8d
  lea    D92(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  movl   $0x31,-0x8(%rbp)
  jmp    L146
L140:
  mov    -0x8(%rbp),%edx
  mov    -0x20(%rbp),%rax
  lea    D63(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  cmpl   $0x0,-0x14(%rbp)
  je     L138
  cmpl   $0x34,-0x8(%rbp)
  jg     L33
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x30,%edi
  call   <fputc@plt>
L33:
  mov    -0x8(%rbp),%eax
  sub    $0x31,%eax
  shl    $0x2,%eax
  lea    0x3(%rax),%edx
  mov    -0x20(%rbp),%rax
  lea    D61(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  cmpl   $0x6c,-0x8(%rbp)
  jle    L65
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x30,%edi
  call   <fputc@plt>
L65:
  mov    $0x70,%eax
  sub    -0x8(%rbp),%eax
  shl    $0x2,%eax
  lea    0x3(%rax),%edx
  mov    -0x20(%rbp),%rax
  lea    D16(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  jmp    L136
L138:
  movl   $0x0,-0x4(%rbp)
  jmp    L42
L75:
  cmpl   $0x6c,-0x8(%rbp)
  jle    L34
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x30,%edi
  call   <fputc@plt>
L34:
  mov    $0x70,%eax
  sub    -0x8(%rbp),%eax
  shl    $0x2,%eax
  lea    0x3(%rax),%edx
  mov    -0x20(%rbp),%rax
  lea    D61(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0x4(%rbp)
L42:
  cmpl   $0x2,-0x4(%rbp)
  jle    L75
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L136:
  addl   $0x1,-0x8(%rbp)
L146:
  cmpl   $0x70,-0x8(%rbp)
  jle    L140
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0xd,%edx
  mov    $0x1,%esi
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  movl   $0x0,-0x8(%rbp)
  jmp    L16
L106:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  movl   $0x0,-0x4(%rbp)
  jmp    L19
L130:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
  addl   $0x1,-0x4(%rbp)
L19:
  mov    -0x4(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L130
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x8(%rbp)
  jne    L41
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L81
L41:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L81:
  addl   $0x1,-0x8(%rbp)
L16:
  mov    -0x8(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L106
  nop
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D92
type: string
name: parse_data
arguments: data_label: D63
type: string
name: parse_data
arguments: data_label: D61
type: string
name: parse_data
arguments: data_label: D50
type: string
name: parse_data
arguments: data_label: D16
type: string
name: parse_data
arguments: data_label: D56
type: string
name: parse_data
arguments: data_label: D72
type: string
name: parse_data
arguments: data_label: D8
type: string

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


tool: D63: "%c	c #

tool: D61: %x

tool: D50: 00

tool: D16: %x",


tool: D56: ",


tool: D72: /* pixels */


tool: D8: "};


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");
  }
}
```