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

```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    L29
L87:
  add    $0x1,%rsi
  cmpb   $0x2e,(%rsi)
  je     L87
L29:
  mov    %rsp,%r15
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    $0x2e,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L63
  movb   $0x0,(%rax)
L63:
  mov    %r14d,%edx
  mov    %r12d,%esi
  lea    D4(%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    L66
  movzbl 0x0(%rbp),%esi
  add    $0x1,%rbp
  xor    %ebx,%ebx
  xor    %r12d,%r12d
  lea    D32(%rip),%r15
  lea    D34(%rip),%r14
  cmp    $0x3f,%sil
  ja     L37
  nopl   0x0(%rax,%rax,1)
L62:
  cmp    $0x7,%sil
  jbe    L20
  mov    %esi,%edx
  shr    $0x3,%sil
  mov    %r14,%rdi
  xor    %eax,%eax
  and    $0x7,%edx
  movzbl %sil,%esi
  add    $0x3,%ebx
  call   <printf@plt>
L133:
  add    $0x1,%r12d
  cmp    %r13d,%r12d
  jl     L28
  cmp    $0x4a,%ebx
  jle    L66
  mov    $0xa,%edi
  call   <putchar@plt>
  nopl   0x0(%rax)
L66:
  lea    D0(%rip),%rdi
  call   <puts@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L108
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L28:
  mov    $0x2c,%edi
  add    $0x1,%ebx
  call   <putchar@plt>
  cmp    $0x4a,%ebx
  jg     L83
L73:
  movzbl 0x0(%rbp),%esi
  add    $0x1,%rbp
  cmp    $0x3f,%sil
  jbe    L62
L37:
  lea    D53(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%ebx
  call   <printf@plt>
  jmp    L133
  nopw   0x0(%rax,%rax,1)
L20:
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  jmp    L133
L108:
  call   <__stack_chk_fail@plt>
L83:
  mov    $0xa,%edi
  xor    %ebx,%ebx
  call   <putchar@plt>
  jmp    L73
```

tool_calls: name: unpack_data
arguments: data_label: D4
type: string
name: unpack_data
arguments: data_label: D26
type: string
name: unpack_data
arguments: data_label: D32
type: string
name: unpack_data
arguments: data_label: D34
type: string
name: unpack_data
arguments: data_label: D0
type: string
name: unpack_data
arguments: data_label: D53
type: string

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


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


tool: D32: %d

tool: D34: 0%d%d

tool: D0: 
};

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