user: What is the c source code of the assembly code below?

```asm
<decomment_asm>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x20,%rsp
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x1018(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rax
  mov    %rax,0x8(%rsp)
  mov    $0x0,%ebx
  mov    $0x0,%r12d
  jmp    L136
L45:
  cmp    $0x3,%ebx
  jne    L52
  mov    0x8(%rsp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x8(%rsp)
  mov    %al,(%rdx)
  cmp    $0x27,%eax
  je     L86
  cmp    $0x5c,%eax
  jne    L52
  mov    %rbp,%rdi
  call   <getc@plt>
  jmp    L52
L83:
  cmp    $0x27,%eax
  je     L119
  cmp    $0x3b,%eax
  je     L71
  cmp    $0x22,%eax
  je     L227
  mov    0x8(%rsp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x8(%rsp)
  mov    %al,(%rdx)
  jmp    L52
L119:
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x27,(%rax)
  mov    $0x3,%ebx
  jmp    L52
L227:
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x22,(%rax)
  mov    $0x2,%ebx
  jmp    L52
L176:
  mov    0x8(%rsp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x8(%rsp)
  mov    %al,(%rdx)
  cmp    $0x22,%eax
  je     L239
  cmp    $0x5c,%eax
  jne    L52
  mov    %rbp,%rdi
  call   <getc@plt>
  mov    %eax,%edx
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,0x8(%rsp)
  mov    %dl,(%rax)
L52:
  mov    0x8(%rsp),%rax
  lea    0x10(%rsp),%rdx
  cmp    %rdx,%rax
  jbe    L136
  cmpb   $0xa,-0x1(%rax)
  je     L89
L136:
  mov    %rbp,%rdi
  call   <getc@plt>
  mov    D3(%rip),%rdx
  cmp    %eax,(%rdx)
  je     L97
  cmp    $0x2,%ebx
  je     L176
  ja     L45
  test   %ebx,%ebx
  je     L83
  cmp    $0xa,%eax
  setne  %bl
  movzbl %bl,%ebx
  jmp    L52
L71:
  mov    $0x1,%ebx
  jmp    L52
L239:
  mov    %r12d,%ebx
  jmp    L52
L86:
  mov    %r12d,%ebx
  jmp    L52
L89:
  lea    0x8(%rsp),%rsi
  mov    %rdx,%rdi
  call   <blankline@plt>
  jmp    L136
L97:
  mov    0x1018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L93
  add    $0x1020,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L93:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void decomment_asm(const char *fname, FILE *in) {
  register int c, c1;
  char outbuf[4 * 1024];
  char *op = outbuf;
  enum { NORMAL, ASM_COMMENT, STRINGLITERAL, CHARLITERAL } state = NORMAL;
  while ((c = getc(in)) != EOF) {
    switch (state) {
    case NORMAL:
      switch (c) {
      case '\'':
        state = CHARLITERAL;
        *op++ = c;
        break;
      case '"':
        state = STRINGLITERAL;
        *op++ = c;
        break;
      case ';':
        state = ASM_COMMENT;
        break;
      default:
        *op++ = c;
        break;
      }
      break;
    case ASM_COMMENT:
      if (c == '\n') {
        state = NORMAL;
      }
      break;
    case STRINGLITERAL:
      *op++ = c;
      switch (c) {
      case '"':
        state = NORMAL;
        break;
      case '\\':
        c1 = getc(in);
        *op++ = c1;
        break;
      }
      break;
    case CHARLITERAL:
      *op++ = c;
      switch (c) {
      case '\'':
        state = NORMAL;
        break;
      case '\\':
        getc(in);
        break;
      }
      break;
    }
    if (op > outbuf && op[-1] == '\n') {
      blankline(outbuf, &op);
    }
  }
}
```