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

```asm
<getdatatype>:
  endbr64
  push   %rbp
  lea    D230(%rip),%rsi
  mov    %rdi,%rbp
  call   <strstr@plt>
  mov    %rax,%r8
  mov    $0x7,%eax
  test   %r8,%r8
  jne    L230
  lea    D200(%rip),%rsi
  mov    %rbp,%rdi
  call   <strstr@plt>
  mov    %rax,%r8
  mov    $0x8,%eax
  test   %r8,%r8
  jne    L230
  mov    $0x25,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L235
  lea    0x1(%rax),%rbp
  jmp    L318
  nopl   0x0(%rax)
L145:
  add    $0x1,%rbp
L318:
  movsbl 0x0(%rbp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L145
  movsbl 0x0(%rbp),%edi
  cmp    $0x2e,%dil
  jne    L192
  movsbl 0x1(%rbp),%edi
  add    $0x1,%rbp
  call   <isdigit@plt>
  test   %rax,%rax
  je     L82
  cs nopw 0x0(%rax,%rax,1)
L346:
  movsbl 0x1(%rbp),%edi
  add    $0x1,%rbp
L192:
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L346
L82:
  movzbl 0x0(%rbp),%edx
  mov    $0x1,%eax
  cmp    $0x64,%dl
  je     L230
  sub    $0x58,%edx
  cmp    $0x20,%dl
  ja     L314
  movabs $0x120800801,%rcx
  bt     %rdx,%rcx
  jb     L230
L314:
  mov    $0x2,%edx
  lea    D215(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L31
  mov    $0x2,%edx
  lea    D158(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L31
  mov    $0x2,%edx
  lea    D183(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L31
  mov    $0x2,%edx
  lea    D162(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L31
  mov    $0x2,%edx
  lea    D191(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L31
  mov    $0x3,%edx
  lea    D188(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L7
  mov    $0x3,%edx
  lea    D6(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L7
  mov    $0x3,%edx
  lea    D255(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L7
  mov    $0x3,%edx
  lea    D178(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L7
  mov    $0x3,%edx
  lea    D82(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L7
  mov    $0x1,%edx
  lea    D207(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x1,%edx
  lea    D192(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x1,%edx
  lea    D121(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x2,%edx
  lea    D187(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x2,%edx
  lea    D72(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x2,%edx
  lea    D163(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x2,%edx
  lea    D51(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x2,%edx
  lea    D202(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L288
  mov    $0x3,%edx
  lea    D209(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L172
  mov    $0x3,%edx
  lea    D35(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L172
  mov    $0x3,%edx
  lea    D221(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L172
  mov    $0x3,%edx
  lea    D155(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L172
  mov    $0x3,%edx
  lea    D177(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L172
  mov    $0x1,%edx
  lea    D100(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L155
  mov    $0x2,%edx
  lea    D179(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L235
L155:
  mov    $0x6,%eax
L230:
  pop    %rbp
  ret
  nopl   0x0(%rax)
L235:
  xor    %eax,%eax
  pop    %rbp
  ret
  nopl   0x0(%rax)
L31:
  mov    $0x2,%eax
  pop    %rbp
  ret
L7:
  mov    $0x3,%eax
  pop    %rbp
  ret
L288:
  mov    $0x4,%eax
  pop    %rbp
  ret
L172:
  mov    $0x5,%eax
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D230
type_guessed: string
name: extract_symbolic_data
arguments: label: D200
type_guessed: string
name: extract_symbolic_data
arguments: label: D215
type_guessed: string
name: extract_symbolic_data
arguments: label: D158
type_guessed: string
name: extract_symbolic_data
arguments: label: D183
type_guessed: string
name: extract_symbolic_data
arguments: label: D162
type_guessed: string
name: extract_symbolic_data
arguments: label: D191
type_guessed: string
name: extract_symbolic_data
arguments: label: D188
type_guessed: string
name: extract_symbolic_data
arguments: label: D6
type_guessed: string
name: extract_symbolic_data
arguments: label: D255
type_guessed: string
name: extract_symbolic_data
arguments: label: D178
type_guessed: string
name: extract_symbolic_data
arguments: label: D82
type_guessed: string
name: extract_symbolic_data
arguments: label: D207
type_guessed: string
name: extract_symbolic_data
arguments: label: D192
type_guessed: string
name: extract_symbolic_data
arguments: label: D121
type_guessed: string
name: extract_symbolic_data
arguments: label: D187
type_guessed: string
name: extract_symbolic_data
arguments: label: D72
type_guessed: string
name: extract_symbolic_data
arguments: label: D163
type_guessed: string
name: extract_symbolic_data
arguments: label: D51
type_guessed: string
name: extract_symbolic_data
arguments: label: D202
type_guessed: string
name: extract_symbolic_data
arguments: label: D209
type_guessed: string
name: extract_symbolic_data
arguments: label: D35
type_guessed: string
name: extract_symbolic_data
arguments: label: D221
type_guessed: string
name: extract_symbolic_data
arguments: label: D155
type_guessed: string
name: extract_symbolic_data
arguments: label: D177
type_guessed: string
name: extract_symbolic_data
arguments: label: D100
type_guessed: string
name: extract_symbolic_data
arguments: label: D179
type_guessed: string

tool: D230: %p

tool: D200: %%

tool: D215: ld

tool: D158: lu

tool: D183: lo

tool: D162: lx

tool: D191: lX

tool: D188: lld

tool: D6: llu

tool: D255: llo

tool: D178: llx

tool: D82: llX

tool: D207: e

tool: D192: f

tool: D121: g

tool: D187: le

tool: D72: lE

tool: D163: lf

tool: D51: lg

tool: D202: lG

tool: D209: lle

tool: D35: llE

tool: D221: llf

tool: D155: llg

tool: D177: llG

tool: D100: s

tool: D179: ls

assistant: ```c
int getdatatype(char *partformat) {
  if (strstr(partformat, "%p"))
    return 7;
  if (strstr(partformat, "%%"))
    return 8;
  char *cp = partformat;
  cp = strchr(cp, '%');
  if (!cp)
    return 0;
  cp++;
  while (isdigit(*cp))
    cp++;
  if (*cp == '.')
    cp++;
  while (isdigit(*cp))
    cp++;
  if (*cp == 'd')
    return 1;
  if (*cp == 'u')
    return 1;
  if (*cp == 'c')
    return 1;
  if (*cp == 'o')
    return 1;
  if (*cp == 'x')
    return 1;
  if (*cp == 'X')
    return 1;
  if (strncmp(cp, "ld", 2) == 0)
    return 2;
  if (strncmp(cp, "lu", 2) == 0)
    return 2;
  if (strncmp(cp, "lo", 2) == 0)
    return 2;
  if (strncmp(cp, "lx", 2) == 0)
    return 2;
  if (strncmp(cp, "lX", 2) == 0)
    return 2;
  if (strncmp(cp, "lld", 3) == 0)
    return 3;
  if (strncmp(cp, "llu", 3) == 0)
    return 3;
  if (strncmp(cp, "llo", 3) == 0)
    return 3;
  if (strncmp(cp, "llx", 3) == 0)
    return 3;
  if (strncmp(cp, "llX", 3) == 0)
    return 3;
  if (strncmp(cp, "e", 1) == 0)
    return 4;
  if (strncmp(cp, "f", 1) == 0)
    return 4;
  if (strncmp(cp, "g", 1) == 0)
    return 4;
  if (strncmp(cp, "le", 2) == 0)
    return 4;
  if (strncmp(cp, "lE", 2) == 0)
    return 4;
  if (strncmp(cp, "lf", 2) == 0)
    return 4;
  if (strncmp(cp, "lg", 2) == 0)
    return 4;
  if (strncmp(cp, "lG", 2) == 0)
    return 4;
  if (strncmp(cp, "lle", 3) == 0)
    return 5;
  if (strncmp(cp, "llE", 3) == 0)
    return 5;
  if (strncmp(cp, "llf", 3) == 0)
    return 5;
  if (strncmp(cp, "llg", 3) == 0)
    return 5;
  if (strncmp(cp, "llG", 3) == 0)
    return 5;
  if (strncmp(cp, "s", 1) == 0)
    return 6;
  if (strncmp(cp, "ls", 2) == 0)
    return 6;
  return 0;
}
```