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

```asm
<getop>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  nop
L112:
  xor    %eax,%eax
  call   <getch@plt>
  mov    %al,(%rbx)
  mov    %eax,%r12d
  mov    %eax,%edi
  cmp    $0x9,%eax
  je     L112
  cmp    $0x20,%al
  je     L112
  movb   $0x0,0x1(%rbx)
  cmp    $0x2f,%eax
  ja     L116
  movabs $0xffff77dffffffbff,%rax
  bt     %r12,%rax
  jb     L123
L137:
  pop    %rbx
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L116:
  mov    D5(%rip),%r13
L118:
  movsbl %dil,%ebp
  mov    %ebp,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L215
  lea    -0x2d(%r12),%eax
  cmp    $0x1,%eax
  jbe    L215
  add    $0x1,%rbx
  jmp    L200
  nop
L121:
  cmp    %eax,0x0(%r13)
  je     L224
  lea    -0x9(%rax),%edx
  add    $0x1,%rbx
  cmp    $0x1,%edx
  jbe    L224
L200:
  xor    %eax,%eax
  call   <getch@plt>
  mov    %rbx,%rcx
  mov    %al,(%rbx)
  cmp    $0x20,%al
  jne    L121
L224:
  movb   $0x0,(%rcx)
  mov    $0x31,%r12d
  cmp    %eax,0x0(%r13)
  je     L137
  mov    %eax,%edi
  call   <ungetch@plt>
  jmp    L137
L123:
  cmp    $0x2a,%r12d
  je     L137
  cmp    $0x2d,%r12d
  jne    L116
  xor    %eax,%eax
  call   <getch@plt>
  mov    %eax,%ebp
  lea    -0x9(%rax),%eax
  cmp    $0x1,%eax
  jbe    L99
  cmp    $0x20,%ebp
  je     L99
  mov    D5(%rip),%r13
  cmp    %ebp,0x0(%r13)
  je     L99
  mov    %ebp,%edi
  mov    %ebp,%r12d
  call   <ungetch@plt>
  mov    %ebp,%edi
  jmp    L118
  cs nopw 0x0(%rax,%rax,1)
L215:
  mov    %ebp,%edi
  xor    %r14d,%r14d
  call   <isdigit@plt>
  test   %rax,%rax
  je     L8
  mov    $0x1,%ebp
  nopl   0x0(%rax)
L94:
  xor    %eax,%eax
  movslq %ebp,%r14
  call   <getch@plt>
  mov    %al,(%rbx,%rbp,1)
  movsbl %al,%edi
  mov    %eax,%r12d
  add    $0x1,%rbp
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L94
L8:
  lea    (%rbx,%r14,1),%rbp
  cmp    $0x2e,%r12d
  je     L61
L128:
  movb   $0x0,0x0(%rbp)
  cmp    %r12d,0x0(%r13)
  jne    L190
  mov    $0x30,%r12d
  pop    %rbx
  pop    %rbp
  mov    %r12d,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L190:
  mov    %r12d,%edi
  mov    $0x30,%r12d
  call   <ungetch@plt>
  pop    %rbx
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L61:
  lea    0x1(%rbx,%r14,1),%rbx
  xchg   %ax,%ax
L145:
  xor    %eax,%eax
  mov    %rbx,%rbp
  add    $0x1,%rbx
  call   <getch@plt>
  mov    %al,-0x1(%rbx)
  movsbl %al,%edi
  mov    %eax,%r12d
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L145
  jmp    L128
L99:
  mov    %ebp,%edi
  call   <ungetch@plt>
  jmp    L137
```

assistant: ```c
int getop(char s[]) {
  int i, c;
  char word[10];
  while ((s[0] = c = getch()) == ' ' || c == '\t')
    ;
  s[1] = '\0';
  if (c == '%' || c == '+' || c == '/' || c == '\n' || c == '*') {
    return c;
  }
  i = 0;
  if (c == '-') {
    if ((c = getch()) == ' ' || c == '\t' || c == EOF || c == '\n') {
      ungetch(c);
      return '-';
    } else
      ungetch(c);
  }
  if (!isdigit(c) && c != '.' && c != '-') {
    while ((s[++i] = c = getch()) != ' ' && c != EOF && c != '\n' && c != '\t')
      ;
    s[i] = '\0';
    if (c != EOF)
      ungetch(c);
    return '1';
  }
  if (isdigit(c))
    while (isdigit(s[++i] = c = getch()))
      ;
  if (c == '.') {
    while (isdigit(s[++i] = c = getch()))
      ;
  }
  s[i] = '\0';
  if (c != EOF)
    ungetch(c);
  return '0';
}
```