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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    $0x80a0,%ebp
  push   %rbx
  sub    $0x18,%rsp
L89:
  lea    -0xa0(%rbp),%ebx
  nopl   (%rax)
L83:
  xor    %edx,%edx
  mov    %ebx,%esi
  mov    $0xb000,%edi
  add    $0x1,%ebx
  call   <putInMemory@plt>
  xor    %edx,%edx
  mov    %ebx,%esi
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  cmp    %ebx,%ebp
  jne    L83
  add    $0xa0,%ebp
  cmp    $0x9040,%ebp
  jne    L89
  movl   $0x8000,0xc(%rsp)
  xor    %r15d,%r15d
L143:
  mov    0xc(%rsp),%ebp
  cmp    $0x14,%r15d
  mov    %r15d,%r13d
  setle  %r14b
  xor    %ebx,%ebx
  and    $0x1,%r13d
  lea    0x1(%rbp),%r12d
  jmp    L160
  nopw   0x0(%rax,%rax,1)
L135:
  add    $0x1,%ebx
  add    $0x1,%ebp
  add    $0x1,%r12d
  cmp    $0xa0,%ebx
  je     L49
L160:
  lea    -0x1e(%rbx),%eax
  cmp    $0x5f,%eax
  jbe    L99
  test   %r14b,%r14b
  jne    L138
L99:
  cmp    $0x14,%r15d
  jle    L135
  mov    %ebx,%eax
  and    $0x3,%eax
  or     %r13d,%eax
  je     L76
  test   $0x7,%bl
  jne    L135
L76:
  mov    %ebp,%esi
  mov    $0x212,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  mov    $0x71,%edx
  mov    %r12d,%esi
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  jmp    L135
L49:
  add    $0x1,%r15d
  addl   $0xa0,0xc(%rsp)
  cmp    $0x19,%r15d
  jne    L143
  mov    $0x8046,%r13d
  lea    D7(%rip),%r12
L59:
  mov    %r13d,%ebp
  xor    %ebx,%ebx
  mov    $0x48,%edx
  jmp    L66
  nopl   0x0(%rax)
L69:
  movsbl (%r12,%rbx,1),%edx
L66:
  mov    %ebp,%esi
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  lea    0x3(%rbx),%edx
  lea    0x1(%rbp),%esi
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  add    $0x1,%rbx
  add    $0x2,%ebp
  cmp    $0xc,%rbx
  jne    L69
  add    $0xa0,%r13d
  cmp    $0x8a46,%r13d
  jne    L59
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L138:
  mov    %ebx,%eax
  and    $0x3,%eax
  or     %r13d,%eax
  je     L119
  test   $0x7,%bl
  jne    L135
L119:
  mov    %ebp,%esi
  mov    $0x212,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  mov    $0x74,%edx
  mov    %r12d,%esi
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  jmp    L135
```

tool_calls: name: unpack_data
arguments: data_tag: D7
datatype: string

tool: D7: Hello World!

assistant: ```c
void main() {
  int RMVA = 160;
  int memVideoAddr = 0x8000;
  int x, y, i;
  char *text = "Hello World!";
  for (y = 0; y < 25; y = y + 1) {
    for (x = 0; x < RMVA; x = x + 1) {
      putInMemory(0xB000, memVideoAddr + (x) + (y * RMVA), 0x00);
      putInMemory(0xB000, memVideoAddr + (x + 1) + (y * RMVA), 0x0);
    }
  }
  for (y = 0; y < 25; y = y + 1) {
    for (x = 0; x < RMVA; x = x + 1) {
      if ((x < 30 || x > 125) && y < 21)
        if ((x % 4 == 0) && (y % 2 == 0)) {
          putInMemory(0xB000, memVideoAddr + (x) + (y * RMVA), 0x212);
          putInMemory(0xB000, memVideoAddr + (x + 1) + (y * RMVA), 0x74);
        } else if ((x % 8 == 0)) {
          putInMemory(0xB000, memVideoAddr + (x) + (y * RMVA), 0x212);
          putInMemory(0xB000, memVideoAddr + (x + 1) + (y * RMVA), 0x74);
        }
      if (y >= 21)
        if ((x % 4 == 0) && (y % 2 == 0)) {
          putInMemory(0xB000, memVideoAddr + (x) + (y * RMVA), 0x212);
          putInMemory(0xB000, memVideoAddr + (x + 1) + (y * RMVA), 0x71);
        } else if ((x % 8 == 0)) {
          putInMemory(0xB000, memVideoAddr + (x) + (y * RMVA), 0x212);
          putInMemory(0xB000, memVideoAddr + (x + 1) + (y * RMVA), 0x71);
        }
    }
  }
  for (x = 0; x < 16; x = x + 1) {
    for (i = 0; i < 12; i = i + 1) {
      putInMemory(0xB000, memVideoAddr + 70 + (x * RMVA), text[i]);
      putInMemory(0xB000, memVideoAddr + 71 + (x * RMVA), i + 3);
      memVideoAddr += 2;
    }
    memVideoAddr -= (12 * 2);
  }
}
```