user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x80a0,%ebp
L40:
  lea    -0xa0(%rbp),%ebx
L4:
  mov    $0x0,%edx
  mov    %ebx,%esi
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  add    $0x1,%ebx
  mov    $0x0,%edx
  mov    %ebx,%esi
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  cmp    %ebp,%ebx
  jne    L4
  add    $0xa0,%ebp
  cmp    $0x9040,%ebp
  jne    L40
  mov    $0x0,%r14d
  mov    $0x0,%ebp
  jmp    L82
L68:
  test   $0x7,%bl
  jne    L117
  lea    0x8000(%rbx,%r14,1),%esi
  mov    $0x212,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  lea    0x8001(%rbx,%r14,1),%esi
  mov    $0x74,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  jmp    L117
L160:
  cmp    $0x14,%ebp
  jg     L145
L117:
  add    $0x1,%ebx
  cmp    $0xa0,%ebx
  je     L92
L41:
  mov    %ebx,%r12d
  lea    -0x1e(%rbx),%eax
  cmp    $0x5f,%eax
  jbe    L160
  cmp    $0x14,%ebp
  jg     L160
  mov    %ebx,%eax
  and    $0x3,%eax
  or     %r13d,%eax
  jne    L68
  lea    0x8000(%rbx,%r14,1),%esi
  mov    $0x212,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  lea    0x8001(%rbx,%r14,1),%esi
  mov    $0x74,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  jmp    L117
L145:
  mov    %r12d,%eax
  and    $0x3,%eax
  or     %r13d,%eax
  je     L126
  test   $0x7,%r12b
  jne    L117
  lea    0x8000(%r12,%r14,1),%esi
  mov    $0x212,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  lea    0x8001(%r12,%r14,1),%esi
  mov    $0x71,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  jmp    L117
L126:
  lea    0x8000(%r12,%r14,1),%esi
  mov    $0x212,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  lea    0x8001(%r12,%r14,1),%esi
  mov    $0x71,%edx
  mov    $0xb000,%edi
  call   <putInMemory@plt>
  jmp    L117
L92:
  add    $0x1,%ebp
  add    $0xa0,%r14d
  cmp    $0x19,%ebp
  je     L134
L82:
  mov    $0x0,%ebx
  mov    %ebp,%r13d
  and    $0x1,%r13d
  jmp    L41
L46:
  add    $0xa0,%r13d
  cmp    $0x8a46,%r13d
  je     L57
L16:
  mov    %r13d,%ebp
  mov    $0x0,%ebx
L78:
  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    L78
  jmp    L46
L134:
  mov    $0x8046,%r13d
  lea    D5(%rip),%r12
  jmp    L16
L57:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D5
type: string

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