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

```asm
<main>:
  endbr64
  push   %r12
  lea    D76(%rip),%rdi
  push   %rbp
  push   %rbx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rbp
  mov    %rbp,%rsi
  call   <scanf@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    $0x11,%eax
  jne    L65
  lea    D77(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strtok@plt>
  test   %rax,%rax
  je     L119
  mov    %rsp,%rbx
  nopw   0x0(%rax,%rax,1)
L17:
  mov    %r12,%rsi
  xor    %edi,%edi
  mov    %rax,(%rbx)
  add    $0x8,%rbx
  call   <strtok@plt>
  test   %rax,%rax
  jne    L17
L119:
  mov    (%rsp),%r12
  lea    D63(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L33
  lea    D83(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L65
L33:
  mov    %rbp,%rdi
  call   <checkISBN@plt>
  mov    0x20(%rsp),%rdx
  movsbl %al,%eax
  movsbl (%rdx),%edx
  sub    $0x30,%edx
  cmp    %edx,%eax
  je     L22
L65:
  lea    D119(%rip),%rdi
  call   <printf@plt>
L99:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L135
  add    $0x50,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L22:
  lea    D36(%rip),%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%rbp
  lea    D20(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L25
  lea    D40(%rip),%rdi
  call   <printf@plt>
  jmp    L99
L25:
  lea    D52(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L141
  lea    D97(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L64
  lea    D32(%rip),%rdi
  call   <printf@plt>
  jmp    L99
L141:
  lea    D14(%rip),%rdi
  call   <printf@plt>
  jmp    L99
L64:
  lea    D121(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L99
  lea    D68(%rip),%rdi
  call   <printf@plt>
  jmp    L99
L135:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D76
type_guessed: string
name: disassemble_data
arguments: label: D77
type_guessed: string
name: disassemble_data
arguments: label: D63
type_guessed: string
name: disassemble_data
arguments: label: D83
type_guessed: string
name: disassemble_data
arguments: label: D119
type_guessed: string
name: disassemble_data
arguments: label: D36
type_guessed: string
name: disassemble_data
arguments: label: D20
type_guessed: string
name: disassemble_data
arguments: label: D40
type_guessed: string
name: disassemble_data
arguments: label: D52
type_guessed: string
name: disassemble_data
arguments: label: D97
type_guessed: string
name: disassemble_data
arguments: label: D32
type_guessed: string
name: disassemble_data
arguments: label: D14
type_guessed: string
name: disassemble_data
arguments: label: D121
type_guessed: string
name: disassemble_data
arguments: label: D68
type_guessed: string

tool: D76: %s

tool: D77: -

tool: D63: 978

tool: D83: 979

tool: D119: 0

tool: D36: 1

tool: D20: 933346

tool: D40: 
Bluebridge

tool: D52: 55583

tool: D97: 4210

tool: D32: 
FUNimation Productions, Ltd.

tool: D14: 
Alyson Books

tool: D121: 01

tool: D68: 
Pyramid Books

assistant: ```c
int main() {
  char code[20];
  char *code_elems[5];
  int i, l;
  char *element;
  scanf("%s", code);
  l = strlen(code);
  if (l != 17) {
    printf("0");
    return 0;
  }
  element = strtok(code, "-");
  for (i = 0; element != NULL; i++) {
    code_elems[i] = element;
    element = strtok(NULL, "-");
  }
  if ((strcmp(code_elems[0], "978") != 0) && (strcmp(code_elems[0], "979") != 0)) {
    printf("0");
    return 0;
  }
  if (checkISBN(code) == *code_elems[4] - '0') {
    printf("1");
    if (strcmp(code_elems[2], "933346") == 0) {
      printf("\nBluebridge");
    } else if (strcmp(code_elems[2], "55583") == 0) {
      printf("\nAlyson Books");
    } else if (strcmp(code_elems[2], "4210") == 0) {
      printf("\nFUNimation Productions, Ltd.");
    } else if (strcmp(code_elems[2], "01") == 0) {
      printf("\nPyramid Books");
    }
  } else {
    printf("0");
  }
  return 0;
}
```