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

```asm
<get_entry>:
  endbr64
  push   %r12
  lea    D1(%rip),%r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  nopl   (%rax)
L190:
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  je     L33
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L239
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L239
L210:
  lea    -0x61(%rbx),%eax
  cmp    $0x19,%eax
  ja     L241
L239:
  cmp    $0x3,%ebp
  jle    L150
L241:
  cmp    $0xd,%ebx
  jne    L190
  mov    $0xa,%edi
  call   <putchar@plt>
  test   %ebp,%ebp
  je     L121
  lea    -0x1(%rbp),%eax
  lea    0x4(%rsp),%rcx
  lea    0x5(%rsp,%rax,1),%r8
  xor    %eax,%eax
L195:
  movzbl (%rcx),%edx
  shl    $0x4,%eax
  or     $0x20,%edx
  movsbl %dl,%edx
  cmp    $0x3a,%edx
  lea    -0x57(%rdx),%edi
  lea    -0x30(%rdx),%esi
  cmovl  %esi,%edi
  add    $0x1,%rcx
  add    %edi,%eax
  cmp    %r8,%rcx
  jne    L195
L218:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L149
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L33:
  test   %ebp,%ebp
  je     L130
  mov    %r12,%rdi
  sub    $0x1,%ebp
  call   <puts@plt>
  jmp    L190
  nopl   0x0(%rax)
L161:
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  jne    L71
  nopw   0x0(%rax,%rax,1)
L130:
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  je     L161
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L220
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L220
  lea    -0x61(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L150
  cmp    $0xd,%ebx
  je     L226
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  je     L130
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L150
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  ja     L210
  nopl   (%rax)
L150:
  movslq %ebp,%rax
  add    $0x1,%ebp
L131:
  movsbl %bl,%edi
  mov    %bl,0x4(%rsp,%rax,1)
  call   <putchar@plt>
  jmp    L241
  nop
L220:
  xor    %eax,%eax
  mov    $0x1,%ebp
  jmp    L131
  nopl   0x0(%rax)
L71:
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L150
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L150
  lea    -0x61(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L150
  jmp    L241
L226:
  mov    $0xa,%edi
  call   <putchar@plt>
L121:
  mov    $0xf04,%eax
  jmp    L218
L149:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D1
data_type: string

tool: D1:  

assistant: ```c
unsigned int get_entry(void) {
  char entry_buf[4];
  int i, len = 0;
  int key;
  unsigned int v;
  do {
    key = getchar();
    if (key == '\b') {
      if (len > 0) {
        puts("\b \b");
        len--;
      }
    } else if ((key >= '0' && key <= '9') || (key >= 'A' && key <= 'Z') || (key >= 'a' && key <= 'z')) {
      if (len < sizeof entry_buf) {
        entry_buf[len++] = key;
        putchar(key);
      }
    }
  } while (key != '\r');
  putchar('\n');
  if (len == 0)
    return 0x0f04;
  v = 0;
  for (i = 0; i < len; i++) {
    v <<= 4;
    key = entry_buf[i] | 0x20;
    v += (key > '9') ? key - 'a' + 10 : key - '0';
  }
  return v;
}
```