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

```asm
<main>:
  endbr64
  push   %r15
  lea    D16(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <valid_isbn@plt>
  test   %rax,%rax
  je     L104
  lea    D29(%rip),%rdi
  xor    %r15d,%r15d
  xor    %r12d,%r12d
  call   <printf@plt>
  lea    D23(%rip),%r13
  jmp    L73
  nopw   0x0(%rax,%rax,1)
L72:
  add    $0x1,%r15
L73:
  mov    %rbx,%rdi
  mov    %r15d,%ebp
  call   <strlen@plt>
  cmp    %r15d,%eax
  jbe    L39
  cmpb   $0x2d,(%rbx,%r15,1)
  jne    L72
  mov    %ebp,%edx
  lea    0xa(%rsp),%r14
  sub    %r12d,%edx
  je     L98
  movslq %r12d,%rsi
  mov    %edx,%edx
  mov    %r14,%rdi
  add    %rbx,%rsi
  call   <memcpy@plt>
L98:
  mov    %r13,%rsi
  mov    %r14,%rdi
  lea    0x1(%rbp),%r12d
  call   <strcmp@plt>
  test   %eax,%eax
  je     L107
  lea    D86(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L42
  lea    D69(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L72
  lea    D74(%rip),%rdi
  call   <printf@plt>
  jmp    L72
L104:
  lea    D63(%rip),%rdi
  call   <printf@plt>
L39:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L52
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L107:
  lea    D65(%rip),%rdi
  call   <printf@plt>
  jmp    L72
L42:
  lea    D80(%rip),%rdi
  call   <printf@plt>
  jmp    L72
L52:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D16
type_guessed: string
name: read_data
arguments: data_label: D29
type_guessed: string
name: read_data
arguments: data_label: D23
type_guessed: string
name: read_data
arguments: data_label: D86
type_guessed: string
name: read_data
arguments: data_label: D69
type_guessed: string
name: read_data
arguments: data_label: D74
type_guessed: string
name: read_data
arguments: data_label: D63
type_guessed: string
name: read_data
arguments: data_label: D65
type_guessed: string
name: read_data
arguments: data_label: D80
type_guessed: string

tool: D16: %s

tool: D29: 1

tool: D23: 55583

tool: D86: 4210

tool: D69: 01

tool: D74: Pyramid Books

tool: D63: 0

tool: D65: Alyson Books

tool: D80: FUNimation Productions, Ltd.

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;
}
```