user: 请从给定的汇编指令推导出C源代码:

```asm
<do_expression>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x24(%rbp)
  movb   $0x0,-0x26(%rbp)
  movq   $0x0,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  movsbl %al,%eax
  test   %eax,%eax
  je     L333
  cmp    $0x28,%eax
  je     L166
  jmp    L785
L333:
  mov    $0x0,%eax
  jmp    L678
L166:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,(%rax)
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x20(%rbp)
  jmp    L211
L785:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x20(%rbp)
L211:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  je     L143
  nop
  jmp    L562
L134:
  nop
  jmp    L562
L84:
  nop
  jmp    L562
L69:
  nop
  jmp    L562
L541:
  nop
  jmp    L562
L287:
  nop
  jmp    L562
L346:
  nop
  jmp    L562
L335:
  nop
  jmp    L562
L668:
  nop
  jmp    L562
L141:
  nop
  jmp    L562
L409:
  nop
  jmp    L562
L783:
  nop
  jmp    L562
L688:
  nop
  jmp    L562
L538:
  nop
L562:
  mov    -0x40(%rbp),%rax
  movl   $0x1,(%rax)
  mov    $0xffffffffffffffff,%rax
  jmp    L678
L143:
  nop
L144:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <get_symbol@plt>
  mov    %al,-0x25(%rbp)
  movsbl -0x25(%rbp),%eax
  cmp    $0x7c,%eax
  jg     L453
  cmp    $0x25,%eax
  jge    L661
  cmp    $0xffffffff,%eax
  je     L765
  test   %eax,%eax
  je     L177
  jmp    L453
L661:
  sub    $0x25,%eax
  cmp    $0x57,%eax
  ja     L453
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D7(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D7(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L134
  mov    -0x20(%rbp),%rax
  imul   -0x18(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L453
  cmpb   $0x0,-0x26(%rbp)
  je     L777
  mov    -0x10(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movb   $0x0,-0x26(%rbp)
L777:
  cmpl   $0x0,-0x44(%rbp)
  je     L449
  mov    -0x20(%rbp),%rax
  jmp    L678
  cmpb   $0x0,-0x26(%rbp)
  je     L572
  mov    -0x10(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movb   $0x0,-0x26(%rbp)
L572:
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L84
  mov    -0x18(%rbp),%rax
  add    %rax,-0x20(%rbp)
  jmp    L453
  cmpb   $0x0,-0x26(%rbp)
  je     L375
  mov    -0x10(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movb   $0x0,-0x26(%rbp)
L375:
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L242
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x20(%rbp)
  jmp    L659
L242:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x20(%rbp)
L659:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L69
  movb   $0x1,-0x26(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L471
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L408
L471:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L408:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L541
  mov    -0x20(%rbp),%rax
  imul   -0x18(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L700
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L655
L700:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L655:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L287
  mov    -0x20(%rbp),%rax
  mov    $0x0,%edx
  divq   -0x18(%rbp)
  mov    %rax,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L674
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L370
L674:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L370:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L346
  mov    -0x20(%rbp),%rax
  mov    $0x0,%edx
  divq   -0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L698
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L496
L698:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L496:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L335
  mov    -0x18(%rbp),%rax
  and    %rax,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L747
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L28
L747:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L28:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L668
  mov    -0x18(%rbp),%rax
  or     %rax,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L397
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L431
L397:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L431:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L141
  mov    -0x18(%rbp),%rax
  xor    %rax,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L262
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L21
L262:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L21:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L409
  mov    -0x20(%rbp),%rax
  or     -0x18(%rbp),%rax
  not    %rax
  mov    %rax,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L349
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L509
L349:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L509:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L783
  mov    -0x18(%rbp),%rax
  mov    %eax,%ecx
  shrq   %cl,-0x20(%rbp)
  jmp    L453
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <next_char@plt>
  cmp    $0x28,%al
  jne    L202
  lea    -0x24(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <do_expression>
  mov    %rax,-0x18(%rbp)
  jmp    L734
L202:
  lea    -0x24(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <get_number@plt>
  mov    %rax,-0x18(%rbp)
L734:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L688
  mov    -0x18(%rbp),%rax
  mov    %eax,%ecx
  shlq   %cl,-0x20(%rbp)
  jmp    L453
L177:
  cmpb   $0x0,-0x26(%rbp)
  je     L540
  mov    -0x10(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movb   $0x0,-0x26(%rbp)
L540:
  mov    -0x20(%rbp),%rax
  jmp    L678
L765:
  movl   $0x1,-0x24(%rbp)
  jmp    L453
L449:
  nop
L453:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jne    L538
  jmp    L144
L678:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L217
  call   <__stack_chk_fail@plt>
L217:
  leave
  ret
```

assistant: ```c
uint64_t do_expression(char **p, int *perr, int bracket) {
  int err = 0;
  char s0, sub = 0;
  uint64_t a = 0, b, tmp;
  *perr = 0;
  switch (next_char(p)) {
  case '\0':
    return 0;
  case '(':
    *p += 1;
    a = do_expression(p, &err, 1);
    break;
  default:
    a = get_number(p, &err);
  }
  if (err) {
  err:
    *perr = 1;
    return -1UL;
  }
reget:
  s0 = get_symbol(p);
  switch (s0) {
  case '(':
    b = do_expression(p, &err, 1);
    if (err)
      goto err;
    a *= b;
    break;
  case ')':
    if (sub) {
      a = tmp - a;
      sub = 0;
    }
    if (bracket)
      return a;
    break;
  case '+':
    if (sub) {
      a = tmp - a;
      sub = 0;
    }
    b = do_expression(p, &err, 1);
    if (err)
      goto err;
    a += b;
    break;
  case '-':
    if (sub) {
      a = tmp - a;
      sub = 0;
    }
    tmp = a;
    if (next_char(p) == '(')
      a = do_expression(p, &err, 1);
    else
      a = get_number(p, &err);
    if (err)
      goto err;
    sub = 1;
    break;
  case '*':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a *= b;
    break;
  case '/':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a /= b;
    break;
  case '%':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a %= b;
    break;
  case '&':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a &= b;
    break;
  case '|':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a |= b;
    break;
  case '^':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a ^= b;
    break;
  case 'v':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a = ~(a | b);
    break;
  case '>':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a >>= b;
    break;
  case '<':
    if (next_char(p) == '(')
      b = do_expression(p, &err, 1);
    else
      b = get_number(p, &err);
    if (err)
      goto err;
    a <<= b;
    break;
  case '\0':
    if (sub) {
      a = tmp - a;
      sub = 0;
    }
    return a;
  case -1:
    err = 1;
  }
  if (err)
    goto err;
  goto reget;
  return 0;
}
```