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

```asm
<print_array>:
  endbr64
  push   %r15
  push   %r14
  mov    %r8d,%r14d
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  mov    %rsi,%rbp
  mov    $0x2f,%esi
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  call   <strrchr@plt>
  test   %rax,%rax
  mov    %rax,%rsi
  cmove  %rbx,%rsi
  cmpb   $0x2e,(%rsi)
  jne    L32
L8:
  add    $0x1,%rsi
  cmpb   $0x2e,(%rsi)
  je     L8
L32:
  mov    %rsp,%r15
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    $0x2e,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L68
  movb   $0x0,(%rax)
L68:
  mov    %r14d,%edx
  mov    %r12d,%esi
  lea    D38(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r13d,%edx
  mov    %r15,%rsi
  lea    D26(%rip),%rdi
  call   <printf@plt>
  test   %r13d,%r13d
  jle    L84
  movzbl 0x0(%rbp),%esi
  add    $0x1,%rbp
  xor    %ebx,%ebx
  xor    %r12d,%r12d
  lea    D35(%rip),%r15
  lea    D29(%rip),%r14
  cmp    $0x3f,%sil
  ja     L113
  nopl   0x0(%rax,%rax,1)
L88:
  cmp    $0x7,%sil
  jbe    L117
  mov    %esi,%edx
  shr    $0x3,%sil
  mov    %r14,%rdi
  xor    %eax,%eax
  and    $0x7,%edx
  movzbl %sil,%esi
  add    $0x3,%ebx
  call   <printf@plt>
L120:
  add    $0x1,%r12d
  cmp    %r13d,%r12d
  jl     L63
  cmp    $0x4a,%ebx
  jle    L84
  mov    $0xa,%edi
  call   <putchar@plt>
  nopl   0x0(%rax)
L84:
  lea    D8(%rip),%rdi
  call   <puts@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L63:
  mov    $0x2c,%edi
  add    $0x1,%ebx
  call   <putchar@plt>
  cmp    $0x4a,%ebx
  jg     L101
L85:
  movzbl 0x0(%rbp),%esi
  add    $0x1,%rbp
  cmp    $0x3f,%sil
  jbe    L88
L113:
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%ebx
  call   <printf@plt>
  jmp    L120
  nopw   0x0(%rax,%rax,1)
L117:
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  jmp    L120
L17:
  call   <__stack_chk_fail@plt>
L101:
  mov    $0xa,%edi
  xor    %ebx,%ebx
  call   <putchar@plt>
  jmp    L85
```

tool_calls: name: read_data
arguments: data_tag: D38
data_type: string
name: read_data
arguments: data_tag: D26
data_type: string
name: read_data
arguments: data_tag: D35
data_type: string
name: read_data
arguments: data_tag: D29
data_type: string
name: read_data
arguments: data_tag: D8
data_type: string
name: read_data
arguments: data_tag: D3
data_type: string

tool: D38: /* SIZE %ux%u */


tool: D26: static const unsigned char %s[ %d ] =
{


tool: D35: %d

tool: D29: 0%d%d

tool: D8: 
};

tool: D3: 0x%X

assistant: ```c
void print_array(const char *name, unsigned char *data, int bytes, unsigned int width, unsigned int height) {
  char buffer[128];
  char *ptr;
  int i, j;
  ptr = strrchr(name, '/');
  if (ptr)
    name = ptr;
  while (*name == '.')
    ++name;
  strcpy(buffer, name);
  ptr = strchr(buffer, '.');
  if (ptr)
    *ptr = '\0';
  printf("/* SIZE %ux%u */\n", width, height);
  printf("static const unsigned char %s[ %d ] =\n{\n", buffer, bytes);
  for (j = 0, i = 0; i < bytes; ++i, ++data) {
    if (*data > 077) {
      printf("0x%X", *data);
      j += 4;
    } else if (*data > 007) {
      printf("0%d%d", ((*data) >> 3 & 007), (*data) & 007);
      j += 3;
    } else {
      printf("%d", *data);
      j += 1;
    }
    if ((i + 1) < bytes) {
      putchar(',');
      ++j;
    }
    if ((j + 5) >= 80) {
      j = 0;
      putchar('\n');
    }
  }
  printf("\n};\n");
}
```