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

```asm
<escape_seq_decode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L234
L26:
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L65
  mov    -0x28(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x3c(%rbp)
  jle    L65
  movl   $0xffffffff,-0x20(%rbp)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  sub    $0x22,%eax
  cmp    $0x54,%eax
  ja     L165
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D13(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D13(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  movl   $0x7,-0x20(%rbp)
  jmp    L165
  movl   $0x8,-0x20(%rbp)
  jmp    L165
  movl   $0xc,-0x20(%rbp)
  jmp    L165
  movl   $0xa,-0x20(%rbp)
  jmp    L165
  movl   $0xd,-0x20(%rbp)
  jmp    L165
  movl   $0x9,-0x20(%rbp)
  jmp    L165
  movl   $0xb,-0x20(%rbp)
  jmp    L165
  movl   $0x5c,-0x20(%rbp)
  jmp    L165
  movl   $0x3f,-0x20(%rbp)
  jmp    L165
  movl   $0x27,-0x20(%rbp)
  jmp    L165
  movl   $0x22,-0x20(%rbp)
  nop
L165:
  cmpl   $0xffffffff,-0x20(%rbp)
  je     L302
  addl   $0x2,-0x28(%rbp)
L302:
  cmpl   $0xffffffff,-0x20(%rbp)
  jne    L75
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L18
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L274
L18:
  mov    -0x28(%rbp),%eax
  add    $0x3,%eax
  cmp    %eax,-0x3c(%rbp)
  jle    L139
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L139
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L139
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <x2c@plt>
  mov    %eax,-0x20(%rbp)
  addl   $0x4,-0x28(%rbp)
  jmp    L139
L274:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jbe    L75
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x37,%al
  ja     L75
  movl   $0x0,-0x1c(%rbp)
  jmp    L163
L330:
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  cltq
  mov    %dl,-0xc(%rbp,%rax,1)
  addl   $0x1,-0x1c(%rbp)
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jbe    L293
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x37,%al
  ja     L293
L163:
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x3c(%rbp)
  jle    L293
  cmpl   $0x2,-0x1c(%rbp)
  jle    L330
L293:
  mov    -0x1c(%rbp),%eax
  cltq
  movb   $0x0,-0xc(%rbp,%rax,1)
  cmpl   $0x0,-0x1c(%rbp)
  jle    L75
  lea    -0xc(%rbp),%rax
  mov    $0x8,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtol@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  add    %eax,-0x28(%rbp)
  jmp    L75
L139:
  nop
L75:
  cmpl   $0xffffffff,-0x20(%rbp)
  jne    L264
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rcx),%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x24(%rbp)
  addl   $0x2,-0x28(%rbp)
  jmp    L234
L264:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  mov    -0x20(%rbp),%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x24(%rbp)
  jmp    L234
L65:
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rcx),%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x24(%rbp)
L234:
  mov    -0x28(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L26
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x24(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L239
  call   <__stack_chk_fail@plt>
L239:
  leave
  ret
```

assistant: ```c
int escape_seq_decode(unsigned char *input, int input_len) {
  unsigned char *d = input;
  int i, count;
  i = count = 0;
  while (i < input_len) {
    if ((input[i] == '\\') && (i + 1 < input_len)) {
      int c = -1;
      switch (input[i + 1]) {
      case 'a':
        c = '\a';
        break;
      case 'b':
        c = '\b';
        break;
      case 'f':
        c = '\f';
        break;
      case 'n':
        c = '\n';
        break;
      case 'r':
        c = '\r';
        break;
      case 't':
        c = '\t';
        break;
      case 'v':
        c = '\v';
        break;
      case '\\':
        c = '\\';
        break;
      case '?':
        c = '?';
        break;
      case '\'':
        c = '\'';
        break;
      case '"':
        c = '"';
        break;
      }
      if (c != -1)
        i += 2;
      if (c == -1) {
        if ((input[i + 1] == 'x') || (input[i + 1] == 'X')) {
          if ((i + 3 < input_len) && (isxdigit(input[i + 2])) && (isxdigit(input[i + 3]))) {
            c = x2c(&input[i + 2]);
            i += 4;
          } else {
          }
        } else if (((input[i + 1] >= '0') && (input[i + 1] <= '7'))) {
          char buf[4];
          int j = 0;
          while ((i + 1 + j < input_len) && (j < 3)) {
            buf[j] = input[i + 1 + j];
            j++;
            if (!((input[i + 1 + j] >= '0') && (input[i + 1 + j] <= '7')))
              break;
          }
          buf[j] = '\0';
          if (j > 0) {
            c = strtol(buf, NULL, 8);
            i += 1 + j;
          }
        }
      }
      if (c == -1) {
        *d++ = input[i + 1];
        count++;
        i += 2;
      } else {
        *d++ = c;
        count++;
      }
    } else {
      *d++ = input[i++];
      count++;
    }
  }
  *d = '\0';
  return count;
}
```