user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r12
  lea    D56(%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    L134
  lea    D1(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strtok@plt>
  test   %rax,%rax
  je     L19
  mov    %rsp,%rbx
  nopw   0x0(%rax,%rax,1)
L32:
  mov    %r12,%rsi
  xor    %edi,%edi
  mov    %rax,(%rbx)
  add    $0x8,%rbx
  call   <strtok@plt>
  test   %rax,%rax
  jne    L32
L19:
  mov    (%rsp),%r12
  lea    D75(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L144
  lea    D87(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L134
L144:
  mov    %rbp,%rdi
  call   <checkISBN@plt>
  mov    0x20(%rsp),%rdx
  movsbl %al,%eax
  movsbl (%rdx),%edx
  sub    $0x30,%edx
  cmp    %edx,%eax
  je     L17
L134:
  lea    D117(%rip),%rdi
  call   <printf@plt>
L116:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L43
  add    $0x50,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L17:
  lea    D58(%rip),%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%rbp
  lea    D129(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L131
  lea    D29(%rip),%rdi
  call   <printf@plt>
  jmp    L116
L131:
  lea    D81(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L63
  lea    D112(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L72
  lea    D57(%rip),%rdi
  call   <printf@plt>
  jmp    L116
L63:
  lea    D65(%rip),%rdi
  call   <printf@plt>
  jmp    L116
L72:
  lea    D135(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L116
  lea    D90(%rip),%rdi
  call   <printf@plt>
  jmp    L116
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D56
data_type: string
name: unpack_data
arguments: label: D1
data_type: string
name: unpack_data
arguments: label: D75
data_type: string
name: unpack_data
arguments: label: D87
data_type: string
name: unpack_data
arguments: label: D117
data_type: string
name: unpack_data
arguments: label: D58
data_type: string
name: unpack_data
arguments: label: D129
data_type: string
name: unpack_data
arguments: label: D29
data_type: string
name: unpack_data
arguments: label: D81
data_type: string
name: unpack_data
arguments: label: D112
data_type: string
name: unpack_data
arguments: label: D57
data_type: string
name: unpack_data
arguments: label: D65
data_type: string
name: unpack_data
arguments: label: D135
data_type: string
name: unpack_data
arguments: label: D90
data_type: string

tool: D56: %s

tool: D1: -

tool: D75: 978

tool: D87: 979

tool: D117: 0

tool: D58: 1

tool: D129: 933346

tool: D29: 
Bluebridge

tool: D81: 55583

tool: D112: 4210

tool: D57: 
FUNimation Productions, Ltd.

tool: D65: 
Alyson Books

tool: D135: 01

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