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
L11:
  lea    -0xa0(%rbp),%ebx
  nopl   (%rax)
L53:
  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    %ebp,%ebx
  jne    L53
  lea    0xa0(%rbx),%ebp
  cmp    $0x8fa0,%ebx
  jne    L11
  movl   $0x8000,0xc(%rsp)
  xor    %r15d,%r15d
L159:
  mov    0xc(%rsp),%ebp
  cmp    $0x14,%r15d
  mov    %r15d,%r13d
  setle  %r14b
  xor    %ebx,%ebx
  and    $0x1,%r13d
  lea    0x1(%rbp),%r12d
  jmp    L16
  nopw   0x0(%rax,%rax,1)
L106:
  add    $0x1,%ebx
  add    $0x1,%ebp
  add    $0x1,%r12d
  cmp    $0xa0,%ebx
  je     L23
L16:
  lea    -0x1e(%rbx),%eax
  cmp    $0x5f,%eax
  jbe    L128
  test   %r14b,%r14b
  jne    L56
L128:
  cmp    $0x14,%r15d
  jle    L106
  mov    %ebx,%eax
  and    $0x3,%eax
  or     %r13d,%eax
  je     L88
  test   $0x7,%bl
  jne    L106
L88:
  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    L106
L23:
  add    $0x1,%r15d
  addl   $0xa0,0xc(%rsp)
  cmp    $0x19,%r15d
  jne    L159
  mov    $0x8046,%r13d
  lea    D9(%rip),%r12
L100:
  mov    %r13d,%ebp
  xor    %ebx,%ebx
  nopl   (%rax)
L36:
  movsbl (%r12,%rbx,1),%edx
  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    L36
  add    $0xa0,%r13d
  cmp    $0x8a46,%r13d
  jne    L100
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L56:
  mov    %ebx,%eax
  and    $0x3,%eax
  or     %r13d,%eax
  je     L18
  test   $0x7,%bl
  jne    L106
L18:
  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    L106
```

tool_calls: name: retrieve_data
arguments: tag: D9
type_guessed: string

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