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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    $0xe,%esi
  mov    $0x3d4,%edi
  call   <port_byte_out@plt>
  mov    $0x3d5,%edi
  call   <port_byte_in@plt>
  mov    %eax,-0x10(%rbp)
  shll   $0x8,-0x10(%rbp)
  mov    $0xf,%esi
  mov    $0x3d4,%edi
  call   <port_byte_out@plt>
  mov    $0x3d5,%edi
  call   <port_byte_in@plt>
  add    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0xc(%rbp)
  movq   $0xb8000,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x48,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0xf,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x41,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0xf,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x53,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0xf,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x47,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0xf,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x45,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0xf,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x45,(%rax)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0xf,(%rax)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x4b,(%rax)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0xf,(%rax)
  nop
  leave
  ret
```

assistant: ```c
void main() {
  port_byte_out(0x3d4, 14);
  int position = port_byte_in(0x3d5);
  position = position << 8;
  port_byte_out(0x3d4, 15);
  position += port_byte_in(0x3d5);
  int offset_from_vga = position * 2;
  char *vga = (char *)0xb8000;
  vga[offset_from_vga] = 'H';
  vga[offset_from_vga++] = 0x0f;
  vga[offset_from_vga++] = 'A';
  vga[offset_from_vga++] = 0x0f;
  vga[offset_from_vga++] = 'S';
  vga[offset_from_vga++] = 0x0f;
  vga[offset_from_vga++] = 'G';
  vga[offset_from_vga++] = 0x0f;
  vga[offset_from_vga++] = 'E';
  vga[offset_from_vga++] = 0x0f;
  vga[offset_from_vga++] = 'E';
  vga[offset_from_vga + 1] = 0x0f;
  vga[offset_from_vga++] = 'K';
  vga[offset_from_vga + 1] = 0x0f;
}
```