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

```asm
<lookup>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x68(%rbp),%rax
  mov    $0x2e,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,-0x50(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x54(%rbp)
  mov    -0x54(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ecx
  mov    $0x0,%edx
  div    %rcx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L83:
  cmp    %rdx,%rsp
  je     L6
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L83
L6:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L118
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L118:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L16
L49:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    -0x40(%rbp),%rcx
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  mov    %al,(%rcx,%rdx,1)
  addl   $0x1,-0x58(%rbp)
L16:
  mov    -0x58(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L49
  mov    -0x40(%rbp),%rdx
  mov    -0x54(%rbp),%eax
  cltq
  movb   $0x0,(%rdx,%rax,1)
  mov    -0x40(%rbp),%rax
  lea    D130(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L101
  lea    D142(%rip),%rax
  jmp    L125
L101:
  mov    -0x40(%rbp),%rax
  lea    D128(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L212
  lea    D60(%rip),%rax
  jmp    L125
L212:
  mov    -0x40(%rbp),%rax
  lea    D49(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L54
  lea    D44(%rip),%rax
  jmp    L125
L54:
  mov    -0x40(%rbp),%rax
  lea    D54(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L202
  lea    D5(%rip),%rax
  jmp    L125
L202:
  mov    -0x40(%rbp),%rax
  lea    D140(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L20
  lea    D27(%rip),%rax
  jmp    L125
L20:
  mov    -0x40(%rbp),%rax
  lea    D67(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L70
  lea    D53(%rip),%rax
  jmp    L125
L70:
  mov    -0x40(%rbp),%rax
  lea    D28(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L154
  lea    D114(%rip),%rax
  jmp    L125
L154:
  mov    -0x40(%rbp),%rax
  lea    D87(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L26
  lea    D121(%rip),%rax
  jmp    L125
L26:
  mov    $0x0,%eax
L125:
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L128
  call   <__stack_chk_fail@plt>
L128:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D130
type_infered: string
name: extract_symbolic_data
arguments: data_label: D142
type_infered: string
name: extract_symbolic_data
arguments: data_label: D128
type_infered: string
name: extract_symbolic_data
arguments: data_label: D60
type_infered: string
name: extract_symbolic_data
arguments: data_label: D49
type_infered: string
name: extract_symbolic_data
arguments: data_label: D44
type_infered: string
name: extract_symbolic_data
arguments: data_label: D54
type_infered: string
name: extract_symbolic_data
arguments: data_label: D5
type_infered: string
name: extract_symbolic_data
arguments: data_label: D140
type_infered: string
name: extract_symbolic_data
arguments: data_label: D27
type_infered: string
name: extract_symbolic_data
arguments: data_label: D67
type_infered: string
name: extract_symbolic_data
arguments: data_label: D53
type_infered: string
name: extract_symbolic_data
arguments: data_label: D28
type_infered: string
name: extract_symbolic_data
arguments: data_label: D114
type_infered: string
name: extract_symbolic_data
arguments: data_label: D87
type_infered: string
name: extract_symbolic_data
arguments: data_label: D121
type_infered: string

tool: D130: .css

tool: D142: text/css

tool: D128: .html

tool: D60: text/html

tool: D49: .gif

tool: D44: image/gif

tool: D54: .ico

tool: D5: image/x-icon

tool: D140: .jpg

tool: D27: image/jpeg

tool: D67: .js

tool: D53: text/javascript

tool: D28: .php

tool: D114: text/x-php

tool: D87: .png

tool: D121: image/png

assistant: ```c
const char *lookup(const char *path) {
  char *suffixPtr = strrchr(path, '.');
  int suffixLength = strlen(suffixPtr);
  char suffix[suffixLength + 1];
  for (int i = 0; i < suffixLength; i++) {
    suffix[i] = tolower(suffixPtr[i]);
  }
  suffix[suffixLength] = '\0';
  if (strcmp(suffix, ".css") == 0)
    return "text/css";
  else if (strcmp(suffix, ".html") == 0)
    return "text/html";
  else if (strcmp(suffix, ".gif") == 0)
    return "image/gif";
  else if (strcmp(suffix, ".ico") == 0)
    return "image/x-icon";
  else if (strcmp(suffix, ".jpg") == 0)
    return "image/jpeg";
  else if (strcmp(suffix, ".js") == 0)
    return "text/javascript";
  else if (strcmp(suffix, ".php") == 0)
    return "text/x-php";
  else if (strcmp(suffix, ".png") == 0)
    return "image/png";
  else
    return NULL;
}
```