user: What is the c source code of the assembly code below?

```asm
<eval_literal_int>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L292
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L201
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x66,%eax
  cmp    $0x10,%eax
  ja     L33
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D15(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D15(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  movl   $0xa,-0x8(%rbp)
  jmp    L296
  movl   $0xd,-0x8(%rbp)
  jmp    L296
  movl   $0x9,-0x8(%rbp)
  jmp    L296
  movl   $0xc,-0x8(%rbp)
  jmp    L296
  movl   $0xb,-0x8(%rbp)
  jmp    L296
L33:
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L296
L201:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L296
L292:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L293
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L271
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L293
L271:
  movl   $0x2,-0x4(%rbp)
  jmp    L55
L15:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L281
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L281
  mov    -0x8(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x30,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L202
L281:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L145
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x46,%al
  jg     L145
  mov    -0x8(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x37,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L202
L145:
  mov    -0x8(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x57,%eax
  mov    %eax,-0x8(%rbp)
L202:
  addl   $0x1,-0x4(%rbp)
L55:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L15
  jmp    L296
L293:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L252
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x6f,%al
  je     L113
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x4f,%al
  jne    L252
L113:
  movl   $0x2,-0x4(%rbp)
  jmp    L194
L214:
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%ecx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x30,%eax
  mov    %eax,-0x8(%rbp)
  addl   $0x1,-0x4(%rbp)
L194:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L214
  jmp    L296
L252:
  movl   $0x0,-0x4(%rbp)
  jmp    L160
L42:
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x30,%eax
  mov    %eax,-0x8(%rbp)
  addl   $0x1,-0x4(%rbp)
L160:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L42
L296:
  mov    -0x8(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int eval_literal_int(char *str) {
  int val = 0;
  int i;
  if (str[0] == '\'') {
    if (str[1] == '\\') {
      switch (str[2]) {
      case 'n':
        val = '\n';
        break;
      case 'r':
        val = '\r';
        break;
      case 't':
        val = '\t';
        break;
      case 'f':
        val = '\f';
        break;
      case 'v':
        val = '\v';
        break;
      default:
        val = str[2];
      }
    } else {
      val = str[1];
    }
  } else if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) {
    i = 2;
    while (str[i]) {
      if (str[i] >= '0' && str[i] <= '9') {
        val = val * 16 + str[i] - '0';
      } else if (str[i] >= 'A' && str[i] <= 'F') {
        val = val * 16 + str[i] - 'A' + 10;
      } else {
        val = val * 16 + str[i] - 'a' + 10;
      }
      i++;
    }
  } else if (str[0] == '0' && (str[1] == 'o' || str[1] == 'O')) {
    i = 2;
    while (str[i]) {
      val = val * 8 + str[i] - '0';
      i++;
    }
  } else {
    i = 0;
    while (str[i]) {
      val = val * 10 + str[i] - '0';
      i++;
    }
  }
  return val;
}
```