user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<octtobin>:
  endbr64
  push   %r14
  lea    D9(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D111(%rip),%rdi
  call   <scanf@plt>
  lea    D85(%rip),%rdi
  call   <printf@plt>
  movzbl (%rsp),%eax
  test   %al,%al
  je     L41
  lea    0x1(%rsp),%r13
  lea    D13(%rip),%r12
  lea    D99(%rip),%r14
  lea    D67(%rip),%rbp
  lea    D1(%rip),%rbx
L14:
  sub    $0x30,%eax
  cmp    $0x7,%al
  ja     L40
  movzbl %al,%eax
  movslq (%r14,%rax,4),%rax
  add    %r14,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
  mov    %rbx,%rdi
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L91:
  movzbl 0x0(%r13),%eax
  add    $0x1,%r13
  test   %al,%al
  jne    L14
L41:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x70,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D129(%rip),%rdi
  call   <printf@plt>
  jmp    L91
  cs nopw 0x0(%rax,%rax,1)
  lea    D110(%rip),%rdi
  call   <printf@plt>
  jmp    L91
  xchg   %ax,%ax
  lea    D37(%rip),%rdi
  call   <printf@plt>
  jmp    L91
  xchg   %ax,%ax
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L91
  xchg   %ax,%ax
  lea    D77(%rip),%rdi
  call   <printf@plt>
  jmp    L91
  nopl   0x0(%rax)
  lea    D60(%rip),%rdi
  call   <printf@plt>
  jmp    L91
  nopl   0x0(%rax)
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L91
L40:
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L91
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D9
type_guessed: string
name: unpack_data
arguments: tag: D111
type_guessed: string
name: unpack_data
arguments: tag: D85
type_guessed: string
name: unpack_data
arguments: tag: D13
type_guessed: string
name: unpack_data
arguments: tag: D67
type_guessed: string
name: unpack_data
arguments: tag: D1
type_guessed: string
name: unpack_data
arguments: tag: D129
type_guessed: string
name: unpack_data
arguments: tag: D110
type_guessed: string
name: unpack_data
arguments: tag: D37
type_guessed: string
name: unpack_data
arguments: tag: D6
type_guessed: string
name: unpack_data
arguments: tag: D77
type_guessed: string
name: unpack_data
arguments: tag: D60
type_guessed: string

tool: D9: Enter octal value: 

tool: D111: %s

tool: D85: Binary: 

tool: D13: Not correct input

tool: D67: 111

tool: D1: 110

tool: D129: 101

tool: D110: 100

tool: D37: 011

tool: D6: 010

tool: D77: 001

tool: D60: 000

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