user: Demonstrate the C code that generates the assembly output below:

```asm
<get_token_name>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  test   %rdi,%rdi
  je     L83
  mov    %rdi,%rbp
  xor    %ebx,%ebx
  jmp    L20
  nopl   0x0(%rax)
L35:
  add    $0x1,%rbx
  cmpb   $0x2c,-0x1(%rbp,%rbx,1)
  je     L143
L20:
  mov    %rbp,%rdi
  mov    %ebx,%r12d
  mov    %ebx,%r13d
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L35
L143:
  mov    %r13d,%edi
  lea    -0x1(%r13),%ebx
  call   <malloc@plt>
  mov    %rax,%r14
  test   %r13d,%r13d
  je     L120
  lea    0x2(%rbp),%rcx
  mov    %r14,%rdx
  lea    -0x1(%r12),%eax
  sub    %rcx,%rdx
  cmp    $0xe,%rdx
  jbe    L72
  cmp    $0x6,%eax
  jbe    L72
  cmp    $0xe,%eax
  jbe    L134
  mov    %r12d,%eax
  mov    %rbp,%rdx
  shr    $0x4,%eax
  sub    %r14,%rdx
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%r14,%rax,1),%rcx
  mov    %r14,%rax
  nopl   0x0(%rax,%rax,1)
L46:
  movdqu 0x1(%rax,%rdx,1),%xmm0
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L46
  mov    %r12d,%edx
  and    $0xfffffff0,%edx
  mov    %edx,%eax
  cmp    %r12d,%edx
  je     L120
  sub    %edx,%r12d
  lea    -0x1(%r12),%ecx
  cmp    $0x6,%ecx
  jbe    L31
L74:
  mov    0x1(%rbp,%rdx,1),%rcx
  mov    %rcx,(%r14,%rdx,1)
  mov    %r12d,%edx
  and    $0xfffffff8,%edx
  add    %edx,%eax
  cmp    %r12d,%edx
  je     L120
L31:
  lea    0x1(%rax),%edx
  movslq %eax,%rsi
  movslq %edx,%rcx
  movzbl 0x0(%rbp,%rcx,1),%edi
  mov    %dil,(%r14,%rsi,1)
  cmp    %r13d,%edx
  jge    L120
  lea    0x2(%rax),%edx
  movslq %edx,%rsi
  movzbl 0x0(%rbp,%rsi,1),%edi
  mov    %dil,(%r14,%rcx,1)
  cmp    %edx,%r13d
  jle    L120
  lea    0x3(%rax),%edx
  movslq %edx,%rcx
  movzbl 0x0(%rbp,%rcx,1),%edi
  mov    %dil,(%r14,%rsi,1)
  cmp    %edx,%r13d
  jle    L120
  lea    0x4(%rax),%edx
  movslq %edx,%rsi
  movzbl 0x0(%rbp,%rsi,1),%edi
  mov    %dil,(%r14,%rcx,1)
  cmp    %edx,%r13d
  jle    L120
  lea    0x5(%rax),%edx
  movslq %edx,%rcx
  movzbl 0x0(%rbp,%rcx,1),%edi
  mov    %dil,(%r14,%rsi,1)
  cmp    %edx,%r13d
  jle    L120
  lea    0x6(%rax),%edx
  movslq %edx,%rsi
  movzbl 0x0(%rbp,%rsi,1),%edi
  mov    %dil,(%r14,%rcx,1)
  cmp    %edx,%r13d
  jle    L120
  add    $0x7,%eax
  cltq
  movzbl 0x0(%rbp,%rax,1),%eax
  mov    %al,(%r14,%rsi,1)
L120:
  movslq %ebx,%rbx
  mov    %r14,%rdi
  movb   $0x0,(%r14,%rbx,1)
  call   <atoi@plt>
  mov    %r14,%rdi
  mov    %eax,%r12d
  call   <free@plt>
L161:
  pop    %rbx
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L72:
  lea    0x1(%r14,%rax,1),%rcx
  sub    %r14,%rbp
  mov    %r14,%rax
  nopl   0x0(%rax,%rax,1)
L45:
  movzbl 0x1(%rbp,%rax,1),%edx
  add    $0x1,%rax
  mov    %dl,-0x1(%rax)
  cmp    %rcx,%rax
  jne    L45
  jmp    L120
L134:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L74
L83:
  mov    $0xffffffff,%r12d
  jmp    L161
```

assistant: ```c
int get_token_name(char *lexeme) {
  if (lexeme == NULL) {
    return -1;
  }
  int start = 1;
  int end = 0;
  int i = 0;
  while (end < strlen(lexeme)) {
    if (lexeme[end] == ',') {
      break;
    }
    end++;
  }
  char *tmp = (char *)malloc(sizeof(char) * (end - start) + 1);
  int j;
  for (j = 0; j < (end - start + 1); j++) {
    tmp[j] = lexeme[start + j];
  }
  tmp[(end - start)] = '\0';
  int x = atoi(tmp);
  free(tmp);
  return x;
}
```