user: Demonstrate the C code that generates the assembly output below:

```asm
<decode_quoted_printable>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x50(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x58(%rbp),%rax
  movl   $0x0,(%rax)
  cmpl   $0x0,-0x4c(%rbp)
  jne    L100
  mov    $0x0,%eax
  jmp    L801
L100:
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L754
  mov    $0x0,%eax
  jmp    L801
L754:
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  cmpl   $0x0,-0x50(%rbp)
  je     L105
  movl   $0x0,-0x38(%rbp)
  jmp    L708
L23:
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x3c(%rbp)
  cmpb   $0x3d,-0x3c(%rbp)
  jne    L442
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x3c(%rbp)
  mov    -0x48(%rbp),%rax
  movzbl 0x1(%rax),%eax
  mov    %al,-0x39(%rbp)
  cmpb   $0x2f,-0x3c(%rbp)
  jbe    L37
  cmpb   $0x39,-0x3c(%rbp)
  jbe    L459
L37:
  cmpb   $0x40,-0x3c(%rbp)
  jbe    L710
  cmpb   $0x46,-0x3c(%rbp)
  jbe    L459
L710:
  cmpb   $0x60,-0x3c(%rbp)
  jbe    L337
  cmpb   $0x66,-0x3c(%rbp)
  ja     L337
L459:
  cmpb   $0x2f,-0x39(%rbp)
  jbe    L545
  cmpb   $0x39,-0x39(%rbp)
  jbe    L718
L545:
  cmpb   $0x40,-0x39(%rbp)
  jbe    L778
  cmpb   $0x46,-0x39(%rbp)
  jbe    L718
L778:
  cmpb   $0x60,-0x39(%rbp)
  jbe    L337
  cmpb   $0x66,-0x39(%rbp)
  ja     L337
L718:
  movzbl -0x3c(%rbp),%eax
  cmpb   $0x39,-0x3c(%rbp)
  jbe    L76
  cmpb   $0x46,-0x3c(%rbp)
  jbe    L313
  mov    $0x57,%edx
  jmp    L762
L313:
  mov    $0x37,%edx
  jmp    L762
L76:
  mov    $0x30,%edx
L762:
  sub    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  cmpb   $0x39,-0x39(%rbp)
  jbe    L473
  cmpb   $0x46,-0x39(%rbp)
  jbe    L671
  mov    $0x57,%edx
  jmp    L69
L671:
  mov    $0x37,%edx
  jmp    L69
L473:
  mov    $0x30,%edx
L69:
  movzbl -0x39(%rbp),%eax
  sub    %edx,%eax
  or     %ecx,%eax
  mov    %al,-0x3c(%rbp)
  cmpl   $0x0,-0x4c(%rbp)
  je     L750
  subl   $0x1,-0x4c(%rbp)
L750:
  cmpl   $0x0,-0x4c(%rbp)
  je     L356
  subl   $0x1,-0x4c(%rbp)
L356:
  addq   $0x2,-0x48(%rbp)
  jmp    L655
L337:
  movb   $0x3d,-0x3c(%rbp)
  jmp    L655
L442:
  cmpb   $0x5f,-0x3c(%rbp)
  jne    L655
  movb   $0x20,-0x3c(%rbp)
L655:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  movzbl -0x3c(%rbp),%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jae    L68
L708:
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x4c(%rbp)
  test   %eax,%eax
  jne    L23
  jmp    L372
L68:
  nop
L372:
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  sub    -0x10(%rbp),%rax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <realloc@plt>
  jmp    L801
L105:
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L458
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L801
L458:
  mov    -0x4c(%rbp),%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x4c(%rbp),%edx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L781
L44:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    $0xa,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L119
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x28(%rbp)
  subq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jb     L557
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  jne    L557
  subq   $0x1,-0x18(%rbp)
  jmp    L557
L119:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  movq   $0x0,-0x28(%rbp)
  jmp    L557
L217:
  subq   $0x1,-0x18(%rbp)
L557:
  mov    -0x18(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jb     L690
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x3b(%rbp)
  cmpb   $0x20,-0x3b(%rbp)
  je     L217
  cmpb   $0x9,-0x3b(%rbp)
  je     L217
L690:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movb   $0x0,(%rax)
L115:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x3b(%rbp)
  movzbl -0x3b(%rbp),%eax
  test   %eax,%eax
  je     L121
  cmp    $0x3d,%eax
  je     L340
  jmp    L645
L121:
  cmpq   $0x0,-0x28(%rbp)
  je     L249
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  movb   $0xa,(%rax)
  jmp    L249
L340:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x3b(%rbp)
  cmpb   $0x0,-0x3b(%rbp)
  je     L371
  mov    -0x20(%rbp),%rax
  movzbl 0x1(%rax),%eax
  mov    %al,-0x3a(%rbp)
  cmpb   $0x2f,-0x3b(%rbp)
  jbe    L15
  cmpb   $0x39,-0x3b(%rbp)
  jbe    L679
L15:
  cmpb   $0x40,-0x3b(%rbp)
  jbe    L695
  cmpb   $0x46,-0x3b(%rbp)
  jbe    L679
L695:
  cmpb   $0x60,-0x3b(%rbp)
  jbe    L529
  cmpb   $0x66,-0x3b(%rbp)
  ja     L529
L679:
  cmpb   $0x2f,-0x3a(%rbp)
  jbe    L187
  cmpb   $0x39,-0x3a(%rbp)
  jbe    L701
L187:
  cmpb   $0x40,-0x3a(%rbp)
  jbe    L423
  cmpb   $0x46,-0x3a(%rbp)
  jbe    L701
L423:
  cmpb   $0x60,-0x3a(%rbp)
  jbe    L529
  cmpb   $0x66,-0x3a(%rbp)
  ja     L529
L701:
  movzbl -0x3b(%rbp),%eax
  cmpb   $0x39,-0x3b(%rbp)
  jbe    L453
  cmpb   $0x46,-0x3b(%rbp)
  jbe    L165
  mov    $0x57,%edx
  jmp    L743
L165:
  mov    $0x37,%edx
  jmp    L743
L453:
  mov    $0x30,%edx
L743:
  sub    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  cmpb   $0x39,-0x3a(%rbp)
  jbe    L315
  cmpb   $0x46,-0x3a(%rbp)
  jbe    L579
  mov    $0x57,%edx
  jmp    L357
L579:
  mov    $0x37,%edx
  jmp    L357
L315:
  mov    $0x30,%edx
L357:
  movzbl -0x3a(%rbp),%eax
  sub    %edx,%eax
  or     %eax,%ecx
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addq   $0x2,-0x20(%rbp)
  jmp    L371
L529:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  movb   $0x3d,(%rax)
  jmp    L371
L645:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  movzbl -0x3b(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L124
L249:
  nop
  jmp    L124
L371:
  nop
L124:
  mov    -0x30(%rbp),%rax
  sub    -0x10(%rbp),%rax
  cmp    %eax,-0x34(%rbp)
  ja     L283
  movq   $0x0,-0x28(%rbp)
  jmp    L781
L283:
  cmpb   $0x0,-0x3b(%rbp)
  jne    L115
L781:
  cmpq   $0x0,-0x28(%rbp)
  jne    L44
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%rax
  sub    -0x10(%rbp),%rax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <realloc@plt>
L801:
  leave
  ret
```

