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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D0(%rip),%rdi
  mov    $0x1,%ebp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    0x50(%rsp),%rbx
  mov    %rbx,%rsi
  call   <scanf@plt>
  cmpb   $0x39,0x50(%rsp)
  je     L153
  xor    %ebp,%ebp
  cmpb   $0x37,0x51(%rsp)
  sete   %bpl
L153:
  mov    %rbx,%rdx
  lea    0x64(%rsp),%rsi
  xor    %ecx,%ecx
  nop
L15:
  movzbl (%rdx),%eax
  sub    $0x30,%eax
  cmp    $0x9,%al
  ja     L25
  movslq %ecx,%rdi
  movsbl %al,%eax
  add    $0x1,%ecx
  mov    %eax,(%rsp,%rdi,4)
L25:
  add    $0x1,%rdx
  cmp    %rsi,%rdx
  jne    L15
  movdqa (%rsp),%xmm1
  movq   0x28(%rsp),%xmm3
  xor    %esi,%esi
  cmp    $0xd,%ecx
  cmovne %esi,%ebp
  movdqa %xmm1,%xmm2
  shufps $0xdd,0x10(%rsp),%xmm2
  movdqa %xmm2,%xmm0
  shufps $0x88,0x10(%rsp),%xmm1
  pslld  $0x1,%xmm0
  paddd  %xmm2,%xmm0
  movq   0x20(%rsp),%xmm2
  paddd  %xmm1,%xmm0
  movdqa %xmm2,%xmm4
  movdqa %xmm0,%xmm1
  punpckldq %xmm3,%xmm2
  punpckldq %xmm3,%xmm4
  psrldq $0x8,%xmm1
  pshufd $0xe,%xmm4,%xmm4
  paddd  %xmm1,%xmm0
  movdqa %xmm4,%xmm1
  pslld  $0x1,%xmm1
  paddd  %xmm4,%xmm1
  paddd  %xmm2,%xmm1
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  paddd  %xmm2,%xmm0
  movd   %xmm1,%ecx
  pshufd $0xe5,%xmm1,%xmm5
  movd   %xmm5,%edx
  movd   %xmm0,%eax
  add    %ecx,%edx
  add    %edx,%eax
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x22,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %eax,%edx
  lea    0xa(%rdx),%eax
  cmove  %esi,%eax
  cmp    %eax,0x30(%rsp)
  je     L124
  lea    D66(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L173:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L113
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
L124:
  mov    %ebp,%esi
  xor    %eax,%eax
  lea    D66(%rip),%rdi
  call   <printf@plt>
  sub    $0x1,%ebp
  jne    L173
  cmpb   $0x39,0x56(%rsp)
  je     L143
L200:
  cmpb   $0x35,0x56(%rsp)
  jne    L172
  cmpb   $0x35,0x57(%rsp)
  jne    L173
  cmpb   $0x35,0x58(%rsp)
  jne    L173
  cmpb   $0x38,0x59(%rsp)
  jne    L173
  cmpb   $0x33,0x5a(%rsp)
  jne    L173
  lea    D54(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L172:
  cmpb   $0x34,0x56(%rsp)
  jne    L235
  cmpb   $0x32,0x57(%rsp)
  jne    L173
  cmpb   $0x31,0x58(%rsp)
  jne    L173
  cmpb   $0x30,0x59(%rsp)
  jne    L173
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L235
L143:
  cmpb   $0x33,0x57(%rsp)
  je     L121
L235:
  cmpb   $0x30,0x56(%rsp)
  jne    L173
  cmpb   $0x31,0x57(%rsp)
  jne    L173
  lea    D16(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L173
L121:
  cmpb   $0x33,0x58(%rsp)
  jne    L235
  cmpb   $0x33,0x59(%rsp)
  jne    L235
  cmpb   $0x34,0x5a(%rsp)
  jne    L235
  cmpb   $0x36,0x5b(%rsp)
  jne    L235
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L200
L113:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D0
type_guessed: string
name: read_data
arguments: data_tag: D66
type_guessed: string
name: read_data
arguments: data_tag: D54
type_guessed: string
name: read_data
arguments: data_tag: D3
type_guessed: string
name: read_data
arguments: data_tag: D16
type_guessed: string
name: read_data
arguments: data_tag: D32
type_guessed: string

tool: D0: %s

tool: D66: %d

tool: D54: 
Alyson Books

tool: D3: 
FUNimation Productions, Ltd.

tool: D16: 
Pyramid Books

tool: D32: 
Bluebridge

assistant: ```c
int main() {
  int numbers[20];
  int i, j = 0, count = 0, checkdigit = 0, flag = 1;
  char ISBN[20];
  scanf("%s", ISBN);
  if (ISBN[0] != '9' && ISBN[1] != '7' && ISBN[2] != '8')
    flag = 0;
  if (ISBN[0] != '9' && ISBN[1] != '7' && ISBN[2] != '9')
    flag = 0;
  for (i = 0; i < 20; i++) {
    if (ISBN[i] >= '0' && ISBN[i] <= '9') {
      numbers[j] = (ISBN[i] - 48);
      count++;
      j++;
    }
  }
  if (count != 13)
    flag = 0;
  for (i = 0; i < 12; i = i + 2) {
    if (i == 12)
      checkdigit = checkdigit + numbers[i];
    else
      checkdigit = checkdigit + numbers[i] + numbers[i + 1] * 3;
  }
  checkdigit = checkdigit % 10;
  checkdigit = 10 - checkdigit;
  if (checkdigit == 10)
    checkdigit = 0;
  if (numbers[12] != checkdigit)
    flag = 0;
  printf("%d", flag);
  if (flag == 1) {
    if (ISBN[6] == '9' && ISBN[7] == '3' && ISBN[8] == '3' && ISBN[9] == '3' && ISBN[10] == '4' && ISBN[11] == '6')
      printf("\nBluebridge");
    if (ISBN[6] == '5' && ISBN[7] == '5' && ISBN[8] == '5' && ISBN[9] == '8' && ISBN[10] == '3')
      printf("\nAlyson Books");
    if (ISBN[6] == '4' && ISBN[7] == '2' && ISBN[8] == '1' && ISBN[9] == '0')
      printf("\nFUNimation Productions, Ltd.");
    if (ISBN[6] == '0' && ISBN[7] == '1')
      printf("\nPyramid Books");
  }
  return 0;
}
```