user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movq   $0x0,(%rsp)
  movq   $0x0,0x8(%rsp)
  movl   $0x0,0x10(%rsp)
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  lea    D52(%rip),%rdi
  call   <scanf@plt>
  mov    $0x3,%edx
  lea    D40(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L17
L89:
  mov    $0x0,%ebx
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  mov    %rsp,%rbp
  jmp    L4
L17:
  mov    %rsp,%rdi
  mov    $0x3,%edx
  lea    D79(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L89
  lea    D90(%rip),%rdi
  call   <puts@plt>
  jmp    L7
L130:
  add    $0x1,%rbx
L4:
  mov    %rbp,%rdi
  call   <strlen@plt>
  sub    $0x2,%eax
  cmp    %ebx,%eax
  jle    L9
  movzbl (%rbx,%rbp,1),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  ja     L130
  add    $0x1,%r12d
  movsbl %al,%eax
  sub    $0x30,%eax
  imul   %r12d,%eax
  cltq
  add    %rax,%r13
  jmp    L130
L9:
  mov    %r13,%rsi
  lea    D68(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rdi
  mov    $0x6,%edx
  lea    D12(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L63
L1:
  lea    0x4(%rsp),%rdi
  mov    $0x5,%edx
  lea    D23(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L68
L12:
  lea    0x4(%rsp),%rdi
  mov    $0x4,%edx
  lea    D53(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L69
L8:
  lea    0x4(%rsp),%rdi
  mov    $0x1,%edx
  lea    D98(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L33
L159:
  lea    D98(%rip),%rdi
  call   <puts@plt>
L7:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L124
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L63:
  lea    D9(%rip),%rdi
  call   <puts@plt>
  jmp    L1
L68:
  lea    D125(%rip),%rdi
  call   <puts@plt>
  jmp    L12
L69:
  lea    D138(%rip),%rdi
  call   <puts@plt>
  jmp    L8
L33:
  lea    D113(%rip),%rdi
  call   <puts@plt>
  jmp    L159
L124:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D52
type_guessed: string
name: parse_data
arguments: tag: D40
type_guessed: string
name: parse_data
arguments: tag: D79
type_guessed: string
name: parse_data
arguments: tag: D90
type_guessed: string
name: parse_data
arguments: tag: D68
type_guessed: string
name: parse_data
arguments: tag: D12
type_guessed: string
name: parse_data
arguments: tag: D23
type_guessed: string
name: parse_data
arguments: tag: D53
type_guessed: string
name: parse_data
arguments: tag: D98
type_guessed: string
name: parse_data
arguments: tag: D9
type_guessed: string
name: parse_data
arguments: tag: D125
type_guessed: string
name: parse_data
arguments: tag: D138
type_guessed: string
name: parse_data
arguments: tag: D113
type_guessed: string

tool: D52: %s

tool: D40: 978

tool: D79: 979

tool: D90: 0

tool: D68: %li


tool: D12: 933346

tool: D23: 55583

tool: D53: 4210

tool: D98: 1

tool: D9: Bluebridge

tool: D125: Alyson Books

tool: D138: FUNimation Productions, Ltd.

tool: D113: Pyramid Books

assistant: ```c
int main() {
  char a[20] = {0};
  scanf("%s", a);
  if (0 == strncmp(a, "978", 3) || 0 == strncmp(a, "979", 3)) {
    long chek = 0;
    for (int i = 0, k = 0; i < strlen(a) - 2; ++i) {
      if (a[i] <= '9' && '0' <= a[i]) {
        k++;
        if (a[i] != '-')
          chek = chek + (a[i] - '0') * k;
        else
          ;
      }
    }
    printf("%li\n", chek);
    char *b = a + 4;
    if (0 == strncmp(b, "933346", 6)) {
      printf("%s\n", "Bluebridge");
    }
    if (0 == strncmp(b, "55583", 5)) {
      printf("%s\n", "Alyson Books");
    }
    if (0 == strncmp(b, "4210", 4)) {
      printf("%s\n", "FUNimation Productions, Ltd.");
    }
    if (0 == strncmp(b, "1", 1)) {
      printf("%s\n", "Pyramid Books");
    }
    printf("1\n");
  } else {
    printf("0\n");
  }
  return 0;
}
```