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

```asm
<octtobin>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x74(%rbp)
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L117
L8:
  mov    -0x74(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x7,%eax
  ja     L100
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D18(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D18(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
L100:
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L28:
  addl   $0x1,-0x74(%rbp)
L117:
  mov    -0x74(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L8
  mov    $0x1,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L62
  call   <__stack_chk_fail@plt>
L62:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D31
data_type: string
name: read_data
arguments: data_tag: D64
data_type: string
name: read_data
arguments: data_tag: D85
data_type: string
name: read_data
arguments: data_tag: D47
data_type: string
name: read_data
arguments: data_tag: D73
data_type: string
name: read_data
arguments: data_tag: D9
data_type: string
name: read_data
arguments: data_tag: D75
data_type: string
name: read_data
arguments: data_tag: D68
data_type: string
name: read_data
arguments: data_tag: D65
data_type: string
name: read_data
arguments: data_tag: D23
data_type: string
name: read_data
arguments: data_tag: D107
data_type: string
name: read_data
arguments: data_tag: D49
data_type: string

tool: D31: Enter octal value: 

tool: D64: %s

tool: D85: Binary: 

tool: D47: 000

tool: D73: 001

tool: D9: 010

tool: D75: 011

tool: D68: 100

tool: D65: 101

tool: D23: 110

tool: D107: 111

tool: D49: Not correct input

assistant: ```c
int octtobin() {
  char octnum[100];
  int i = 0;
  printf("Enter octal value: ");
  scanf("%s", octnum);
  printf("Binary: ");
  while (octnum[i]) {
    switch (octnum[i]) {
    case '0':
      printf("000");
      break;
    case '1':
      printf("001");
      break;
    case '2':
      printf("010");
      break;
    case '3':
      printf("011");
      break;
    case '4':
      printf("100");
      break;
    case '5':
      printf("101");
      break;
    case '6':
      printf("110");
      break;
    case '7':
      printf("111");
      break;
    default:
      printf("Not correct input");
    }
    i++;
  }
  return 1;
}
```