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

```asm
<get_entry>:
  endbr64
  push   %r12
  lea    D7(%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)
L131:
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  je     L273
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L259
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L259
L199:
  lea    -0x61(%rbx),%eax
  cmp    $0x19,%eax
  ja     L94
L259:
  cmp    $0x3,%ebp
  jle    L35
L94:
  cmp    $0xd,%ebx
  jne    L131
  mov    $0xa,%edi
  call   <putchar@plt>
  test   %ebp,%ebp
  je     L260
  movzbl 0x4(%rsp),%edx
  or     $0x20,%edx
  movsbl %dl,%edx
  lea    -0x30(%rdx),%ecx
  lea    -0x57(%rdx),%eax
  cmp    $0x39,%edx
  cmovle %ecx,%eax
  cmp    $0x1,%ebp
  je     L270
  movzbl 0x5(%rsp),%edx
  shl    $0x4,%eax
  or     $0x20,%edx
  movsbl %dl,%edx
  cmp    $0x39,%edx
  lea    -0x30(%rdx),%esi
  lea    -0x57(%rdx),%ecx
  cmovg  %ecx,%esi
  add    %esi,%eax
  cmp    $0x2,%ebp
  je     L270
  movzbl 0x6(%rsp),%edx
  shl    $0x4,%eax
  or     $0x20,%edx
  movsbl %dl,%edx
  cmp    $0x39,%edx
  lea    -0x30(%rdx),%esi
  lea    -0x57(%rdx),%ecx
  cmovg  %ecx,%esi
  add    %esi,%eax
  cmp    $0x3,%ebp
  je     L270
  movzbl 0x7(%rsp),%edx
  shl    $0x4,%eax
  or     $0x20,%edx
  movsbl %dl,%edx
  cmp    $0x3a,%edx
  lea    -0x57(%rdx),%esi
  lea    -0x30(%rdx),%ecx
  cmovl  %ecx,%esi
  add    %esi,%eax
L270:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L267
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L273:
  test   %ebp,%ebp
  je     L78
  mov    %r12,%rdi
  sub    $0x1,%ebp
  call   <puts@plt>
  jmp    L131
  nopl   0x0(%rax)
L112:
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  jne    L87
  nopw   0x0(%rax,%rax,1)
L78:
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  je     L112
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L226
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L226
  lea    -0x61(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L35
  cmp    $0xd,%ebx
  je     L169
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%ebx
  cmp    $0x8,%eax
  je     L78
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L35
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  ja     L199
  nopl   (%rax)
L35:
  movslq %ebp,%rax
  add    $0x1,%ebp
L103:
  movsbl %bl,%edi
  mov    %bl,0x4(%rsp,%rax,1)
  call   <putchar@plt>
  jmp    L94
  nopw   0x0(%rax,%rax,1)
L226:
  xor    %eax,%eax
  mov    $0x1,%ebp
  jmp    L103
  nopl   0x0(%rax)
L87:
  lea    -0x30(%rax),%eax
  cmp    $0x9,%eax
  jbe    L35
  lea    -0x41(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L35
  lea    -0x61(%rbx),%eax
  cmp    $0x19,%eax
  jbe    L35
  jmp    L94
L169:
  mov    $0xa,%edi
  call   <putchar@plt>
L260:
  mov    $0xf04,%eax
  jmp    L270
L267:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D7
data_type: string

tool: D7:  

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;
}
```