user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x3c(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x1,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x28(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movzbl -0x20(%rbp),%eax
  cmp    $0x39,%al
  jne    L1
  movzbl -0x1f(%rbp),%eax
  cmp    $0x37,%al
  jne    L1
  movzbl -0x1e(%rbp),%eax
  cmp    $0x38,%al
  je     L132
  movzbl -0x1e(%rbp),%eax
  cmp    $0x39,%al
  je     L132
L1:
  movl   $0x0,-0x3c(%rbp)
L132:
  movzbl -0x1a(%rbp),%eax
  cmp    $0x39,%al
  jne    L168
  movzbl -0x19(%rbp),%eax
  cmp    $0x33,%al
  jne    L168
  movzbl -0x18(%rbp),%eax
  cmp    $0x33,%al
  jne    L168
  movzbl -0x17(%rbp),%eax
  cmp    $0x33,%al
  jne    L168
  movzbl -0x16(%rbp),%eax
  cmp    $0x34,%al
  jne    L168
  movzbl -0x15(%rbp),%eax
  cmp    $0x36,%al
  jne    L168
  movl   $0x1,-0x28(%rbp)
L168:
  movzbl -0x1a(%rbp),%eax
  cmp    $0x35,%al
  jne    L332
  movzbl -0x19(%rbp),%eax
  cmp    $0x35,%al
  jne    L332
  movzbl -0x18(%rbp),%eax
  cmp    $0x35,%al
  jne    L332
  movzbl -0x17(%rbp),%eax
  cmp    $0x38,%al
  jne    L332
  movzbl -0x16(%rbp),%eax
  cmp    $0x33,%al
  jne    L332
  movl   $0x2,-0x28(%rbp)
L332:
  movzbl -0x1a(%rbp),%eax
  cmp    $0x34,%al
  jne    L312
  movzbl -0x19(%rbp),%eax
  cmp    $0x32,%al
  jne    L312
  movzbl -0x18(%rbp),%eax
  cmp    $0x31,%al
  jne    L312
  movzbl -0x17(%rbp),%eax
  cmp    $0x30,%al
  jne    L312
  movl   $0x3,-0x28(%rbp)
L312:
  movzbl -0x1a(%rbp),%eax
  cmp    $0x30,%al
  jne    L170
  movzbl -0x19(%rbp),%eax
  cmp    $0x31,%al
  jne    L170
  movl   $0x4,-0x28(%rbp)
L170:
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x24(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L396
L257:
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  cmp    $0x39,%al
  jle    L188
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  cmp    $0x2f,%al
  jg     L188
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  cmp    $0x2d,%al
  je     L188
  movl   $0x0,-0x3c(%rbp)
L188:
  addl   $0x1,-0x38(%rbp)
L396:
  mov    -0x38(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L257
  movl   $0x0,-0x38(%rbp)
  jmp    L194
L38:
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  cltq
  mov    %dl,-0x20(%rbp,%rax,1)
  addl   $0x1,-0x38(%rbp)
L194:
  mov    -0x38(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L38
  movl   $0x0,-0x38(%rbp)
  jmp    L400
L410:
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  cmp    $0x9,%al
  jg     L279
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  test   %al,%al
  js     L279
  mov    -0x38(%rbp),%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  movsbl %al,%eax
  imul   -0x30(%rbp),%eax
  add    %eax,-0x34(%rbp)
  addl   $0x1,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L11
  movl   $0x3,-0x30(%rbp)
  jmp    L279
L11:
  movl   $0x1,-0x30(%rbp)
L279:
  addl   $0x1,-0x38(%rbp)
L400:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x38(%rbp)
  jl     L410
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  movsbl %al,%esi
  mov    -0x34(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%edi
  sar    $0x1f,%edi
  sub    %edi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    $0xa,%eax
  sub    %ecx,%eax
  cmp    %eax,%esi
  je     L63
  movl   $0x0,-0x3c(%rbp)
L63:
  cmpl   $0x0,-0x3c(%rbp)
  je     L388
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  cmpl   $0x1,-0x28(%rbp)
  jne    L299
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L299:
  cmpl   $0x2,-0x28(%rbp)
  jne    L14
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L14:
  cmpl   $0x3,-0x28(%rbp)
  jne    L323
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L323:
  cmpl   $0x4,-0x28(%rbp)
  jne    L110
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L110
L388:
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L110:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L386
  call   <__stack_chk_fail@plt>
L386:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D62
type: string
name: read_data
arguments: data_label: D35
type: string
name: read_data
arguments: data_label: D1
type: string
name: read_data
arguments: data_label: D47
type: string
name: read_data
arguments: data_label: D8
type: string
name: read_data
arguments: data_label: D33
type: string
name: read_data
arguments: data_label: D31
type: string

tool: D62: %s

tool: D35: 1

tool: D1: 
Bluebridge

tool: D47: 
Alyson Books

tool: D8: 
FUNimation Productions, Ltd.

tool: D33: 
Pyramid Books

tool: D31: 0

assistant: ```c
int main() {
  char ISBN[20];
  int valid = 1, counter, l, sum = 0, check = 1, counter2 = 0, company = 0;
  scanf("%s", ISBN);
  if (ISBN[0] != '9' || ISBN[1] != '7' || (ISBN[2] != '8' && ISBN[2] != '9')) {
    valid = 0;
  }
  if (ISBN[6] == '9' && ISBN[7] == '3' && ISBN[8] == '3' && ISBN[9] == '3' && ISBN[10] == '4' && ISBN[11] == '6') {
    company = 1;
  }
  if (ISBN[6] == '5' && ISBN[7] == '5' && ISBN[8] == '5' && ISBN[9] == '8' && ISBN[10] == '3') {
    company = 2;
  }
  if (ISBN[6] == '4' && ISBN[7] == '2' && ISBN[8] == '1' && ISBN[9] == '0') {
    company = 3;
  }
  if (ISBN[6] == '0' && ISBN[7] == '1') {
    company = 4;
  }
  l = strlen(ISBN);
  for (counter = 0; counter < l; counter++) {
    if (ISBN[counter] > '9' && ISBN[counter] < '0' && ISBN[counter] != '-')
      valid = 0;
  }
  for (counter = 0; counter < l; counter++) {
    ISBN[counter] = (ISBN[counter] - 48);
  }
  for (counter = 0; counter < l - 1; counter++) {
    if (ISBN[counter] <= 9 && ISBN[counter] >= 0) {
      sum = sum + ISBN[counter] * check;
      counter2++;
      if (counter2 % 2 != 0) {
        check = 3;
      } else {
        check = 1;
      }
    }
  }
  if (ISBN[l - 1] != 10 - (sum % 10)) {
    valid = 0;
  }
  if (valid != 0) {
    printf("1");
    if (company == 1) {
      printf("\nBluebridge");
    }
    if (company == 2) {
      printf("\nAlyson Books");
    }
    if (company == 3) {
      printf("\nFUNimation Productions, Ltd.");
    }
    if (company == 4) {
      printf("\nPyramid Books");
    }
  } else {
    printf("0");
  }
  return 0;
}
```