assistant: ```c
char *decode_quoted_printable(unsigned char *buf, unsigned int len, unsigned int *ret_len, int header) {
  unsigned char *dest, *deststart;
  unsigned int limit = *ret_len;
  *ret_len = 0;
  if (!len)
    return NULL;
  if (!(dest = (unsigned char *)malloc(len + 1)))
    return NULL;
  deststart = dest;
  if (header) {
    unsigned int real_len = 0;
    while (len--) {
      unsigned char c = *buf++;
      if ('=' == c) {
        unsigned char c2;
        c = buf[0];
        c2 = buf[1];
        if (((((c) >= '0') && ((c) <= '9')) || (((c) >= 'A') && ((c) <= 'F')) || (((c) >= 'a') && ((c) <= 'f'))) && ((((c2) >= '0') && ((c2) <= '9')) || (((c2) >= 'A') && ((c2) <= 'F')) || (((c2) >= 'a') && ((c2) <= 'f')))) {
          c = (((c) - (((c) > '9') ? (((c) > 'F') ? 'a' - 10 : 'A' - 10) : '0')) << 4) | ((c2) - (((c2) > '9') ? (((c2) > 'F') ? 'a' - 10 : 'A' - 10) : '0'));
          if (len)
            len--;
          if (len)
            len--;
          buf += 2;
        } else
          c = '=';
      } else if ('_' == c)
        c = ' ';
      *dest++ = c;
      if (++real_len >= limit)
        break;
    }
    *dest = 0;
    *ret_len = dest - deststart;
    return (char *)realloc(deststart, *ret_len + 1);
  } else {
    unsigned char *text, *textstart;
    if (!(text = (unsigned char *)malloc(len + 1))) {
      free(dest);
      return NULL;
    }
    memcpy(text, buf, len);
    text[len] = 0;
    textstart = text;
    while (text) {
      unsigned char c;
      unsigned char *lp = text;
      {
        unsigned char *ep;
        if ((ep = (unsigned char *)strchr((char *)lp, '\n'))) {
          text = ep + 1;
          ep--;
          if (ep >= lp) {
            if ('\r' == *ep)
              ep--;
          }
        } else {
          ep = lp + strlen((char *)lp) - 1;
          text = NULL;
        }
        while ((ep >= lp) && (((c = *ep) == ' ') || (c == '\t')))
          ep--;
        *(ep + 1) = '\0';
      }
      do {
        switch (c = *lp++) {
        case '\0':
          if (text)
            *dest++ = '\n';
          break;
        case '=':
          if ((c = *lp)) {
            unsigned char d = *(lp + 1);
            if (((((c) >= '0') && ((c) <= '9')) || (((c) >= 'A') && ((c) <= 'F')) || (((c) >= 'a') && ((c) <= 'f'))) && ((((d) >= '0') && ((d) <= '9')) || (((d) >= 'A') && ((d) <= 'F')) || (((d) >= 'a') && ((d) <= 'f')))) {
              *dest++ = (((c) - (((c) > '9') ? (((c) > 'F') ? 'a' - 10 : 'A' - 10) : '0')) << 4) | ((d) - (((d) > '9') ? (((d) > 'F') ? 'a' - 10 : 'A' - 10) : '0'));
              lp += 2;
            } else {
              *dest++ = '=';
            }
          }
          break;
        default:
          *dest++ = c;
          break;
        }
        if ((unsigned int)(dest - deststart) >= limit) {
          text = NULL;
          break;
        }
      } while (c);
    }
    *dest = 0;
    free(textstart);
    *ret_len = dest - deststart;
    return (char *)realloc(deststart, *ret_len + 1);
  }
}
```