user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<getdatatype>:
  endbr64
  push   %rbp
  lea    D189(%rip),%rsi
  mov    %rdi,%rbp
  call   <strstr@plt>
  mov    %rax,%r8
  mov    $0x7,%eax
  test   %r8,%r8
  jne    L59
  lea    D180(%rip),%rsi
  mov    %rbp,%rdi
  call   <strstr@plt>
  mov    %rax,%r8
  mov    $0x8,%eax
  test   %r8,%r8
  jne    L59
  mov    $0x25,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L116
  lea    0x1(%rax),%rbp
  jmp    L259
  nopl   0x0(%rax)
L164:
  add    $0x1,%rbp
L259:
  movsbl 0x0(%rbp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L164
  xor    %eax,%eax
  cmpb   $0x2e,0x0(%rbp)
  sete   %al
  add    %rax,%rbp
  jmp    L252
  nopl   0x0(%rax,%rax,1)
L287:
  add    $0x1,%rbp
L252:
  movsbl 0x0(%rbp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L287
  movzbl 0x0(%rbp),%edx
  mov    $0x1,%eax
  cmp    $0x64,%dl
  je     L59
  sub    $0x58,%edx
  cmp    $0x20,%dl
  ja     L131
  movabs $0x120800801,%rcx
  bt     %rdx,%rcx
  jb     L59
L131:
  mov    $0x2,%edx
  lea    D202(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L159
  mov    $0x2,%edx
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L159
  mov    $0x2,%edx
  lea    D24(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L159
  mov    $0x2,%edx
  lea    D31(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L159
  mov    $0x2,%edx
  lea    D112(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L159
  mov    $0x3,%edx
  lea    D104(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L114
  mov    $0x3,%edx
  lea    D73(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L114
  mov    $0x3,%edx
  lea    D183(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L114
  mov    $0x3,%edx
  lea    D135(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L114
  mov    $0x3,%edx
  lea    D17(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L114
  mov    $0x1,%edx
  lea    D65(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x1,%edx
  lea    D111(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x1,%edx
  lea    D186(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x2,%edx
  lea    D158(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x2,%edx
  lea    D167(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x2,%edx
  lea    D97(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x2,%edx
  lea    D35(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x2,%edx
  lea    D253(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L291
  mov    $0x3,%edx
  lea    D61(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L322
  mov    $0x3,%edx
  lea    D80(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L322
  mov    $0x3,%edx
  lea    D6(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L322
  mov    $0x3,%edx
  lea    D54(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L322
  mov    $0x3,%edx
  lea    D236(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L322
  mov    $0x1,%edx
  lea    D125(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L212
  mov    $0x2,%edx
  lea    D195(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0x6,%eax
L59:
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L116:
  xor    %eax,%eax
  pop    %rbp
  ret
  nopl   0x0(%rax)
L159:
  mov    $0x2,%eax
  pop    %rbp
  ret
L114:
  mov    $0x3,%eax
  pop    %rbp
  ret
L291:
  mov    $0x4,%eax
  pop    %rbp
  ret
L212:
  mov    $0x6,%eax
  pop    %rbp
  ret
L322:
  mov    $0x5,%eax
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D189
data_type: string
name: extract_symbolic_data
arguments: label: D180
data_type: string
name: extract_symbolic_data
arguments: label: D202
data_type: string
name: extract_symbolic_data
arguments: label: D53
data_type: string
name: extract_symbolic_data
arguments: label: D24
data_type: string
name: extract_symbolic_data
arguments: label: D31
data_type: string
name: extract_symbolic_data
arguments: label: D112
data_type: string
name: extract_symbolic_data
arguments: label: D104
data_type: string
name: extract_symbolic_data
arguments: label: D73
data_type: string
name: extract_symbolic_data
arguments: label: D183
data_type: string
name: extract_symbolic_data
arguments: label: D135
data_type: string
name: extract_symbolic_data
arguments: label: D17
data_type: string
name: extract_symbolic_data
arguments: label: D65
data_type: string
name: extract_symbolic_data
arguments: label: D111
data_type: string
name: extract_symbolic_data
arguments: label: D186
data_type: string
name: extract_symbolic_data
arguments: label: D158
data_type: string
name: extract_symbolic_data
arguments: label: D167
data_type: string
name: extract_symbolic_data
arguments: label: D97
data_type: string
name: extract_symbolic_data
arguments: label: D35
data_type: string
name: extract_symbolic_data
arguments: label: D253
data_type: string
name: extract_symbolic_data
arguments: label: D61
data_type: string
name: extract_symbolic_data
arguments: label: D80
data_type: string
name: extract_symbolic_data
arguments: label: D6
data_type: string
name: extract_symbolic_data
arguments: label: D54
data_type: string
name: extract_symbolic_data
arguments: label: D236
data_type: string
name: extract_symbolic_data
arguments: label: D125
data_type: string
name: extract_symbolic_data
arguments: label: D195
data_type: string

tool: D189: %p

tool: D180: %%

tool: D202: ld

tool: D53: lu

tool: D24: lo

tool: D31: lx

tool: D112: lX

tool: D104: lld

tool: D73: llu

tool: D183: llo

tool: D135: llx

tool: D17: llX

tool: D65: e

tool: D111: f

tool: D186: g

tool: D158: le

tool: D167: lE

tool: D97: lf

tool: D35: lg

tool: D253: lG

tool: D61: lle

tool: D80: llE

tool: D6: llf

tool: D54: llg

tool: D236: llG

tool: D125: s

tool: D195: 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;
}
```