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

```asm
<main>:
  endbr64
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    0x50(%rsp),%rsi
  lea    D98(%rip),%rdi
  call   <scanf@plt>
  cmpb   $0x39,0x50(%rsp)
  jne    L170
  cmpb   $0x37,0x51(%rsp)
  je     L233
L170:
  lea    D33(%rip),%rdi
  call   <printf@plt>
L216:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L111
  mov    $0x0,%eax
  add    $0x78,%rsp
  ret
L233:
  movzbl 0x52(%rsp),%eax
  sub    $0x38,%eax
  cmp    $0x1,%al
  ja     L23
  lea    0x50(%rsp),%rdx
  lea    0x64(%rsp),%r8
  mov    $0x0,%edi
  mov    $0x0,%esi
  jmp    L259
L343:
  add    $0x1,%rdx
  cmp    %r8,%rdx
  je     L49
L259:
  movzbl (%rdx),%eax
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L343
  movslq %esi,%rcx
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,(%rsp,%rcx,4)
  add    $0x1,%edi
  add    $0x1,%esi
  jmp    L343
L49:
  cmp    $0xd,%edi
  jne    L3
  mov    %rsp,%rsi
  mov    $0x0,%eax
  mov    $0x0,%ecx
  jmp    L209
L3:
  lea    D33(%rip),%rdi
  call   <printf@plt>
  jmp    L216
L285:
  add    (%rsi),%eax
L197:
  add    $0x1,%ecx
  add    $0x4,%rsi
  cmp    $0xc,%ecx
  je     L123
L209:
  mov    %ecx,%edi
  shr    $0x1f,%edi
  lea    (%rcx,%rdi,1),%edx
  and    $0x1,%edx
  sub    %edi,%edx
  cmp    $0x1,%edx
  jne    L285
  imul   $0x3,(%rsi),%edx
  add    %edx,%eax
  jmp    L197
L123:
  mov    $0xa,%ecx
  cltd
  idiv   %ecx
  sub    %edx,%ecx
  cmp    %ecx,0x30(%rsp)
  je     L70
  lea    D33(%rip),%rdi
  call   <printf@plt>
  jmp    L216
L70:
  lea    D97(%rip),%rdi
  call   <printf@plt>
  cmpb   $0x39,0x56(%rsp)
  je     L167
L254:
  cmpb   $0x35,0x56(%rsp)
  jne    L305
  cmpb   $0x35,0x57(%rsp)
  jne    L216
  cmpb   $0x35,0x58(%rsp)
  jne    L216
  cmpb   $0x38,0x59(%rsp)
  jne    L216
  cmpb   $0x33,0x5a(%rsp)
  jne    L216
  lea    D37(%rip),%rdi
  call   <printf@plt>
L305:
  cmpb   $0x34,0x56(%rsp)
  jne    L333
  cmpb   $0x32,0x57(%rsp)
  jne    L216
  cmpb   $0x31,0x58(%rsp)
  jne    L216
  cmpb   $0x30,0x59(%rsp)
  jne    L216
  lea    D64(%rip),%rdi
  call   <printf@plt>
  jmp    L333
L167:
  cmpb   $0x33,0x57(%rsp)
  je     L132
L333:
  cmpb   $0x30,0x56(%rsp)
  jne    L216
  cmpb   $0x31,0x57(%rsp)
  jne    L216
  lea    D41(%rip),%rdi
  call   <printf@plt>
  jmp    L216
L132:
  cmpb   $0x33,0x58(%rsp)
  jne    L333
  cmpb   $0x33,0x59(%rsp)
  jne    L333
  cmpb   $0x34,0x5a(%rsp)
  jne    L333
  cmpb   $0x36,0x5b(%rsp)
  jne    L333
  lea    D23(%rip),%rdi
  call   <printf@plt>
  jmp    L254
L23:
  lea    D33(%rip),%rdi
  call   <printf@plt>
  jmp    L216
L111:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D98
datatype: string
name: retrieve_data
arguments: tag: D33
datatype: string
name: retrieve_data
arguments: tag: D97
datatype: string
name: retrieve_data
arguments: tag: D37
datatype: string
name: retrieve_data
arguments: tag: D64
datatype: string
name: retrieve_data
arguments: tag: D41
datatype: string
name: retrieve_data
arguments: tag: D23
datatype: string

tool: D98: %s

tool: D33: 0


tool: D97: 1


tool: D37: Alyson Books

tool: D64: FUNimation Productions, Ltd.

tool: D41: Pyramid Books

tool: D23: Bluebridge

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