user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rbx
  mov    %rbx,%rsi
  lea    D149(%rip),%rdi
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    $0x11,%eax
  je     L77
  lea    D162(%rip),%rdi
  call   <printf@plt>
L82:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L161
  mov    $0x0,%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  ret
L77:
  lea    0x30(%rsp),%rdi
  lea    D99(%rip),%rsi
  call   <strtok@plt>
  test   %rax,%rax
  je     L2
  mov    %rsp,%rbx
  lea    D99(%rip),%rbp
L11:
  mov    %rax,(%rbx)
  mov    %rbp,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  add    $0x8,%rbx
  test   %rax,%rax
  jne    L11
L2:
  mov    (%rsp),%rbx
  lea    D66(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L120
  lea    D138(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L105
L120:
  lea    0x30(%rsp),%rdi
  call   <checkISBN@plt>
  movsbl %al,%eax
  mov    0x20(%rsp),%rdx
  movsbl (%rdx),%edx
  sub    $0x30,%edx
  cmp    %edx,%eax
  je     L25
  lea    D162(%rip),%rdi
  call   <printf@plt>
  jmp    L82
L105:
  lea    D162(%rip),%rdi
  call   <printf@plt>
  jmp    L82
L25:
  lea    D23(%rip),%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%rbx
  lea    D151(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L154
  lea    D64(%rip),%rdi
  call   <printf@plt>
  jmp    L82
L154:
  lea    D132(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L23
  lea    D107(%rip),%rdi
  call   <printf@plt>
  jmp    L82
L23:
  lea    D121(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L108
  lea    D152(%rip),%rdi
  call   <printf@plt>
  jmp    L82
L108:
  lea    D159(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L82
  lea    D60(%rip),%rdi
  call   <printf@plt>
  jmp    L82
L161:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D149
type: string
name: read_data
arguments: data_label: D162
type: string
name: read_data
arguments: data_label: D99
type: string
name: read_data
arguments: data_label: D66
type: string
name: read_data
arguments: data_label: D138
type: string
name: read_data
arguments: data_label: D23
type: string
name: read_data
arguments: data_label: D151
type: string
name: read_data
arguments: data_label: D64
type: string
name: read_data
arguments: data_label: D132
type: string
name: read_data
arguments: data_label: D107
type: string
name: read_data
arguments: data_label: D121
type: string
name: read_data
arguments: data_label: D152
type: string
name: read_data
arguments: data_label: D159
type: string
name: read_data
arguments: data_label: D60
type: string

tool: D149: %s

tool: D162: 0

tool: D99: -

tool: D66: 978

tool: D138: 979

tool: D23: 1

tool: D151: 933346

tool: D64: 
Bluebridge

tool: D132: 55583

tool: D107: 
Alyson Books

tool: D121: 4210

tool: D152: 
FUNimation Productions, Ltd.

tool: D159: 01

tool: D60: 
Pyramid Books

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