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

```asm
<main>:
  endbr64
  push   %r13
  pxor   %xmm0,%xmm0
  lea    D28(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  movl   $0x0,0x10(%rsp)
  mov    %r13,%rsi
  movaps %xmm0,(%rsp)
  call   <scanf@plt>
  mov    $0x3,%edx
  lea    D31(%rip),%rsi
  mov    %r13,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L49
L91:
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  xor    %ebp,%ebp
  jmp    L31
  cs nopw 0x0(%rax,%rax,1)
L44:
  movzbl 0x0(%r13,%r12,1),%eax
  sub    $0x30,%eax
  cmp    $0x9,%al
  ja     L51
  add    $0x1,%ebx
  movsbl %al,%eax
  imul   %ebx,%eax
  cltq
  add    %rax,%rbp
L51:
  add    $0x1,%r12
L31:
  mov    %r13,%rdi
  call   <strlen@plt>
  sub    $0x2,%eax
  cmp    %r12d,%eax
  jg     L44
  mov    %rbp,%rsi
  lea    D15(%rip),%rdi
  lea    0x4(%rsp),%rbp
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x6,%edx
  lea    D26(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L147
L26:
  mov    $0x5,%edx
  lea    D43(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L38
L104:
  mov    $0x4,%edx
  lea    D116(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L119
L125:
  lea    D123(%rip),%r12
  mov    $0x1,%edx
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L107
L41:
  mov    %r12,%rdi
  call   <puts@plt>
L5:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L76
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L49:
  mov    $0x3,%edx
  lea    D127(%rip),%rsi
  mov    %r13,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L91
  lea    D52(%rip),%rdi
  call   <puts@plt>
  jmp    L5
L107:
  lea    D64(%rip),%rdi
  call   <puts@plt>
  jmp    L41
L119:
  lea    D40(%rip),%rdi
  call   <puts@plt>
  jmp    L125
L38:
  lea    D104(%rip),%rdi
  call   <puts@plt>
  jmp    L104
L147:
  lea    D111(%rip),%rdi
  call   <puts@plt>
  jmp    L26
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D28
type_infered: string
name: disassemble_data
arguments: data_label: D31
type_infered: string
name: disassemble_data
arguments: data_label: D15
type_infered: string
name: disassemble_data
arguments: data_label: D26
type_infered: string
name: disassemble_data
arguments: data_label: D43
type_infered: string
name: disassemble_data
arguments: data_label: D116
type_infered: string
name: disassemble_data
arguments: data_label: D123
type_infered: string
name: disassemble_data
arguments: data_label: D127
type_infered: string
name: disassemble_data
arguments: data_label: D52
type_infered: string
name: disassemble_data
arguments: data_label: D64
type_infered: string
name: disassemble_data
arguments: data_label: D40
type_infered: string
name: disassemble_data
arguments: data_label: D104
type_infered: string
name: disassemble_data
arguments: data_label: D111
type_infered: string

tool: D28: %s

tool: D31: 978

tool: D15: %li


tool: D26: 933346

tool: D43: 55583

tool: D116: 4210

tool: D123: 1

tool: D127: 979

tool: D52: 0

tool: D64: Pyramid Books

tool: D40: FUNimation Productions, Ltd.

tool: D104: Alyson Books

tool: D111: Bluebridge

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