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

```asm
<parseaddr_route>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L350
L418:
  cmpl   $0x28,-0x18(%rbp)
  jne    L334
  movl   $0x1,-0x20(%rbp)
  addq   $0x1,-0x10(%rbp)
  jmp    L118
L330:
  addq   $0x1,-0x10(%rbp)
  cmpl   $0x5c,-0x18(%rbp)
  jne    L427
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L427
  addq   $0x1,-0x10(%rbp)
  jmp    L118
L427:
  cmpl   $0x28,-0x18(%rbp)
  jne    L146
  addl   $0x1,-0x20(%rbp)
  jmp    L118
L146:
  cmpl   $0x29,-0x18(%rbp)
  jne    L118
  subl   $0x1,-0x20(%rbp)
L118:
  cmpl   $0x0,-0x20(%rbp)
  je     L355
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  jne    L330
L355:
  subq   $0x1,-0x10(%rbp)
  jmp    L178
L334:
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L288
L178:
  addq   $0x1,-0x10(%rbp)
L350:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  jne    L418
  jmp    L40
L288:
  nop
L40:
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x40(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
L53:
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x21(%rbp)
  movzbl -0x21(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L259
  cmpb   $0x2d,-0x21(%rbp)
  je     L259
  cmpb   $0x5b,-0x21(%rbp)
  je     L259
  cmpb   $0x5d,-0x21(%rbp)
  je     L259
  cmpb   $0x2c,-0x21(%rbp)
  je     L259
  cmpb   $0x40,-0x21(%rbp)
  jne    L368
L259:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl -0x21(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L73
L368:
  cmpb   $0x2e,-0x21(%rbp)
  jne    L152
  mov    -0x40(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x8(%rbp)
  jbe    L53
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L53
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl -0x21(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L53
L152:
  movzbl -0x21(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L54
  cmpb   $0x28,-0x21(%rbp)
  jne    L195
L54:
  subq   $0x1,-0x10(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L247
L215:
  cmpl   $0x28,-0x14(%rbp)
  jne    L7
  movl   $0x1,-0x1c(%rbp)
  addq   $0x1,-0x10(%rbp)
  jmp    L175
L116:
  addq   $0x1,-0x10(%rbp)
  cmpl   $0x5c,-0x14(%rbp)
  jne    L124
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L124
  addq   $0x1,-0x10(%rbp)
  jmp    L175
L124:
  cmpl   $0x28,-0x14(%rbp)
  jne    L52
  addl   $0x1,-0x1c(%rbp)
  jmp    L175
L52:
  cmpl   $0x29,-0x14(%rbp)
  jne    L175
  subl   $0x1,-0x1c(%rbp)
L175:
  cmpl   $0x0,-0x1c(%rbp)
  je     L72
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jne    L116
L72:
  subq   $0x1,-0x10(%rbp)
  jmp    L226
L7:
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L370
L226:
  addq   $0x1,-0x10(%rbp)
L247:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jne    L215
  jmp    L73
L370:
  nop
  jmp    L73
L91:
  subq   $0x1,-0x8(%rbp)
L195:
  mov    -0x40(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x8(%rbp)
  jbe    L241
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L91
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L91
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  je     L91
L241:
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  movsbl -0x21(%rbp),%eax
  jmp    L56
L73:
  jmp    L53
L56:
  leave
  ret
```

assistant: ```c
int parseaddr_route(char **inp, char **routep) {
  char c;
  char *src = *inp;
  char *dst;
  {
    int _c, _comment = 0;
    while ((_c = *(src))) {
      if (_c == '(') {
        _comment = 1;
        (src)++;
        while ((_comment && (_c = *(src)))) {
          (src)++;
          if (_c == '\\' && *(src))
            (src)++;
          else if (_c == '(')
            _comment++;
          else if (_c == ')')
            _comment--;
        }
        (src)--;
      } else if (!isspace(_c))
        break;
      (src)++;
    }
  };
  *routep = dst = src;
  for (;;) {
    c = *src++;
    if (isalnum((int)(unsigned char)c) || c == '-' || c == '[' || c == ']' || c == ',' || c == '@') {
      *dst++ = c;
    } else if (c == '.') {
      if (dst > *routep && dst[-1] != '.')
        *dst++ = c;
    } else if (isspace((int)(unsigned char)c) || c == '(') {
      src--;
      {
        int _c, _comment = 0;
        while ((_c = *(src))) {
          if (_c == '(') {
            _comment = 1;
            (src)++;
            while ((_comment && (_c = *(src)))) {
              (src)++;
              if (_c == '\\' && *(src))
                (src)++;
              else if (_c == '(')
                _comment++;
              else if (_c == ')')
                _comment--;
            }
            (src)--;
          } else if (!isspace(_c))
            break;
          (src)++;
        }
      };
    } else {
      while (dst > *routep && (dst[-1] == '.' || dst[-1] == ',' || dst[-1] == '@'))
        dst--;
      *dst = '\0';
      *inp = src;
      return c;
    }
  }
}
```