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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x34(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <valid_isbn@plt>
  test   %rax,%rax
  je     L8
  lea    D93(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0x30(%rbp)
  jmp    L112
L144:
  mov    -0x30(%rbp),%eax
  movzbl -0x20(%rbp,%rax,1),%eax
  cmp    $0x2d,%al
  jne    L77
  movl   $0x0,-0x2c(%rbp)
  jmp    L17
L60:
  mov    -0x34(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%edx
  mov    -0x2c(%rbp),%eax
  cltq
  mov    %dl,-0x26(%rbp,%rax,1)
  addl   $0x1,-0x2c(%rbp)
L17:
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  cmp    %eax,%edx
  ja     L60
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  lea    -0x26(%rbp),%rax
  lea    D87(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L147
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L77
L147:
  lea    -0x26(%rbp),%rax
  lea    D26(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L106
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L77
L106:
  lea    -0x26(%rbp),%rax
  lea    D48(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L0
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L77
L0:
  lea    -0x26(%rbp),%rax
  lea    D47(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L77
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L77:
  addl   $0x1,-0x30(%rbp)
L112:
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x30(%rbp)
  jb     L144
  jmp    L107
L8:
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L107:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L100
  call   <__stack_chk_fail@plt>
L100:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D64
type: string
name: disassemble_data
arguments: data_tag: D93
type: string
name: disassemble_data
arguments: data_tag: D87
type: string
name: disassemble_data
arguments: data_tag: D72
type: string
name: disassemble_data
arguments: data_tag: D26
type: string
name: disassemble_data
arguments: data_tag: D14
type: string
name: disassemble_data
arguments: data_tag: D48
type: string
name: disassemble_data
arguments: data_tag: D8
type: string
name: disassemble_data
arguments: data_tag: D47
type: string
name: disassemble_data
arguments: data_tag: D68
type: string
name: disassemble_data
arguments: data_tag: D80
type: string

tool: D64: %s

tool: D93: 1

tool: D87: 933346

tool: D72: Bluebridge

tool: D26: 55583

tool: D14: Alyson Books

tool: D48: 4210

tool: D8: FUNimation Productions, Ltd.

tool: D47: 01

tool: D68: Pyramid Books

tool: D80: 0

assistant: ```c
int main() {
  char isbnnum[20];
  char check[6];
  int last = 0;
  scanf("%s", isbnnum);
  if (valid_isbn(isbnnum)) {
    printf("1");
    for (unsigned int i = 0; i < strlen(isbnnum); i++) {
      if (isbnnum[i] == '-') {
        for (int k = 0; k < i - last; k++) {
          check[k] = isbnnum[last + k];
        }
        last = i + 1;
        if (!strcmp(check, "933346")) {
          printf("Bluebridge");
        } else if (!strcmp(check, "55583")) {
          printf("Alyson Books");
        } else if (!strcmp(check, "4210")) {
          printf("FUNimation Productions, Ltd.");
        } else if (!strcmp(check, "01")) {
          printf("Pyramid Books");
        }
      }
    }
  } else {
    printf("0");
  }
  return 0;
}
```