user: What would the C source look like for the assembly code provided here:

```asm
<ExprEval>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  test   %rdi,%rdi
  je     L151
  movl   $0x0,(%rsp)
  mov    %rdi,%r14
  mov    %edx,%ebp
  lea    0x1(%rdi),%r15
  xor    %r13d,%r13d
  xor    %ebx,%ebx
  jmp    L75
  nopw   0x0(%rax,%rax,1)
L78:
  cmp    $0x2f,%dl
  ja     L81
  movabs $0xac2000000000,%rax
  bt     %rdx,%rax
  jb     L106
L81:
  movsbl %dl,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L50
L103:
  add    $0x1,%r15
L75:
  movzbl -0x1(%r15),%edx
  test   %dl,%dl
  je     L114
  test   %ebp,%ebp
  jne    L43
L169:
  cmp    $0x2c,%dl
  jne    L78
  mov    (%rsp),%eax
  test   %eax,%eax
  je     L25
L80:
  movl   $0x1,(%rsp)
  mov    %r15,%r14
  jmp    L103
  cs nopw 0x0(%rax,%rax,1)
L43:
  mov    %ebx,%edx
  mov    %r13d,%ecx
  lea    D5(%rip),%rdi
  mov    %r12d,%esi
  call   <printf@plt>
  movzbl -0x1(%r15),%edx
  jmp    L169
  nopl   0x0(%rax,%rax,1)
L106:
  movb   $0x0,-0x1(%r15)
  mov    %r14,%rdi
  mov    %dl,0x7(%rsp)
  call   <atoi@plt>
  movzbl 0x7(%rsp),%edx
  mov    %eax,%ebx
  sub    $0x25,%edx
  cmp    $0xa,%dl
  ja     L20
  lea    D1(%rip),%rcx
  movzbl %dl,%edx
  movslq (%rcx,%rdx,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
  imul   %ebx,%r12d
  mov    %r12d,%r13d
L20:
  mov    %r13d,%r12d
  mov    %r15,%r14
  jmp    L103
  nopw   0x0(%rax,%rax,1)
  mov    %r12d,%eax
  mov    %r15,%r14
  cltd
  idiv   %ebx
  mov    %eax,%r13d
  mov    %r13d,%r12d
  jmp    L103
  nopl   0x0(%rax)
  mov    %r12d,%r13d
  mov    %r15,%r14
  sub    %ebx,%r13d
  mov    %r13d,%r12d
  jmp    L103
  nopl   0x0(%rax)
  lea    (%rbx,%r12,1),%r13d
  mov    %r15,%r14
  mov    %r13d,%r12d
  jmp    L103
  nop
  mov    %r12d,%eax
  mov    %r15,%r14
  cltd
  idiv   %ebx
  mov    %edx,%r13d
  mov    %r13d,%r12d
  jmp    L103
  nopl   0x0(%rax)
L25:
  movb   $0x0,-0x1(%r15)
  mov    %r14,%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  jmp    L80
L151:
  xor    %r13d,%r13d
L114:
  mov    0x8(%rsp),%rax
  mov    %r13d,(%rax)
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L50:
  add    $0x18,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: label: D5
type: string

tool: D5: DEBUG: lv=%d rv=%d acc=%d


assistant: ```c
int ExprEval(char *expr, int *rtn, int debug) {
  char *pe = expr;
  char *ps = expr;
  int lv, rv, acc = (0, 0, 0);
  int flagLV = 0;
  int rc = 0;
  rv = 0;
  while (pe != NULL && *pe != '\000') {
    if (debug != 0) {
      printf("DEBUG: lv=%d rv=%d acc=%d\n", lv, rv, acc);
    }
    if (*pe == ',') {
      if (flagLV == 0) {
        *pe = '\000';
        lv = atoi(ps);
        flagLV = 1;
      }
      ps = pe + 1;
    } else if (*pe == '+' || *pe == '-' || *pe == '/' || *pe == '*' || *pe == '%') {
      char op = *pe;
      *pe = '\000';
      rv = atoi(ps);
      switch (op) {
      case '*':
        acc = (lv * rv);
        break;
      case '+':
        acc = (lv + rv);
        break;
      case '-':
        acc = (lv - rv);
        break;
      case '/':
        acc = (lv / rv);
        break;
      case '%':
        acc = (lv % rv);
        break;
      }
      ps = pe + 1;
      lv = acc;
    } else if (!isdigit(*pe)) {
      return (1);
    }
    ++pe;
  }
  *rtn = acc;
  return (rc);
}
```