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

```asm
<make_window8>:
  endbr64
  push   %r15
  mov    %r8d,%eax
  push   %r14
  lea    -0x1(%rsi),%r14d
  push   %r13
  mov    %r14d,%r9d
  mov    %esi,%r13d
  push   %r12
  push   %rbp
  mov    %edx,%ebp
  mov    $0x8,%edx
  push   %rbx
  mov    %rdi,%rbx
  lea    -0x2(%rbp),%r15d
  sub    $0x30,%rsp
  neg    %al
  sbb    %r11d,%r11d
  mov    %rcx,0x18(%rsp)
  add    $0x8,%r11d
  cmp    $0x1,%r8b
  mov    %r11d,0x24(%rsp)
  sbb    %r12d,%r12d
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  push   $0x0
  xor    %eax,%eax
  and    $0x3,%r12d
  add    $0xc,%r12d
  call   <boxfill8@plt>
  lea    -0x2(%r13),%r10d
  mov    %rbx,%rdi
  mov    %r13d,%esi
  mov    %r10d,%r9d
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  xor    %eax,%eax
  mov    $0x7,%edx
  mov    %r10d,0x28(%rsp)
  movl   $0x1,(%rsp)
  call   <boxfill8@plt>
  lea    -0x1(%rbp),%eax
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  mov    %eax,(%rsp)
  xor    %ecx,%ecx
  mov    %rbx,%rdi
  mov    $0x8,%edx
  mov    %eax,0x1c(%rsp)
  mov    %r13d,%esi
  xor    %eax,%eax
  sub    $0x3,%ebp
  call   <boxfill8@plt>
  mov    %rbx,%rdi
  mov    $0x1,%r9d
  xor    %eax,%eax
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x7,%edx
  mov    %r13d,%esi
  mov    %r15d,(%rsp)
  call   <boxfill8@plt>
  mov    0x28(%rsp),%r10d
  mov    %rbx,%rdi
  mov    %r13d,%esi
  mov    $0x1,%r8d
  mov    $0xf,%edx
  xor    %eax,%eax
  mov    %r15d,(%rsp)
  mov    %r10d,%r9d
  mov    %r10d,%ecx
  call   <boxfill8@plt>
  mov    0x1c(%rsp),%eax
  xor    %r8d,%r8d
  xor    %edx,%edx
  mov    %rbx,%rdi
  mov    %r14d,%r9d
  mov    %r14d,%ecx
  mov    %r13d,%esi
  mov    %eax,(%rsp)
  xor    %eax,%eax
  call   <boxfill8@plt>
  mov    %rbx,%rdi
  lea    -0x3(%r13),%r9d
  mov    %r13d,%esi
  mov    $0x2,%r8d
  mov    $0x2,%ecx
  xor    %eax,%eax
  mov    %ebp,(%rsp)
  mov    $0x8,%edx
  call   <boxfill8@plt>
  mov    %rbx,%rdi
  lea    -0x4(%r13),%r9d
  mov    %r12d,%edx
  mov    $0x3,%r8d
  mov    $0x3,%ecx
  mov    %r13d,%esi
  xor    %eax,%eax
  movl   $0x14,(%rsp)
  call   <boxfill8@plt>
  mov    0x28(%rsp),%r9d
  mov    %rbx,%rdi
  mov    %r15d,%r8d
  mov    $0x1,%ecx
  mov    $0xf,%edx
  mov    %r13d,%esi
  xor    %eax,%eax
  mov    %r15d,(%rsp)
  call   <boxfill8@plt>
  mov    0x1c(%rsp),%eax
  mov    %rbx,%rdi
  mov    %r14d,%r9d
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    %r13d,%esi
  mov    %eax,(%rsp)
  mov    %eax,%r8d
  xor    %eax,%eax
  call   <boxfill8@plt>
  mov    0x20(%rsp),%r9
  mov    %rbx,%rdi
  mov    %r13d,%esi
  mov    0x2c(%rsp),%r8d
  mov    $0x4,%ecx
  mov    $0x18,%edx
  xor    %eax,%eax
  call   <putfonts8_asc@plt>
  lea    0x0(%r13,%r13,4),%ecx
  movslq %r13d,%rdx
  pop    %rsi
  movslq %ecx,%rcx
  lea    D49(%rip),%rax
  pcmpeqd %xmm4,%xmm4
  pop    %rdi
  lea    -0x15(%rdx,%rcx,1),%rcx
  movdqa D62(%rip),%xmm7
  movdqa D34(%rip),%xmm9
  pxor   %xmm3,%xmm3
  movdqa D45(%rip),%xmm8
  movdqa D51(%rip),%xmm2
  add    %rcx,%rbx
  lea    0xe0(%rax),%rcx
  movdqa D53(%rip),%xmm6
  movdqa D37(%rip),%xmm5
  nopw   0x0(%rax,%rax,1)
L2:
  movdqa (%rax),%xmm0
  add    $0x10,%rax
  movdqa %xmm0,%xmm10
  movdqa %xmm0,%xmm1
  pcmpeqb %xmm9,%xmm10
  pcmpeqb %xmm7,%xmm0
  pcmpeqb %xmm8,%xmm1
  movdqa %xmm10,%xmm12
  movdqa %xmm0,%xmm11
  pandn  %xmm2,%xmm10
  pcmpeqb %xmm3,%xmm0
  por    %xmm1,%xmm12
  pxor   %xmm4,%xmm12
  pand   %xmm12,%xmm11
  pand   %xmm12,%xmm0
  movdqa %xmm2,%xmm12
  pand   %xmm1,%xmm12
  pandn  %xmm10,%xmm1
  movdqa %xmm5,%xmm10
  por    %xmm12,%xmm1
  movdqa %xmm6,%xmm12
  pand   %xmm11,%xmm10
  pand   %xmm0,%xmm12
  pandn  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  movdqa %xmm11,%xmm0
  por    %xmm12,%xmm1
  pandn  %xmm1,%xmm0
  por    %xmm10,%xmm0
  movups %xmm0,(%rbx)
  add    %rdx,%rbx
  cmp    %rcx,%rax
  jne    L2
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: tag: D62
type_guessed: byte[16]
name: parse_data
arguments: tag: D34
type_guessed: byte[16]
name: parse_data
arguments: tag: D45
type_guessed: byte[16]
name: parse_data
arguments: tag: D51
type_guessed: byte[16]
name: parse_data
arguments: tag: D53
type_guessed: byte[16]
name: parse_data
arguments: tag: D37
type_guessed: byte[16]

tool: {"D62": [0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51]}

tool: {"D34": [0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40]}

tool: {"D45": [0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24]}

tool: {"D51": [0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f]}

tool: {"D53": [0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07]}

tool: {"D37": [0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08]}

assistant: ```c
void make_window8(unsigned char *buf, int xsize, int ysize, char *title, char act) {
  static char closebtn[14][16] = {"OOOOOOOOOOOOOOO@", "OQQQQQQQQQQQQQ$@", "OQQQQQQQQQQQQQ$@", "OQQQ@@QQQQ@@QQ$@", "OQQQQ@@QQ@@QQQ$@", "OQQQQQ@@@@QQQQ$@", "OQQQQQQ@@QQQQQ$@", "OQQQQQ@@@@QQQQ$@", "OQQQQ@@QQ@@QQQ$@", "OQQQ@@QQQQ@@QQ$@", "OQQQQQQQQQQQQQ$@", "OQQQQQQQQQQQQQ$@", "O$$$$$$$$$$$$$$@", "@@@@@@@@@@@@@@@@"};
  int x, y;
  char c, tc, tbc;
  if (act != 0) {
    tc = 7;
    tbc = 12;
  } else {
    tc = 8;
    tbc = 15;
  }
  boxfill8(buf, xsize, 8, 0, 0, xsize - 1, 0);
  boxfill8(buf, xsize, 7, 1, 1, xsize - 2, 1);
  boxfill8(buf, xsize, 8, 0, 0, 0, ysize - 1);
  boxfill8(buf, xsize, 7, 1, 1, 1, ysize - 2);
  boxfill8(buf, xsize, 15, xsize - 2, 1, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, xsize - 1, 0, xsize - 1, ysize - 1);
  boxfill8(buf, xsize, 8, 2, 2, xsize - 3, ysize - 3);
  boxfill8(buf, xsize, tbc, 3, 3, xsize - 4, 20);
  boxfill8(buf, xsize, 15, 1, ysize - 2, xsize - 2, ysize - 2);
  boxfill8(buf, xsize, 0, 0, ysize - 1, xsize - 1, ysize - 1);
  putfonts8_asc(buf, xsize, 24, 4, tc, title);
  for (y = 0; y < 14; y++) {
    for (x = 0; x < 16; x++) {
      c = closebtn[y][x];
      if (c == '@') {
        c = 0;
      } else if (c == '$') {
        c = 15;
      } else if (c == 'Q') {
        c = 8;
      } else {
        c = 7;
      }
      buf[(5 + y) * xsize + (xsize - 21 + x)] = c;
    }
  }
  return;
}
```